Code: Select all
if Color_1 = 0x0000FF ; traditional syntax
Code: Select all
if (Color_1 = 0x0000FF) ; expression syntax
Code: Select all
if Color_1 = 0x0000FF ; traditional syntax
Code: Select all
if (Color_1 = 0x0000FF) ; expression syntax
Code: Select all
sleep rand()
Code: Select all
OutputVar := StrReplace(Haystack, SearchText [, ReplaceText, OutputVarCount, Limit := -1]) ; v1.1.21+
Code: Select all
^t::SendRaw, ^R5-6^
^r::SendRaw, ^R3-4^
^w::SendRaw, ^R8^
^+d::SendRaw, ^D11111^
NumPadDot::,
NumPadMult::^
MButton::
Suspend, Permit
Send, {Del}
return
^+z::Suspend
Code: Select all
PgDn::
count := 2700000 ; Set the initial time to sleep here.
Loop,
{
MouseMove, 315, 751
Sleep, 500
Click
Sleep, 1000
MouseMove, 852, 436
Click
Sleep, count ; Sleep the current variable amount.
count += 60000 ; Increment variable by 60000ms aka 1min.
}
return
Code: Select all
LButton::
Time := A_TickCount
while GetKeyState("LButton","P") && (A_TickCount-Time < 1500)
Click
KeyWait, LButton
return
Code: Select all
cnt := 0 ; Counter variable
Numpad5::
if (cnt = 0)
{
Send, /cctv
Sleep 500
Send, {Enter}
cnt++
}
else
{
Send, /cctv
Sleep 500
Send, {Down %cnt%}{Enter}
cnt++
}
if (cnt = 26)
cnt := 0 ; Reset
return
Code: Select all
Toggle:=1
*F4::Send % Toggle?("{LShift Down}{w Down}",Toggle:=0):("{LShift Up}{w Up}",Toggle:=1)
*a::
*s::
*d::Send % !Toggle?("{LShift Up}{W Up}",Toggle:=1):SubStr(A_ThisHotkey,0)
Esc::ExitApp
Code: Select all
Send, 12
Sleep 500
Click
Code: Select all
XButton1::
Suspend, Permit
SetTimer, Suspend, -20000
Suspend, Off
return
RButton::d
Suspend:
Suspend, On
return
Code: Select all
~xbutton1::suspend
rbutton::d
Code: Select all
#Persistent
SetTimer, PressTheKey, 100
cnt := 0
Return
PressTheKey:
cnt++
Send, ^{tab}
Send, EXAMPLEOFTEXT
if (cnt = 20)
ExitApp
return
Escape::
ExitApp
Return
Code: Select all
if (flag)
{
1st 5 ifs here...
}