hi ihr. hab da auch mal ne kleine und wahrscheinlich extrem simple frage:
Ich selber spiele Silkroad und habe mir dafür mit AutoIt ein Tool geschrieben, welches meine anderen Chars bufft. Jetzt habe ich aber noch das kleine Problem, dass mir das Tool in allem, was ich offen hab die Crtl Taste drückt. Auch z.B. im Firefox. Wie bekomm ich es hin, dass Crtl nur in dem einem Client gedrückt wird?
Hier mein Code:
$Buff1=WinGetHandle("SRO_Client [Charname]")
AutoItSetOption ("SendKeyDelay" ,80)
AutoItSetOption ("SendKeyDownDelay" ,80)
Sleep (2000)
ControlSend($Buff1,"","Edit1","{F4}")
ControlSend($Buff1,"","Edit1","{F4}")
Sleep (2000)
ControlSend($Buff1,"","Edit1","^2")
Sleep (1000)
ControlSend($Buff1,"","Edit1","^2")
Sleep (1500)
ControlSend($Buff1,"","Edit1","2")
ControlSend($Buff1,"","Edit1","2")
ControlSend($Buff1,"","Edit1","2")
Sleep (1500)
ControlSend($Buff1,"","Edit1","3")
ControlSend($Buff1,"","Edit1","3")
ControlSend($Buff1,"","Edit1","3")
Sleep (1500)
schonmal danke für eure Hilfe