Help with win10

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
raytravel
Posts: 2
Joined: 13 Jul 2018, 19:14

Help with win10

13 Jul 2018, 19:24

It has been over a decade since I used auto hot key.
Sorry.
I am dyslexic and have problem reading written instructions.
I learn/build from examples.
I installed Auto Hotkey 1.1.29.01
I assume I can use scheduled task to run once an ahk file?
Something as simple as
wait 5 seconds
center mouse pointer on screen
wait 4 seconds
move mouse pointer to 1500, 500
then exit.

from this I can build.
when I just move cursor/mouse pointer it does nothing.
Help!
Thanks,
Ray
raytravel
Posts: 2
Joined: 13 Jul 2018, 19:14

Re: Help with win10

13 Jul 2018, 19:47

::
Sleep, 5000 ; 1 second
CoordMode, Mouse, Screen
MouseMove, 10, 10, 20
Sleep, 5000 ; 1 second
MouseMove, 100, 100, 20
Sleep, 5000 ; 1 second
MouseMove, 200, 200, 20
Sleep, 5000 ; 1 second
MouseMove, 10, 10, 20
Exit
MannyKSoSo
Posts: 440
Joined: 28 Apr 2018, 21:59

Re: Help with win10

13 Jul 2018, 20:19

Is this what you wanted?

Code: Select all

CoordMode, Mouse, Screen
XCenter := A_ScreenWidth/2
YCenter := A_ScreenHeight/2
^!s:: ;<---Hotkey to start is Control + Alt + s
Sleep, 5000 ;5 second delay
MouseMove, %XCenter%, %YCenter%
Sleep, 4000 ;4 second delay
MouseMove, 1500, 500
Return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: gabelynn1 and 330 guests