https://photos.app.goo.gl/gi9Bhi6Qo42VlBRl1
i tried using ControlSend and Send but it didn't work for some reason...
my attemps:
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance, force
IfWinExist Myth War II Online
{
WinActivate Myth War II Online
sleep, 1000
send, {AltDown}
sleep, 1000
send, q
sleep, 1000
send, {AltUp}
}
Return
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance, force
IfWinExist Myth War II Online
{
ControlSend,, !q, Myth War II Online
}
Return
Cheers
yawik