Code: Select all
#MaxThreadsPerHotkey 2
$^x::
Toggle := !Toggle
while(Toggle)
{
WinActivate, Mount&Blade Warband
Send ^x
}
Return
Code: Select all
#MaxThreadsPerHotkey 2
$^x::
Toggle := !Toggle
while(Toggle)
{
WinActivate, Mount&Blade Warband
Send ^x
}
Return
Code: Select all
j::
Loop {
Send, {d Down}
Sleep % A_Index * 1000
Send, {d Up}
}
Code: Select all
F1::DllCall("PowrProf\SetSuspendState", "int", 0, "int", 0, "int", 0)
Code: Select all
DllCall("LockWorkStation")
Compact code proposals are always welcome! Thanks!boiler wrote:Not that this is at the heart of your question, but in the interest of making your workaround more compact, it could be like this:Code: Select all
!F1::Send ^#{Left} !F2::Send ^#{Right}
Code: Select all
RButton & LButton::AltTab
RButton::RButton
LButton::LButton
return
Code: Select all
{"error":{"code":"","type":"invalid_request","message":"Failed to decode JSON body.","cat":"(=^‥^=)"}}
Thanks; that was a silly oversight on my part.allthingsarenotequal wrote:'equals' is not valid ahk code, try the = sign if (a_index = count)
I get the same error :/Soft wrote:add ' ComObjError(false) ' at the top of your script
Code: Select all
divObj.backgroundimage
Code: Select all
divObj.style.backgroundimage