Program that will click on certain postions on screen

n00e

Thread Starter
Joined
Nov 22, 2019
Messages
16
i want to mark certaion postion on screen and bind them to certain buttons
for example i want when i press "F1" that it makes my mouse to click on <100,100> position on screen
or "F2" on <200,200>
so i dont have to move my mouse everytime,but i can simply press button and it will automatcly click at that exact location
 
Joined
Mar 2, 2019
Messages
644
It depends on language you are using,

It's easily done with windows API:
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setcursorpos

This function only moves mouse cursor, it does not generate clicked event.

To generate a mouse input use:
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-sendinput?redirectedfrom=MSDN

Then you'll also need to register a system wide hot key:
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-registerhotkey
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top