AutoIt / Crtl in nur einem Fenster drücken

03/11/2009 00:01 KIFFKILLER#1
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
03/12/2009 15:14 KIFFKILLER#2
Kann mir wirklich keiner helfen?
05/07/2009 20:05 fieser-hund#3
Drück in scintilla F1(SciTe)
Guck dir in der hilfe controlgethandle() und controlsend() an