Advertisement
Guest User

AutoIt MultiKey

a guest
Jul 13th, 2012
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.09 KB | None | 0 0
  1. #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
  2.     #AutoIt3Wrapper_UseUpx=n
  3.     #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
  4.     #include <Misc.au3>
  5.      
  6.     Global Const $key = InputBox("Key CODE","Gebe bitte den Code der taste ein die überwacht werden soll")
  7.     Global Const $number = InputBox("Key","Gebe bitte die eigentliche taste ein die an das 2. Fenster gesendet werden soll.")
  8.      
  9.      
  10.     MsgBox(64,"Info","Starte das Main Flyff Fenster und drücke dann auf OK")
  11.     $avWinList_m = WinList ("Unbenannt - Editor")
  12.     WinSetTitle($avWinList_m[1][1],"","MAIN GUI 1")
  13.    
  14.     MsgBox(64,"Info","Starte das Zweite Flyff Fenster und drücke dann auf OK")
  15.     $avWinList_s = WinList ("Unbenannt - Editor")
  16.     WinSetTitle($avWinList_s[1][1],"","RINGMASTER")
  17.     Do
  18.             If _IsPressed($key) And WinActive($avWinList_m[1][1]) Then
  19.                     Do
  20.                             Sleep(100)
  21.                     Until Not _IsPressed($key)
  22.                     ControlSend($avWinList_s[1][1],"","Edit1",$number)
  23.             Endif
  24.     Until _IsPressed("1B")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement