tEn_thousand- Posted April 15, 2006 Share Posted April 15, 2006 I want to give this a shot, im not sure exactly how this will be done, but I have already ruled out HotKeySet..... I think maybe we can call GetAsyncKeyState with a DllCall, but im not sure how that would work in autoit, I know we would use cursorgetpos, and mousemove, autoit not handy, but I think we could do something like this: $coord = CursorGetPos() DllCall <somehow call getasynckeystate> if GetAsyncKeyState("<key>") then ;not sure how to use the keys, VK_KEY? $coord[0] = $coord[0] + 10 MouseMove($coord[0], $coord[1]) Endif ect. ect. Someone want to help code this? Link to comment Share on other sites More sharing options...
Evil_Has_Survived Posted April 15, 2006 Share Posted April 15, 2006 I want to give this a shot, im not sure exactly how this will be done, but I have already ruled out HotKeySet..... I think maybe we can call GetAsyncKeyState with a DllCall, but im not sure how that would work in autoit, I know we would use cursorgetpos, and mousemove, autoit not handy, but I think we could do something like this: $coord = CursorGetPos() DllCall <somehow call getasynckeystate> if GetAsyncKeyState("<key>") then ;not sure how to use the keys, VK_KEY? $coord[0] = $coord[0] + 10 MouseMove($coord[0], $coord[1]) Endif ect. ect. Someone want to help code this? I wanted to amtempt this to so when im grounded for a day I can still play on my pc Thanks in advance Link to comment Share on other sites More sharing options...
PezoFaSho Posted April 15, 2006 Share Posted April 15, 2006 here u go http://www.autoitscript.com/forum/index.ph...=keyboard+mouse 50% of the time, it works all the time Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted April 15, 2006 Share Posted April 15, 2006 (edited) ummm just use ispressed and then get the current mouse position and then everytime up is pressed add +5 to the current position or whatever and so on http://www.autoitscript.com/forum/index.php?showtopic=19852beaten to it Edited April 15, 2006 by thatsgreat2345 Link to comment Share on other sites More sharing options...
VicTT Posted April 15, 2006 Share Posted April 15, 2006 (edited) Funny thing is that I've already managed a script to do that for when my mouse-batteries die......It works..And I'm going to give you a tip too...HotKeySet works......you just don't know how to use it...If you don't manage to make it, then message me, and I'll send you mine...It supports clicking with both mouse-buttons, and make-shift ClickDrag operations (mousebutton up and down)... You will have to refrain from posting it anywhere on the AutoIt forums, if you decide you want it. Edited April 15, 2006 by VicTT Quote Together we might liveDivided we must fall Link to comment Share on other sites More sharing options...
tEn_thousand- Posted April 16, 2006 Author Share Posted April 16, 2006 I got it to work with hotkeyset, its just, its not really constant, you hold it down, and it builds up, and then when you let go it keeps going, I want to make a good one. 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