SHARE
TWEET

HKNet Definitionsscript

a guest Mar 28th, 2019 376 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // GLOBAL HOTKEYS
  2. //-----------------------------------------------------------------
  3. // ALT+CTRL+R           Starte WoW-Instanz 1-4
  4. // ALT+CTRL+L           Login WoW Accounts 1-4 Account
  5. // ALT-CRTL+B           Starte WoW Instanz 5 und Login Account 5
  6. // oem5 (Grad)          Hotkey-Broadcast on/off
  7. // ALT+CTRL+NUMPAD1-5   Switch WoW1-5 Instanz zum MainWindow
  8. //-----------------------------------------------------------------
  9.  
  10. // TURN ON/OFF - ONSCREEN OFF-STATUS BUTTON ANZEIGEN
  11. <Hotkey Oem5>
  12.     <SendPC Local>
  13.         <If HKStat is 1>
  14.             <TurnHotkeysOff>
  15.             <SetVar HKStat 0>
  16.             <TargetButton Button1>
  17.             <ShowWin>
  18.         <Else>
  19.             <TurnHotkeysOn>
  20.             <SetVar HKStat 1>
  21.             <TargetButton Button1>
  22.             <HideWin>
  23.  
  24. //-----------------------------------------------------------
  25. // SUBROUTINES
  26. //-----------------------------------------------------------
  27.  
  28. // AUTOSTART
  29. <Command AutoExec>
  30.     // AKTIVES FENSTER BEI MOUSEOVER SETZEN
  31.         <SetActiveWindowTrackingDelay 0>
  32.         <SetActiveWindowTracking on>
  33.     // BEIM START OFF
  34.         <TurnHotkeysOff>
  35.         <SetVar HKStat 0>
  36.         // OFF-BUTTON ANZEIGE. ERSTEN 2 WERTE = X Y - POS
  37.         <CreateButton Button1 390 475 50 20 Off>
  38.             <TargetButton Button1>
  39.             <SetButtonCommand Button1 HKon>
  40.             <AlwaysOnTop on>
  41.  
  42. // HOTKEYS EINSCHALTEN
  43. <Command HKon>
  44.     <TurnHotkeysOn>
  45.     <SetVar HKStat 1>
  46.     <TargetButton Button1>
  47.     <HideWin>
  48.  
  49. // INSTANZEN STARTEN UND GROESSE UND POSITION SETZEN
  50. <Command LaunchAndRename>
  51.     <SendPC Local>
  52.     <Run "### PFAD ZUR WOW.EXE ###">
  53.     <RenameTargetWin %1%>
  54.     <TargetWin %1%>
  55.     <RemoveWinFrame>
  56.     <SetWinRect %2% %3% %4% %5%>
  57.  
  58. // LOGIN CHARS
  59. <Command LogonChar>
  60.     <SendPC Local>
  61.     <WaitForWin %1% 20000>
  62.     <WaitForWinEnabled 20000>
  63.     <SendWinSF %1%>
  64.     <WaitForInputIdle 20000>
  65.     <Text %2%>
  66.     <Key Tab>
  67.     <Wait 600>
  68.     <Text %3%>
  69.     <Wait 600>
  70.     <Key Enter>
  71.  
  72. // Alle Fenster wieder in Standardposition 
  73. <Template ResetWindows>
  74.     <If WinExists WoW1><TargetWin WoW1><SetWinRect 0 0 1366 740><EndIf>
  75.     <If WinExists WoW2><TargetWin WoW2><SetWinRect -1366 0 683 384><EndIf>
  76.     <If WinExists WoW3><TargetWin WoW3><SetWinRect -683 0 683 384><EndIf>
  77.     <If WinExists WoW4><TargetWin WoW4><SetWinRect -683 384 683 384><EndIf>
  78.     <If WinExists WoW5><TargetWin WoW5><SetWinRect -1366 384 683 384><EndIf>
  79. <EndTemplate>
  80.  
  81. // SWITCH MAIN-WINDOW Syntax Example: SwitchMain WoW1
  82. <Command SwitchMain>
  83.     <SetVar NewMain %1%>
  84.     <DoHotKey Hotkey F13>
  85. <Hotkey F13>
  86.     <ApplyTemplate ResetWindows>
  87.  
  88.     <If NewMain Is "WoW1">
  89.         //Standard - wird mit Template ResetWindows gesetzt
  90.     <EndIf>
  91.  
  92.     <If NewMain Is "WoW2">
  93.         <TargetWin WoW2>
  94.             <SetWinRect 0 0 1366 740>
  95.         <TargetWin WoW1>
  96.             <SetWinRect -1366 0 683 384>
  97.     <EndIf>
  98.  
  99.     <If NewMain Is "WoW3">
  100.         <TargetWin WoW3>
  101.             <SetWinRect 0 0 1366 740>
  102.         <TargetWin WoW1>
  103.             <SetWinRect -683 0 683 384>
  104.     <EndIf>
  105.    
  106.     <If NewMain Is "WoW4">
  107.         <TargetWin WoW4>
  108.             <SetWinRect 0 0 1366 740>
  109.         <TargetWin WoW1>
  110.             <SetWinRect -683 384 683 384>
  111.     <EndIf>
  112.    
  113.     <If NewMain Is "WoW5">
  114.         <TargetWin WoW5>
  115.             <SetWinRect 0 0 1366 740>
  116.         <TargetWin WoW1>
  117.             <SetWinRect -1366 384 683 384>
  118.     <EndIf>
  119.    
  120. //-----------------------------------------------------------
  121. // HOTKEYS - INSTANZEN STARTEN
  122. //-----------------------------------------------------------
  123.  
  124. <Hotkey Alt Ctrl R> // Instanzen 1-4 starten
  125.     <LaunchAndRename WoW1 0 0 1366 740>     // Main Window
  126.     <LaunchAndRename WoW2 -1366 0 683 384>  // links oben  
  127.     <LaunchAndRename WoW3 -683 0 683 384>   // rechts oben
  128.     <LaunchAndRename WoW4 -683 384 683 384> // rechts unten
  129.  
  130. <Hotkey Alt Ctrl B> // Instanz 5 (Bankchar) starten und login
  131.     <LaunchAndRename WoW5 -1366 384 683 384> // unten links
  132.     <LogonChar "WoW5" "### ACC-NAME-5 ###" "### ACC-PASSWORT ###">
  133.  
  134. //-----------------------------------------------------------
  135. // HOTKEYS - LOGON CHARS
  136. //-----------------------------------------------------------
  137.  
  138. <Hotkey Alt Ctrl L>
  139.     <LogonChar "WoW1" "### ACC-NAME-4 ###" "### ACC-PASSWORT ###">
  140.     <LogonChar "WoW2" "### ACC-NAME-1 ###" "### ACC-PASSWORT ###">
  141.     <LogonChar "WoW3" "### ACC-NAME-2 ###" "### ACC-PASSWORT ###">
  142.     <LogonChar "WoW4" "### ACC-NAME-3 ###" "### ACC-PASSWORT ###">
  143.  
  144. //-----------------------------------------------------------
  145. // HOTKEYS - MAIN WINDOW SWITCHEN
  146. //-----------------------------------------------------------
  147.  
  148. <Hotkey Alt Ctrl Numpad1>
  149.     <SwitchMain "WoW1">
  150. <Hotkey Alt Ctrl Numpad2>
  151.     <SwitchMain "WoW2">
  152. <Hotkey Alt Ctrl Numpad3>
  153.     <SwitchMain "WoW3">
  154. <Hotkey Alt Ctrl Numpad4>
  155.     <SwitchMain "WoW4">
  156. <Hotkey Alt Ctrl Numpad5>
  157.     <SwitchMain "WoW5">
  158.  
  159. //-----------------------------------------------------------
  160. // INSTANZEN LABELS
  161. //-----------------------------------------------------------
  162.  
  163.     <Label w1 Local SendWinM WoW1>
  164.     <Label w2 Local SendWinM WoW2>
  165.     <Label w3 Local SendWinM WoW3>
  166.     <Label w4 Local SendWinM WoW4>
  167.     <Label w5 Local SendWinM WoW5> 
  168.  
  169. //-----------------------------------------------------------
  170. // HOTKEYS
  171. // NEUE KEYS UND COMBOS HIER EINFUEGEN
  172. //-----------------------------------------------------------
  173.  
  174. <Hotkey 0-9, Oem4, Oem6>
  175.     <SendLabel w1, w2, w3, w4>
  176.     <Key %Trigger%>
  177.  
  178. <Hotkey Shift 1>
  179.     <SendLabel w1, w2, w3, w4>
  180.     <Key %Trigger%>
  181.  
  182. <Hotkey Shift 2>
  183.     <SendLabel w1, w2, w3, w4>
  184.     <Key %Trigger%>
  185.    
  186. //-----------------------------------------------------------
  187. // BEWEGUNGSTASTEN DIE BEI GEDRUECKT HALTEN ZU DEN INSTANZEN
  188. // GESENDET WIRD
  189. //-----------------------------------------------------------
  190.  
  191. <MovementHotkey up, down, left, right, Space>
  192.     <SendLabel w1, w2, w3, w4>
  193.     <Key %Trigger%>
  194.  
  195. //-----------------------------------------------------------
  196. // BROADCAST MAUS. LINKE CTRL DRUECKEN ZUM AUSLOESEN
  197. //-----------------------------------------------------------
  198.  
  199. <Hotkey LCtrl LButton, RButton>
  200.    <SendLabel w1, w2, w3, w4>
  201.         <ClickMouse %TriggerMainKey%>
  202.     <RestoreMousePos>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top