try:
Code: Select all
q::
ClipBoard = 2+3
FileDelete, ~.ahk
FileAppend, ClipBoard := %ClipBoard%, ~.ahk, UTF-8
RunWait, ~.ahk
MsgBox,% ClipBoard ;5
Return
https://www.autohotkey.com/boards/viewtopic.php?f=6&t=15389
Code: Select all
q::
ClipBoard = 2+3
FileDelete, ~.ahk
FileAppend, ClipBoard := %ClipBoard%, ~.ahk, UTF-8
RunWait, ~.ahk
MsgBox,% ClipBoard ;5
Return
Code: Select all
varv:=0
tooltip % varv
#MaxThreadsPerHotkey 10
F1::
Critical
sleep 5000
varv++
tooltip % varv
return
Code: Select all
~Shift::
While, GetKeyState("Shift","P")
{
Send, {Blind}k
Sleep, 300
}
Return
Code: Select all
Del::ExitApp
`::toggle:=!toggle
#If toggle
$Lbutton::
;...
return
#If
Code: Select all
Joy5::
Joy6::
Switch, GetKeyState("Joy5") GetKeyState("Joy6")
{
Case "10":ToolTip, only Joy5
Case "01":ToolTip, only Joy6
Default:ToolTip, both Joy5 + Joy6
}
Return
Code: Select all
#If WinActive("ahk_exe MWOClient.exe")
LShift::Return
#If GetKeyState("LShift", "p") && WinActive("ahk_exe MWOClient.exe")
MButton::5
RButton::4
LButton::3
#If
Code: Select all
<+Right::Send, {End} ;RShift + Right
+Right::Send, +{End} ;LShift (+ RShift) + Right
Code: Select all
WinMove, -7, 0, 682, 1050
Code: Select all
WinMove, ahk_id %ID%,, -7, 0, 682, 1050
Code: Select all
q::ControlSend, Windows.UI.Core.CoreWindow1, 12345, Rechner
Code: Select all
q::ControlSend, Windows.UI.Core.CoreWindow1, 12345, Calculator
Code: Select all
#MaxThreadsPerHotkey 2
1::
IF !Spam := !Spam
{
Reload
ExitApp
}
Loop
{
Sendinput i
Sleep 500
Mouseclick left
Sleep 500
Send e
Sleep 7000
Send, {Space 15}
}
return
Code: Select all
SetTitleMatchMode, 2
Return
~RButton::
IfWinActive, New Mail ahk_class WindowsForms10.Window.8.app.0.bea234_m4_bv4
{
MsgBox, The cursor is at X%xpos% Y%ypos%.
}