Code: Select all
$XButton1::
IfWinActive, ahk_exe Discord.exe
{
Send {Click}
Send ^v
}
IfWinNotActive, ahk_exe Discord.exe
{
Send {Xbutton1}
}
return
Code: Select all
$XButton1::
IfWinActive, ahk_exe Discord.exe
{
Send {Click}
Send ^v
}
IfWinNotActive, ahk_exe Discord.exe
{
Send {Xbutton1}
}
return
Code: Select all
#IfWinActive, ahk_exe Discord.exe
$XButton1::
Send {Click}
Sleep, 75
Send ^v
return
#IfWinActive
Oh man no way, you can run the if statements before the macro key eh? That changes things.Spark wrote:Hello,
try :HTHCode: Select all
#IfWinActive, ahk_exe Discord.exe $XButton1:: Send {Click} Sleep, 75 Send ^v return #IfWinActive
Users browsing this forum: Araphen, Descolada, Oblomov228 and 172 guests