Sign in to follow this  
Followers 0
blah

wondering if this is possable...

6 posts in this topic

so i was wondering if....i could like ''bind'' keys to a co-ords for my mouse...say like numpad 1 clicks at 600,600....

if it is possable could some please post it using the example given above.....

thanks....

Share this post


Link to post
Share on other sites



Try to use MouseGetPos() to get the coordinates of the mouse and Send() to send key strokes.

I hope it is not for botting a game!

Br,

UEZ


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯

Share this post


Link to post
Share on other sites

nooo...its not to send keystrokes....

i would like to press numpad 1 and have my pointer go to the co-ords

and then maybe numpad 2 to make it go to different co-ords

and so on so on....

and no its not

Share this post


Link to post
Share on other sites

Then you can use MouseMove() to move to a coordinate when a key is pressed -> _IsPressed().

Br,

UEZ


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯

Share this post


Link to post
Share on other sites

ok well...holy crap...just tried so much crap...found the right thing...but cant get it to work....

Got this

#include <Misc.au3>

$dll = DllOpen("user32.dll")

While 1

Sleep ( 250 )

If _IsPressed("61", $dll) Then

MouseClick("left",669,485,1,0) ; Click Left

ExitLoop

EndIf

WEnd

DllClose($dll)

but that ends after 1 click...and if i try to add in others for numpad 2 and stuff i get errors....

please help....lol

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

remove "Exitloop"

@edit

Exitloop exits the loop after the mouse move. If you remove it you should put a new key check for exiting the program.

Edited by Juvigy

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0