Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

command parameters
one-i
#1 Posted : Friday, April 17, 2015 2:05:33 PM(UTC)
Rank: Member

Groups: Registered
Posts: 13

Thanks: 2 times
Was thanked: 3 time(s) in 2 post(s)
I'm trying to set up my computer to run a script to auto start Hearthstone and then HearthRanger every day after the dailies come out.

Is there a command line parameter to open HearthRanger in a "start" state?

I've tried Macro Recorders and all of them seem to poop themselves the moment the scripts have them clicking on the Hearthranger window.

If anyone has any other work arounds, I am using Windows 8.1

Thanks
franner
#2 Posted : Friday, April 17, 2015 3:22:47 PM(UTC)

Rank: Advanced Member

Groups: Registered
Posts: 116
Location: Denmark

Thanks: 10 times
Was thanked: 32 time(s) in 25 post(s)
one-i;25344 wrote:
I'm trying to set up my computer to run a script to auto start Hearthstone and then HearthRanger every day after the dailies come out.

Is there a command line parameter to open HearthRanger in a "start" state?

I've tried Macro Recorders and all of them seem to poop themselves the moment the scripts have them clicking on the Hearthranger window.

If anyone has any other work arounds, I am using Windows 8.1

Thanks


Check Crash Ranger Recovery. It can start hearthranger, battle.net and hearthstone.

Then download autoit and copy/paste these lines:

Quote:
Opt("WinTitleMatchMode", -2)

If ProcessExists("Recovery.exe") Then ProcessClose("Recovery.exe")
If ProcessExists("HearthRanger.exe") Then ProcessClose("HearthRanger.exe")
If ProcessExists("Battle.net Launcher.exe") Then ProcessClose("Battle.net Launcher.exe")
If ProcessExists("Battle.net.exe") Then ProcessClose("Battle.net.exe")
If ProcessExists("Hearthstone.exe") Then ProcessClose("Hearthstone.exe")

sleep(5000)

run("Recovery.exe",@WorkingDir,@SW_MAXIMIZE)

while 1
sleep(1000)
If WinGetTitle("","Ranger Crash Recovery") then
ControlClick("","Ranger Crash Recovery","[CLASS:Button; INSTANCE:2]")
ExitLoop
EndIf
WEnd

while 1
sleep(1000)
If WinGetTitle("Oops!","") then
ControlClick("Oops!","","[CLASS:Button; INSTANCE:1]")

WinKill("","Ranger Crash Recovery")
If ProcessExists("Recovery.exe") Then ProcessClose("Recovery.exe")
If ProcessExists("HearthRanger.exe") Then ProcessClose("HearthRanger.exe")
If ProcessExists("Battle.net Launcher.exe") Then ProcessClose("Battle.net Launcher.exe")
If ProcessExists("Battle.net.exe") Then ProcessClose("Battle.net.exe")
If ProcessExists("Hearthstone.exe") Then ProcessClose("Hearthstone.exe")

$Random = Random(300000,600000,1) ;mellem 5 og 10 Minutter
sleep($Random )

run("Recovery.exe",@WorkingDir,@SW_MAXIMIZE)
sleep(1000)
If WinGetTitle("","Ranger Crash Recovery") then
ControlClick("","Ranger Crash Recovery","[CLASS:Button; INSTANCE:2]")
EndIf
EndIf
WEnd



Then compile and set this exe in the same folder as hearthranger and recovery. Then you can just use a script to open the newly created exe, like in task sheduler.

Its something I use myself and it works. The code might not be the pretties I don't know, I am not a programmer :).

The last while loop in my autoit code was before the latest update, it handleded a crash I eqpirenced but I think it can be removed.
one-i
#3 Posted : Friday, April 17, 2015 3:44:57 PM(UTC)
Rank: Member

Groups: Registered
Posts: 13

Thanks: 2 times
Was thanked: 3 time(s) in 2 post(s)
Thanks, I'll give a try right away.
Jammo2k5
#4 Posted : Monday, April 20, 2015 7:55:47 PM(UTC)
Jammo2k5


Rank: Advanced Member

Groups: Registered
Posts: 77
Location: UK

Thanks: 11 times
Was thanked: 48 time(s) in 28 post(s)
Ranger crash recovery can be launched daily at any time with windows task scheduler and command line argument -r to auto start.
saidrassi
#5 Posted : Monday, April 27, 2015 9:38:45 PM(UTC)
Rank: Newbie

Groups: Registered
Posts: 1

Jammo2k5;25384 wrote:
Ranger crash recovery can be launched daily at any time with windows task scheduler and command line argument -r to auto start.


How exactly do i set this up? I mean, i don't know how to use this "command line argument"
I tried setting it up on windows task scheduler and keep getting an error: "Can't load icon"

i already have Ranger Crash recovery up and running, but not auto starting daily!

Thank you again!
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.335 seconds.