Code: Select all
~*RButton Up::
If (A_PriorKey != "RButton")
Send, {Esc}
return
Code: Select all
~*RButton Up::
If (A_PriorKey != "RButton")
Send, {Esc}
return
WinActivate --> Remarks
Window titles and text are case sensitive
Code: Select all
IfWinNotExist Calculator
Run calculator://
; WinWait Calculator, , 3
; If not ErrorLevel
WinActivate Calculator
Code: Select all
RegRead, recent, HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders, Recent
Run % recent
Code: Select all
GroupAdd, AllWindows
return
$F1:: WinRestore ahk_group AllWindows
Code: Select all
SetTitleMatchMode, 2
GroupAdd, YouTube_Chrome, YouTube ahk_exe chrome.exe
RETURN ; === end of auto-execute section ===
$z:: GroupActivate, YouTube_Chrome, R
Code: Select all
try objOutlook := ComObjActive("Outlook.Application")
Code: Select all
~<#LCtrl::
KeyWait LCtrl
If (A_PriorKey = "LControl")
Msgbox Switch to Left Desktop ;Send ^#{Left}
Return
~<#LAlt::
KeyWait LAlt
If (A_PriorKey = "LAlt")
Msgbox Switch to Right Desktop ;Send ^#{Right}
Return
Code: Select all
^v::
MouseMove, A_CaretX, A_CaretY, 0
click down
Send, ^v
MouseMove, A_CaretX, A_CaretY, 0
click up
return
Code: Select all
^t::
Suspend
Pause
return
#If (A_IsSuspended)
^t::
Suspend, off
Pause, off
return
#If