|
On July 31 2010 06:24 Ownos wrote: For anyone having trouble using WinXP the run line on your task should look like this: D:\WINDOWS\system32\wscript.exe "D:\invisible.vbs" "D:\replays.bat"
Had a bit of trouble thinking I had to run replays.bat as the program haha.
I also changed the time stamp to be more readable: set modTime=%%e-%%c-%%d-!hour!%%g
Should output 2010-7-30-1200 instead of one big number.
Also does anyone know if the release version still autodeletes? I'm assuming it still does so I set it up just now for release. Release version still autodeletes which I unfortunately found out the hard way. :/
I'm having some troubles getting the script to work properly, it outputs the time stamp as hour-year-month-day-minutes which seems really odd to me.
Is it because my settings(Swedish, although the windows installation is in English) use a 24 hour clock? If so, how would I tweak the code for it to output correctly?(I'm on winXP if that matters)
|
Yes as I warned in my post, the date parser needs to be tweaked if you run a non-standard US English locale.
There didn't seem to be much interest so I gave up on rewriting it to account for other locales.
But I'll take another look.
|
I was really hoping Starcraft would implement this functionality with 1.0, but now I'm definitely going to set this up.
|
I'm getting a wonky error for the invisible.vbs part, the copy bit works excellent though.
Script: C:\spel\StarCraft II\invisible.vbs Line: 1 Char: 1 Error: Subscript out of range Code: 800A0009 Source: Microsoft VBScript runtime error
Running on a windows 7 EN US computer, with swedish time if that matters. Dose anyone have an idea for how to fix it? I dont know VB well enough where to start looking...
|
Wow, thats awesome man, thx a lot!
|
On August 01 2010 02:20 Rags wrote:I'm getting a wonky error for the invisible.vbs part, the copy bit works excellent though. Show nested quote + Script: C:\spel\StarCraft II\invisible.vbs Line: 1 Char: 1 Error: Subscript out of range Code: 800A0009 Source: Microsoft VBScript runtime error
Running on a windows 7 EN US computer, with swedish time if that matters. Dose anyone have an idea for how to fix it? I dont know VB well enough where to start looking...
I get this too. Works fine though.
|
On August 01 2010 02:20 Rags wrote:I'm getting a wonky error for the invisible.vbs part, the copy bit works excellent though. Show nested quote + Script: C:\spel\StarCraft II\invisible.vbs Line: 1 Char: 1 Error: Subscript out of range Code: 800A0009 Source: Microsoft VBScript runtime error
Running on a windows 7 EN US computer, with swedish time if that matters. Dose anyone have an idea for how to fix it? I dont know VB well enough where to start looking...
this most likely means that the arguments aren't being specified correctly, check that you have quotes around each of the arguments.
|
On August 01 2010 03:23 Blahman wrote:Show nested quote +On August 01 2010 02:20 Rags wrote:I'm getting a wonky error for the invisible.vbs part, the copy bit works excellent though. Script: C:\spel\StarCraft II\invisible.vbs Line: 1 Char: 1 Error: Subscript out of range Code: 800A0009 Source: Microsoft VBScript runtime error
Running on a windows 7 EN US computer, with swedish time if that matters. Dose anyone have an idea for how to fix it? I dont know VB well enough where to start looking... this most likely means that the arguments aren't being specified correctly, check that you have quotes around each of the arguments.
I copy-pasted it though.
CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False
|
not there, in your scheduled task, how are you calling wscript?
|
Sorry, I'm not following. I followed the direction at the top of page 2 verbatim.
|
Are you running 7/Vista or XP?
In 7/Vista, you set the program to run (wscript.exe) in the "Program/Script" box and the arguments in the "Arguments (optional)" box.
The first argument is the path to invisible.vbs, surrounded by quotes. The second argument is the path to sc2replays.bat, also surrounded by quotes. E.g.
"c:\path to\invisible.vbs" "c:\path to\sc2replays.bat"
In XP you set the arguments as part of the whole command string in the "Run" box. I have not tried this on XP but I believe the syntax is the same just all in one long string, such as:
wscript.exe "c:\path to\invisible.vbs" "c:\path to\sc2replays.bat"
|
I was trying to find a program like this, thanks.
|
On August 01 2010 04:47 Blahman wrote: Are you running 7/Vista or XP?
In 7/Vista, you set the program to run (wscript.exe) in the "Program/Script" box and the arguments in the "Arguments (optional)" box.
The first argument is the path to invisible.vbs, surrounded by quotes. The second argument is the path to sc2replays.bat, also surrounded by quotes. E.g.
"c:\path to\invisible.vbs" "c:\path to\sc2replays.bat"
In XP you set the arguments as part of the whole command string in the "Run" box. I have not tried this on XP but I believe the syntax is the same just all in one long string, such as:
wscript.exe "c:\path to\invisible.vbs" "c:\path to\sc2replays.bat"
Wooo, thanks man. Works without a error now.
|
On July 12 2010 12:20 GreatestThreat wrote: You could also, you know, just save them each time you finish a game that you thought was worth keeping around. There's a save replay button right in the score screen.
Excellent first post though, I'm sure somebody will find a use for it!
You can forget. When I get into the zone I just keep going on to the next game and it's easy to overlook. If I would save few replays you might have a point but this is defiantly something useful.
|
On August 01 2010 06:51 baeracaed wrote: Wooo, thanks man. Works without a error now. Cool good to hear.
In other news I am very close to having a more universal date parser so people using other locales should be able to use this. It's not 100% as there are some very weird exceptions in the hundreds of locales out there, but it should work for the vast majority.
|
I've updated my original post with the new date parser code -- be sure to grab it and set it up again if you are running a non-US English locale.
|
|
I have never used that program myself so I couldn't say for sure, but it probably uses a similar amount of resources to monitor a folder. In either case it's probably so extremely minimal that it's not worth fretting over. Just use whatever solution works for you.
The other consideration is I doubt that app can do the automatic renaming my script does:
- Removes any (1), (2) etc. after the map name.
- Adds the date/time modified to the filename so that it is unique and will never overwrite a replay
Unless it has some built-in scripting support which would invariably add some overhead.
|
On August 01 2010 08:18 Blahman wrote:I've updated my original post with the new date parser code -- be sure to grab it and set it up again if you are running a non-US English locale. Works like a charm! Thanks a bunch!
|
Thank you so much Blahman! This looks like it probably took you a while to do. I for one appreciate your work and am glad the community has people like you to make the difference whenever BNet 2.0 comes up short.
|
|
|
|