how to record mouse movement, regardless of coordinates

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
lil donut
Posts: 2
Joined: 10 Aug 2017, 19:20
Contact:

how to record mouse movement, regardless of coordinates

10 Aug 2017, 19:39

i have pulovers macro creator and i am attempting to create a macro to move the mouse a specific distance. the problem is is its moving it by using screen coordinates so when i activate the macro it moves to where i recorded the mouse movement and only does it there. how do i make it so that the mouse will move the amount i recorded anywhere
neomulemi6
Posts: 216
Joined: 30 Jun 2016, 06:01

Re: how to record mouse movement, regardless of coordinates

10 Aug 2017, 19:42

I don't understand the question. Can you rephrase or elaborate?
lil donut
Posts: 2
Joined: 10 Aug 2017, 19:20
Contact:

Re: how to record mouse movement, regardless of coordinates

10 Aug 2017, 19:48

neomulemi6 wrote:I don't understand the question. Can you rephrase or elaborate?
okay, so i have a macro already that i copy and pasted from someone else (with permission) and it basically moves your mouse down a certain amount for as long as you have a specified hotkey pressed (f12 in my case) i would like to recreate this but i want the mose to move more in the same amount of time. im trying to do it with pulovers macro crator but it is locked on whatever screen coordinates i record the mouse movement at. i want it to work anywhere on the screen. thanks for your help.

Edit: Sorry for the typos, just got a new keyboard! :)
Last edited by lil donut on 10 Aug 2017, 19:49, edited 1 time in total.
neomulemi6
Posts: 216
Joined: 30 Jun 2016, 06:01

Re: how to record mouse movement, regardless of coordinates

11 Aug 2017, 16:07

This might work. You can change the speed to make it slower or faster.

Code: Select all

#MaxThreadsPerHotkey, 2

Speed = 10

F12::
While (GetKeyState("F12", "p"))
{
	MouseMove, 0, Speed, 0, R
}
Return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: peter_ahk and 244 guests