forked from MoriceD3/D3ROS-ArreatCore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsequencer.au3
110 lines (95 loc) · 3.92 KB
/
sequencer.au3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#RequireAdmin
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=lib\ico\ico-sequencer.ico
#AutoIt3Wrapper_Compression=0
#AutoIt3Wrapper_Res_Fileversion=1.6.0.0
#AutoIt3Wrapper_Res_requestedExecutionLevel=asInvoker
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
;;================================================================================
;; PRE CHECKS
;;================================================================================
;;--------------------------------------------------------------------------------
;; Make sure you are running in x86
;;--------------------------------------------------------------------------------
$checkx64 = @AutoItX64
If $checkx64 = 1 Then
WinSetOnTop("Diablo III", "", 0)
MsgBox(0, "Erreur : ", "Script lancé en x64, merci de le lancer en x86 ")
Terminate()
EndIf
;;--------------------------------------------------------------------------------
;; Make sure you are running as admin
;;--------------------------------------------------------------------------------
$Admin = IsAdmin()
If $Admin <> 1 Then
MsgBox(0x30, "ERROR", "This program require administrative rights you fool!")
Exit
EndIf
;;--------------------------------------------------------------------------------
;; Open the process
;;--------------------------------------------------------------------------------
Opt("WinTitleMatchMode", -1)
SetPrivilege("SeDebugPrivilege", 1)
Global $ProcessID = WinGetProcess("[CLASS:D3 Main Window Class]", "")
$d3 = _MemoryOpen($ProcessID)
If @error Then
WinSetOnTop("[CLASS:D3 Main Window Class]", "", 0)
MsgBox(4096, "ERROR", "Failed to open memory for process;" & $ProcessID)
Exit
EndIf
;;--------------------------------------------------------------------------------
;; Initialize MouseCoords
;;--------------------------------------------------------------------------------
Opt("MouseCoordMode", 2) ;1=absolute, 0=relative, 2=client
Opt("MouseClickDownDelay", Random(10, 20))
Opt("SendKeyDownDelay", Random(10, 20))
;;--------------------------------------------------------------------------------
;; Set tray icon
;;--------------------------------------------------------------------------------
$icon = @ScriptDir & "\lib\ico\ico-sequencer.ico"
TraySetIcon($icon)
;;--------------------------------------------------------------------------------
;; Include some files
;;--------------------------------------------------------------------------------
#include "lib\Variables.au3"
#include "lib\Utils.au3"
#include "lib\sequence.au3"
#include "lib\settings.au3"
#include "lib\skills.au3"
#include "lib\toolkit.au3"
#include "lib\botting.au3"
#include "lib\stats.au3"
#include "lib\Affix.au3"
#include "lib\GestionMenu.au3"
#include "lib\GestionChat.au3"
#include "lib\dev_tools.au3"
#include "lib\sequencer_tools.au3"
#include "lib\Gdi_Draw.au3"
;;================================================================================
;; Set Some Hotkey
;;================================================================================
HotKeySet("{F1}", "Read_Scene")
HotKeySet("{F2}", "Draw_Scene")
HotKeySet("{F3}", "Sequencer_IterateObj")
HotKeySet("{F4}", "Terminate")
HotKeySet("{ù}", "SequencerMarkPos")
HotKeySet("{F6}", "SequencerAddSleep")
HotKeySet("{F7}", "SequencerAddInteractActor")
HotKeySet("{F8}", "SequencerAddInteractDoor")
HotKeySet("{F9}", "SequencerAddInteractPortal")
HotKeySet("{F10}", "SequencerMarkImportant")
;;--------------------------------------------------------------------------------
;; Initialize the data and offsets
;;--------------------------------------------------------------------------------
offsetlist()
LoadingSNOExtended()
InitSettings()
; Vérification présence de la fenêtre
CheckWindowD3()
_log("Sequence maker ready !", $LOG_LEVEL_WARNING)
AutoItSetOption("GUIOnEventMode", 1)
ShowSequencerTools()
; Attente en fin de script pour conserver la console et utiliser le sequencer
While 1
Sleep(50)
WEnd