Code: Select all
#Persistent
#IfWinActive, AHK_exe Cemu.exe
~*lctrl::
GetKeyState, state, rctrl
if state = U
Send {rctrl Down}
else
Send {rctrl Up}
return
~*v::
GetKeyState, state, a
if state = U
Send {a Down}
else
Send {a Up}
return
Code: Select all
#Persistent
#IfWinActive, AHK_exe Cemu.exe
~*lctrl::
GetKeyState, state, rctrl
if state = U
Send {rctrl Down}
else
Send {rctrl Up}
return
~*v::
GetKeyState, state, a
if state = U
Send {a Down}
else
Send {a Up}
return
Code: Select all
v::
KeyDown := !KeyDown
If KeyDown
SendInput {a down}
Else
SendInput {a up}
Return
loop
{
LCTRL::
sleep, 200
loop
{
send {rctrl down}
if getkeystate("LCTRL")
break
}
send {rctrl up}
return
}
That is not true in your case or for most hotkeys. You are apparently referring to this part of the documentation:
...but your script isn't using a custom combination, so there is no custom modifier, and what you said does not apply.Hotkey Modifier Symbols documentation wrote:If the tilde prefix is applied to a custom modifier key (prefix key) which is also used as its own hotkey, that hotkey will fire when the key is pressed instead of being delayed until the key is released.
Hotkey Modifier Symbols documentation wrote:When the hotkey fires, its key's native function will not be blocked (hidden from the system).
Code: Select all
a::MsgBox, Hello
I don’t know anything about your emulator, but it may just be that it doesn’t accept anything but actual physical keystrokes.Quadnick wrote: ↑18 Jan 2022, 17:25I'd be even more grateful if you could help me figure out why none of these scripts, even something as simple as e::a will work in the Cemu emulator. Or, if the emulator is affected by my script, it works in a completely unintended way. I've tried running as administrator, and using things like #IfWinActive/Exists, but nothing I've tried, or found on Google, is working.