Skip to content

Commit

Permalink
Added Livesplit hotkey
Browse files Browse the repository at this point in the history
  • Loading branch information
Drelekin committed Apr 20, 2022
1 parent 8240b46 commit 1b7e8f8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions d2r-reset-macro.ahk
Expand Up @@ -17,8 +17,8 @@ HeroY = 590 ; Y-position can be the same for all classes
; Settings
Name = Helene
Hero := Sorceress
Hardcore := True
Classic := False
Hardcore := False
Classic := True
DeleteHero := False

; Timers
Expand All @@ -27,6 +27,7 @@ LoadingDelay = 500
DeleteDelay = 5025

; Hotkeys
LiveSplit = F4
Hotkey, f7, Config
Hotkey, f8, Load
Hotkey, f9, Reset
Expand All @@ -37,6 +38,7 @@ Return
*/

Reset:
Send {%LiveSplit%}
BlockInput, On

If DeleteHero
Expand Down Expand Up @@ -70,11 +72,11 @@ Reset:

If Classic
{
MouseClick, left, 1055, 998 ; Click on Pre-Expansion (Classic)
MouseClick, left, 1014, 1005 ; Click on Pre-Expansion (Classic)
}

If Hardcore {
MouseClick, left, 975, 1000 ; Click on Hardcore
MouseClick, left, 941, 1005 ; Click on Hardcore
MouseClick, left, 1775, 1050 ; Click on "Create"
Sleep, %Delay%
MouseClick, left, 825, 625 ; Click on "OK" to confirm Hardcore
Expand All @@ -84,7 +86,7 @@ Reset:
{
MouseClick, left, 1775, 1050 ; Click on "Create"
}

Send {F3}
BlockInput Off
Return

Expand Down

0 comments on commit 1b7e8f8

Please sign in to comment.