I would like to ask for some help regarding non-functioning MouseMove command that I just do not understand (I just started using autohotkey yesterday, so sorry if this is a silly question ).
So basically this is my code from the start till the erroneous line:
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
^!o::
CoordMode, Mouse, Screen
Loop, 10
{
Send, {Ctrl down}{PgUp}{Ctrl up}
}
Send, {Ctrl down}{Home}{Ctrl up}
Send, {Down}{Down}{Right}
Sleep, 100
Send, {Ctrl down}{PgDn}{Ctrl up}
Sleep, 100
Send, {Ctrl down}{Home}{Ctrl up}
Send, {Down}{Down}{Right}
Send, {Ctrl down}{PgDn}{Ctrl up}
Sleep, 100
Send, {Ctrl down}{Home}{Ctrl up}
Send, {Down}{Down}{Right}
Send, {Ctrl down}{PgDn}{Ctrl up}
Sleep, 100
Send, {Ctrl down}{Home}{Ctrl up}
Send, {Down}{Down}{Right}
Send, {Ctrl down}{PgDn}{Ctrl up}
Sleep, 100
Send, {Ctrl down}{Home}{Ctrl up}
Send, {Down}{Down}{Right}
Sleep, 200
Send, {Alt down}{Tab}{Alt up}
MouseMove, 330, 147
Sleep, 200
Gui, Add, text, , Enter Amount of HPLC Runs :):
Gui, Add, Edit, vNum
Gui, Add, Button, default, OK
Gui, Show
Return
GuiClose:
ButtonOK:
Gui, Submit
Loop, %Num%
{
MouseGetPos, CoordXRec, CoordYRec
Sleep, 200
Click, 2
Sleep, 1500
Click, right
Sleep, 200
MouseMove, 250, 98, , R
Sleep, 500
MouseMove, 50, 20, , R
Sleep, 200
Click
Sleep, 200
MouseMove, 100, 380