Sign in to follow this  
Followers 0
tEn_thousand-

Moving The Mouse With The Keyboard

6 posts in this topic

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?

Share this post


Link to post
Share on other sites



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 :think::(

Thanks in advance

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Funny thing is that I've already managed a script to do that for when my mouse-batteries die...:think:...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 by VicTT

[quote]Together we might liveDivided we must fall[/quote]

Share this post


Link to post
Share on other sites

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.

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