Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #If !isMouseShown() and #If WinActive("Darkfall Online")
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- Q:: ; key
- {
- if (!Impale || A_TickCount-Impale > 5000) {
- Send ^{F12}
- Sleep 300
- Send ^{F1}
- KeyWait, LButton, D
- KeyWait, LButton
- Impale := A_TickCount
- Sleep 120
- Send ^{F2}
- }
- if (!Pungent || A_TickCount-Pungent > 5000) {
- Send ^{F2}
- KeyWait, LButton, D
- KeyWait, LButton
- Pungent := A_TickCount
- Sleep 120
- Send ^{F3}
- }
- if (!Dragonbreath || A_TickCount-Dragonbreath > 5000) {
- Send ^{F3}
- KeyWait, LButton, D
- KeyWait, LButton
- Dragonbreath := A_TickCount
- Sleep 120
- Send ^{F4}
- }
- if (!Insect_Swarm || A_TickCount-Insect_Swarm > 5000) {
- Send ^{F4}
- KeyWait, LButton, D
- KeyWait, LButton
- Insect_Swarm := A_TickCount22
- }
- }
- Reload
- return
- ; GUI check in game
- isMouseShown()
- {
- StructSize := A_PtrSize + 16
- VarSetCapacity(InfoStruct, StructSize)
- NumPut(StructSize, InfoStruct)
- DllCall("GetCursorInfo", UInt, &InfoStruct)
- Result := NumGet(InfoStruct, 8)
- if Result
- return 1
- else
- return 0
- }
Add Comment
Please, Sign In to add comment