The script skips some steps / script: Warframe Auto-regalia switch

Ask gaming related questions (AHK v1.1 and older)
Sziho
Posts: 3
Joined: 21 May 2017, 11:48

The script skips some steps / script: Warframe Auto-regalia switch

Post by Sziho » 21 Nov 2020, 11:02

This supposed to be a quality of life improvement on warframe,
When you get a new sigil/start farming reputation with a new faction, you have to equip it for all the frames individually.
To NOT do this (to do DE's work...) I wanted to automate this process. (please feel free to use for your convenience, if it works for you)
The flow: go to Equip, select a frame(iterate through a list of frames), go to appearance, go to regalia, go to back sigil, change back sigil, select regalia, go back to arsenal.

I have a list where you can add all your warframes, and in theory it should be okay, but the error I see appears randomly, or not at all.
some parts of the code is (sometimes) being skipped through,
most of the time it skips the send {click} parts.
I tried increasing or decreasing the delay between the commands (sleep 100, 200, 250, 300, 500, 600, 700, 1000)
To see what's happening /what are we trying to achieve → youtube.com video/xNNUc_I3xs8/

I had runs (without changing the code, just running the same instance) where it worked for 3-5 different warframes and does exactly what the script is supposed to. Sometimes it breaks before the first sigil swap is finished.

pls help T_T

Code: Select all

#MaxThreadsPerHotkey 2

F9:: ExitApp		; F9 to Abort
F8::				; F8 to start (go to the equipment page, and wait a few seconds, the WF ui is sensitive/laggy)
{					; While it's running don't touch your keyb/Mouse and free up some cpu and ram. and it still might break.
warframes = 		; Here you need to add all your frames (If prime, you can just add the vanilla name)
(
Ash
Atlas
Banshee
Baruuk
Chroma
Ember
Equinox
Excalibur
Frost
Gara
Garuda
Gauss
Grendel
Harrow
Hildryn
Hydroid
Inaros
Ivara
Khora
Limbo
Loki
Mag
Mesa
Mirage
Nekros
Nezha
Nidus
Nova
Nyx
Oberon
Octavia
Revenant
Rhino
Saryn
Titania
Trinity
Valkyr
Vauban
Volt
Wisp
Wukong
Xaku
Zephyr
)	

loop, parse, warframes, \`n,`r
    HandleItem(A_Loopfield)

HandleItem(value)
{	
	;Open equip
		sleep 500
		mouseMove 480, 251  ; this works at 1920x1080
		sleep 500
		mouseMove 550, 251
		sleep 500
		Send {click}
		sleep 500
	;Select Warfame
		send %A_Loopfield%
		sleep 500
		send {enter}
		sleep 500
	;Open Appearance
		mouseMove 550, 330
		sleep 500
		send {click}
		sleep 500
	;Open Regalia	
		mouseMove 480, 530
		sleep 500
		send {click}
		sleep 500
	;Open Back Sigil	
		mouseMove 480, 408
		sleep 500
		send {click}
		sleep 500
	;Change Back Sigil	
		mouseMove 480, 286
		sleep 500
		send {click}
		sleep 500
	;Select Back sigil	
		send Bounty      ; ← This is the name of the sigil that will be equipped.
		sleep 500
		send {enter}
		sleep 500
	;Back to Arsenal	
		send {esc}
		sleep 500
		send {esc}
		sleep 500
		send {esc}
		sleep 500
	;END
}

}

Return to “Gaming Help (v1)”