Jump to content

Moving The Mouse With The Keyboard


Recommended Posts

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

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
Link to comment
Share on other sites

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

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...