Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
- #AutoIt3Wrapper_Icon=lib\ico\ico-sequencer.ico
- #AutoIt3Wrapper_Compression=0
- #AutoIt3Wrapper_Res_Fileversion=1.0.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\icon.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")
- ;;--------------------------------------------------------------------------------
- ;; 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
Advertisement
Add Comment
Please, Sign In to add comment