[AutoHotKey] hotbar swaping with weapons

08/14/2009 11:23 Penakle#1
Code:
;
; AutoHotkey Version: 0.1
; Language: English
; Platform: Win9x/NT/Vista
; Author: Grzybek
;
; Script Function:
; Hotbar swapping with pot drinking
; Hotbar 1-3 weapons
; Key 9 on hotbars 1-4 , weapon
; Key 8 on hotbar 4 is a shield
;

IniFile := "C:\hotbar.txt"

F1::
{
IniWrite, 1, %IniFile%, Hotbary, hotbar
send, {Numpad1}
sleep 10
send, 9
return
}
F2::
{
IniWrite, 2, %IniFile%, Hotbary, hotbar
send, {Numpad2}
sleep 10
send, 9
return
}
F3::
{
IniWrite, 3, %IniFile%, Hotbary, hotbar
send {Numpad3}
sleep 10
send 9
return
}
F4::
{
IniWrite, 3, %IniFile%, Hotbary, hotbar
send {Numpad4}
sleep 10
send 9
sleep 1000
send 8
return
}