blah Posted November 3, 2010 Share Posted November 3, 2010 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.... Link to comment Share on other sites More sharing options...
UEZ Posted November 3, 2010 Share Posted November 3, 2010 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!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
blah Posted November 3, 2010 Author Share Posted November 3, 2010 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 Link to comment Share on other sites More sharing options...
UEZ Posted November 3, 2010 Share Posted November 3, 2010 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!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
blah Posted November 3, 2010 Author Share Posted November 3, 2010 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 EndIfWEndDllClose($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 Link to comment Share on other sites More sharing options...
Juvigy Posted November 3, 2010 Share Posted November 3, 2010 (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 November 3, 2010 by Juvigy Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now