HomeRegisterLog in
Share

Control

Links
Join us!
==
Battlefield 3 Server
The Corrosive War Sheeps
==
W3 Replay Uploader
jk2pach-host1: NOTDA
jk2pach-host2: TKOK
jk2pach-host3: UA2
jk2pach-host4: ZAF
jk2pach-host5: RC601
==
Friendly websites
Empirium
Vote for us !
==
Donators
Andx667
jk2pach
Kanashimi
loop.exe
LordSkyy
msolz
TheCrownClown
wizzitje
==
Help us to open new bots!
Click this link to check the advantages donators have.


Share | 
 

 Autohotkey

View previous topic View next topic Go down 
AuthorMessage
jk2pach
Lieutenant General
Lieutenant General
avatar

Messages : 3753
Activity Points : 30826
Reputation : 51

PostSubject: Autohotkey   Sun 27 Feb - 23:32

Website

http://www.autohotkey.com/

What is it?

A simple tool. It simply allows you to program some keys to do specific actions.

You need *.txt files to edit hotkeys. Once the file is ready, save it with the format: .ahk in a subfolder of Autohotkey.


Code example

Example code for RC601.

Code:
^CapsLock::
  SendInput {Enter}-view 3{Enter}
  Return

;;sprint

*::
  SendInput z
  SendInput t
  Return

;; jump

$::
  SendInput z
  SendInput q
  Click
  Return

;; Presses 'd' and clicks at the current cursor location. In effect       
;; fires a single sidearm round at the current cursor location 
 
ù::
  SendInput d
  Click
  Return

^::
  SendInput {Enter}-clear{Enter}
  Return


;; Types -tl into chatline. Basically a hotkey for team locations         

CapsLock::
  SendInput {Enter}-tl{Enter}
  Return



;;-----------------------------------------------------------------
;; Everything below here will work anywhere (outside WC3III)
;;-----------------------------------------------------------------
;; Exits the script and deletes the cursor stack file
#IfWinActive
Pause::
  ; Restore working directory to where script was launched so that we
  ; can remove temporary directory
  SetWorkingDir %StartDir%
  FileRemoveDir, %TempDir%, 1
  MsgBox NotD Script Exit
  ExitApp
  Return

Example code for NOTD-Aftermath. Please not I also made a "hint spam" for new players when using Num pad on this example.

Code:
^CapsLock::
  SendInput {Enter}-view 3{Enter}
  Return


;;sprint

*::
  SendInput z
  SendInput t
  SendInput Escape
  Return

;; jump

$::
  SendInput z
  SendInput q
  Click
  SendInput Escape
  Return

;; Presses 'd' and clicks at the current cursor location. In effect       
;; fires a single sidearm round at the current cursor location 
 
ù::
  SendInput d
  Click
  Return
 ;; noob help-rules

^NumPad0::
  SendInput {Enter}-clear{Enter}
  SendInput {Enter}====RULES FOR PRIVATES===={Enter}
  SendInput {Enter}Rule 1: do NOT attack teammates/friendly/neutrals (Friendly Fire){Enter}
  SendInput {Enter}Rule 2: do NOT use AOE weapons (Grenade Launcher,SMAW,Chains,Claymores){Enter}
  SendInput {Enter}Rule 3: do NOT tank creeps{Enter}
  SendInput {Enter}Rule 4: do NOT take all items (Share them){Enter}
  Return

^NumPad9::
  SendInput {Enter}-clear{Enter}
  SendInput {Enter}====TIPS FOR PRIVATES===={Enter}
  SendInput {Enter}Z+G: Nightvision: +Sight,+Movespeed{Enter}
  SendInput {Enter}Z+T: Sprint{Enter}
  SendInput {Enter}Z+Q: Jump on the target point. {Enter}
  Return

;; noob help-town
^NumPad1::
  SendInput {Enter}-clear{Enter}
  SendInput {Enter}====Mission: Defend the civilians===={Enter}
  SendInput {Enter}Protect civilians from the town called Ravenholm (Raven){Enter}
  SendInput {Enter}Place yourself on entries (North North East, South, West, North West){Enter}
  Return

;; noob help-RA
^NumPad2::
  SendInput {Enter}-clear{Enter}
  SendInput {Enter}====Mission: RA-Random Artillery===={Enter}
  SendInput {Enter}Stay at the center of the town, the random artillery will own you otherwise{Enter}
  Return

;; noob help-BHD
^NumPad3::
  SendInput {Enter}-clear{Enter}
  SendInput {Enter}====Mission: BHD-Black Hawk Down===={Enter}
  SendInput {Enter}One go to the pinged point to rescue 2 mini marines and 1 pilot{Enter}
  SendInput {Enter}After the AI gives control to the first arrived, MOVE AWAY from the helicopter: it will explode{Enter}
  SendInput {Enter}Heal minies and go to the town. Only Navy Corpsman can keep control of the minies{Enter}
  Return

;; noob help-convoy
^NumPad4::
  SendInput {Enter}-clear{Enter}
  SendInput {Enter}====Mission: Escort Convoy===={Enter}
  SendInput {Enter}Follow and protect the civilians and the convoy{Enter}
  SendInput {Enter}Warn about the fast boss called Eta, he is really dangerous. Simply avoid it{Enter}
  SendInput {Enter}When the difficulty is heigh you may not have Eta, but Eris, a dangerous other boss. {Enter}
  Return

;; noob help-convoy
^NumPad5::
  SendInput {Enter}-clear{Enter}
  SendInput {Enter}====Mission: Sentries===={Enter}
  SendInput {Enter}Pick a Sentry at WM (windmill, Top Left of the map) or PGen (Power Generator ,Top South of the map) {Enter}
  SendInput {Enter}Go set it up on one of the pinged locations. Ping your destination when you chose a sentry location{Enter}
  SendInput {Enter}You can install it by using the item on the ground near the pinged location{Enter}
  SendInput {Enter}If you do not feel able, run to the SAF (south airfield, east of the map) and defend it until other end this mission{Enter}
  Return

;; -s 1 command
NumPad0::
  SendInput {Enter}-s 1{Enter}
  Return

;; -s 3 command
NumPad1::
  SendInput {Enter}-s 3{Enter}
  Return

;; -s 5 command
NumPad2::
  SendInput {Enter}-s 5{Enter}
  Return

;; -s 10 command
NumPad3::
  SendInput {Enter}-s 10{Enter}
  Return

;; -s 15 command
NumPad4::
  SendInput {Enter}-s 15{Enter}
  Return

;; -s 20 command
NumPad5::
  SendInput {Enter}-s 20{Enter}
  Return

; -dp 50 command
NumPad9::
  SendInput {Enter}-dp 50{Enter}
  Return

; -dp 300 command
NumPad8::
  SendInput {Enter}-dp 300{Enter}
  Return

; -dp 800 command
NumPad7::
  SendInput {Enter}-dp 800{Enter}
  Return

;; Types -tl into chatline. Basically a hotkey for team locations         

CapsLock::
  SendInput {Enter}-tl{Enter}
  Return
 

 




;;-----------------------------------------------------------------
;; Everything below here will work anywhere (outside WC3III)
;;-----------------------------------------------------------------
;; Exits the script and deletes the cursor stack file
#IfWinActive
Pause::
  ; Restore working directory to where script was launched so that we
  ; can remove temporary directory
  SetWorkingDir %StartDir%
  FileRemoveDir, %TempDir%, 1
  MsgBox NotD Script Exit
  ExitApp
  Return

_______________________________
Back to top Go down
wizzitje
Captain
Captain
avatar

Messages : 1088
Activity Points : 36356
Reputation : 2
Awards :

x5


PostSubject: Re: Autohotkey   Sun 27 Feb - 23:52

so basicly this allowes you to ''save'' certain actions and bind it to hotkeys? thats what i make out of it.

_______________________________

Back to top Go down
jk2pach
Lieutenant General
Lieutenant General
avatar

Messages : 3753
Activity Points : 30826
Reputation : 51

PostSubject: Re: Autohotkey   Sun 27 Feb - 23:56

Exactly. Example to jump: Z+P in Warcraft III.

For me, it's the "$" on my french keyboard: Autohotkey force-hits Z+P when $ is hit by me.

_______________________________
Back to top Go down
Skull
Private


Messages : 11
Activity Points : 2707
Reputation : 0

PostSubject: Re: Autohotkey   Mon 28 Feb - 10:36

Thanks, great tool for playing in high ping ;D.
Back to top Go down
WedgeAntilles
Corporal
Corporal


Messages : 199
Activity Points : 8637
Reputation : 8
Awards :

PostSubject: Re: Autohotkey   Mon 28 Feb - 20:59

Tried to create some makros for a shooter game with it, but totally failed with it Sad.
Back to top Go down
Sponsored content




PostSubject: Re: Autohotkey   

Back to top Go down
 
Autohotkey
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Autohotkey script for melee barbarian
» Auto-firing - use more then one for/aft.

Permissions in this forum:You cannot reply to topics in this forum
jk2pach outpost :: Warcraft III :: Offline activity :: Restricted Complex 601 ( RC601 )-
Jump to: