The sleep commands in this script are declared variables and are recalled as needed. However it seems they are not being used. The script flows right along as though no sleep commands are present. See if the variables are proper & correct or if being called in the right way. It is a gaming script, btw. Thanks.
;
; AutoHotkey Version: 1.1.22.00
; Language: English
; Platform: Win7 64bit
; Author: K. Davis <kevshawdavis@gmail.com>
;
; Script Function:
; Predefined PVE/PVP Combat sequences with ability activation times given as variables.
;***** Standard Setup Stuff *****
#NoEnv
#singleInstance, Force
#MaxThreads, 2
#MaxThreadsPerHotkey, 2
#Persistent
SetBatchLines, -1
DetectHiddenWindows, On
CoordMode, Mouse, Screen
CoordMode, Pixel, Screen
CoordMode, Tooltip, Screen
SetDefaultMouseSpeed, 0
SetTitleMatchMode, 2
SetKeyDelay, 100, 100
SetMouseDelay 30
SendMode Event
#InstallKeybdHook
#InstallMouseHook
#UseHook, On
;*********************************
;*** Activate SWTOR Window *****************************************************************
WinWait, Star Wars™: The Old Republic™
IfWinNotActive, Star Wars™: The Old Republic™, , WinActivate, Star Wars™: The Old Republic™
WinWaitActive, Star Wars™: The Old Republic™
;*******************************************************************************************
;Notes on Bounty Hunter Healing - In general, the priority is: Healing Scan > Rapid Scan > Kolto Shot.
;Notes on Bounty Hunter DPS (Merc Healer) - single target priority: Electro Net > Unload > Rail Shot > Death from Above > Power Shot> Rapid Shots.
;Notes on Bounty Hunter DPS (Merc Healer) - mob target priority: Fusion Missile >Death from Above >Sweeping Blasters with Utility: Boresights >Flame Thrower > Sweeping Blasters without Utility: Boresights
; *** List of Ability Activation Times for Refrence ***
IA := "1000ms" ;Instant Attack Time (most swtor instant attacks use 1 sec to cycle for animation puposes. some use less but 1000ms is used for script stability. Adjust as needed...)
RS := "1500ms" ;Rapid Scan
HS := "2000ms" ;Healing Scan
PS := "2400ms" ;Progressive Scan
UL := "3000ms" ;Unload
PS := "1500ms" ;Power Shot
DFA := "3000ms" ;Death from Above
SB := "2980ms" ;Sweeping Blasters
FT := "3000ms" ;Flame Thrower
FM := "1440ms" ;Fusion Missile
; *** End of List ***
~$Pause::Suspend, Toggle
NumPad1::
Singe_Target_DPS:
Sleep, 500
Send, {3 2} ;Sticky Dart
Sleep, %IA%
Send, {ShiftDown}{6 2}{ShiftUp}{left}{right} ;Electro Net
Sleep, %IA%
Send, {5 2}{left}{right} ;Unload
Sleep, %UL%
Send, {6 2}{left}{right} ;Rail Shot
Sleep, %IA%
Send, {CtrlDown}{5 2}{CtrlUp}{left}{right} ;Death From Above
Sleep, %DFA%
Send, {2 2}{left}{right} ;Power Shot
Sleep, %PS%
Loop, 4
{
Send, {1 2}{left}{right} ;Rapid Shots
Sleep, %IA%
}
Return
NumPad2::
Mob_Target_DPS:
Sleep, 500
Send, {CtrlDown}{2 2}{CtrlUp}{left} ;Fusion Missile
Sleep, %FM%
Send, {3 2}{right} ;Sticky Dart
Sleep, %IA%
Send, {CtrlDown}{5 2}{CtrlUp}{left} ;Death From Above
Sleep, %DFA%
Send, {CtrlDown}{6 2}{CtrlUp}{right} ;Sweeping Blasters
Sleep, %SB%
Send, {4 2}{left} ;Missile Shot
Sleep, %IA%
Loop, 4
{
Send, {1 2}{right}{left} ;Rapid Shots
Sleep, %IA%
}
Return
NumPad4::
Fast_Heal:
Sleep, 500
Send, {0 2}
Sleep, %IA%
Send, {- 2}
Sleep, 500
Send, {= 2}
Sleep, %IA%
Send, {ShiftDown}{8 2}{ShiftUp}
Sleep, %IA%
Send, {F1}{CtrlDown}{0 2}{CtrlUp}
Sleep, 500
Send, {ShiftDown}{1 2}{ShiftUp}
Sleep, %IA%
Send, {= 2}
Sleep, 500
Send, {Tab}
Return
NumPad5::
Heal_Ally:
Sleep, 500
Send, {F2}
Sleep, 500
Send, {ShiftDown}{8 2}{ShiftUp}
Sleep, %IA%
Send, {0 2}
Sleep, %IA%
Send, {- 2}
Sleep, 500
Send, {= 2}
Sleep, %IA%
Send, {CtrlDown}{0 2}{CtrlUp}
Sleep, %IA%
Send, {CtrlDown}{- 2}{CtrlUp}
Sleep, 500
Send, {ShiftDown}{1 2}{ShiftUp}
Loop, 3
{
Send, {CtrlDown}{= 2}{CtrlUp}
Sleep, %IA%
}
Return
Script ignors sleep commands
Re: Script ignors sleep commands
Sleep needs an integer which tells it the amount of milliseconds to wait. Your variables contain an expression consisting of a number and 'ms' at the end. So use something like IA := 1000 instead.
Re: Script ignors sleep commands
Thanks, I'll give it a shot. The ms is for milliseconds. Thought it had to be included.
Re: Script ignors sleep commands
I gave it a try. It only worked when I started a new script.
Re: Script ignors sleep commands
What do you mean? When you created a new file or executed the script for the first time?
Who is online
Users browsing this forum: No registered users and 22 guests