OK i got two questons. The first one is i used ur script and addewd some stuff. Here it is:
;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
;
; Setup:
; 1. Map Crouch to 'x'
; 2. Map Prone to 'z'
;
; Description:
; 1. Press 'x' to go prone to standing repeatedly
;
#SingleInstance force
#InstallKeybdHook
;
; Only run this script when BF2.exe is running in the foreground
;
SetTimer, KeepRunning
return
KeepRunning:
; Get the process name of the active window (i.e. Notepad.exe)
WinGet, szProcessName, ProcessName, A
if szProcessName = bf2.exe
{
Suspend, off
}
else
{
Suspend, on
}
return
$^CapsLock::
ExitApp
return
$c::
Send, {w down}
Sleep 50
Send, {z Down}
Sleep 80
Send, {LCtrl Down}
Send, {z Up}
Sleep 80
Send, {LCtrl Up}
Sleep 80
Send, {z Down}
Sleep 80
Send, {z Up}
Sleep 80
Send, {w up}
return
$x::
Send, {a down}
Sleep 50
Send, {z Down}
Sleep 80
Send, {LCtrl Down}
Send, {z Up}
Sleep 80
Send, {LCtrl Up}
Sleep 80
Send, {z Down}
Sleep 80
Send, {z Up}
Sleep 80
Send, {a up}
return
$v::
Send, {d down}
Sleep 50
Send, {z Down}
Sleep 80
Send, {LCtrl Down}
Send, {z Up}
Sleep 80
Send, {LCtrl Up}
Sleep 80
Send, {z Down}
Sleep 80
Send, {z Up}
Sleep 80
Send, {d up}
return
What i added was directions so i cud left right or forward.
What my first ques. is is that when i hold down x to go left and dive it works fine but then when i switch to c and go forward it delays for bout 5 seconds and keeps goin left. And it is the same with going right. I don't know if it is the sleep or delay but I need help on this. And what is the command hotkey for pausing a script. I want to add this to that script so i can pause it and un pause it whenever i can.