WPI Classic! v2.2 Made for legacy Operating systems.
#22
Posted 14 October 2009 - 03:59 PM
Kelsenellenelvian, on Oct 11 2009, 10:36 AM, said:
Is there any documentation for config.js? I've got a noddy script that converts the config.js that I use with WPI 7.7.0 and I'd like to fix up as much as possible automatically. (I have an AIO-DVD with both XP and W2K on it).
From the example it looks like {MAKEDIR} becomes MAKEDIR etc.
I expect that I can replace {EXTRACT} with the equivalent CMD stuff to which it expands anyway.
But it would be really cool if EXTRACT and TASKKILL could work too: I'd just fiddle in generate.js but I'd prefer to stick to standard features. (I'd be happy to fiddle and pass on the fiddling if there was a reasonable chance of it making a future release ...)
The only JSCRIPT invocations I use right now are TimedWaitForFile and WriteRegKey. I can certainly rewrite the latter to whatever it used to be before I upgraded it, not sure about the former. How hard would it be to add support for JSCRIPT (or will it simply not work on the target OSes?)
Cheers,
deadbug
#23
Posted 14 October 2009 - 06:38 PM
Extract will not work.
The JScript functions will not work.
Limited to 6 commandlines per entry.
Quote
Kill *note*
If the KILL command doesn't work, you can try using an –F switch to force a process to stop. However, be careful which processes you terminate. Some processes are required for the normal operation of Windows, and stopping them in this way could shut down your whole system.
I can add kill in to the list of things wpi can do.
This post has been edited by Kelsenellenelvian: 14 October 2009 - 06:41 PM
#24
Posted 15 October 2009 - 12:47 PM
Kelsenellenelvian, on Oct 15 2009, 01:38 AM, said:
I forget what I used to do before I found {TASKKILL}, but I thought it was some tool that came with WPI. Anyhow, this would be good. Thanks
Kelsenellenelvian, on Oct 15 2009, 01:38 AM, said:
It's not there now, but it looks simple enough to add - it depends on 7z in Tools ... is there a reason not to add that? I'm sure it would work on W2K ... no idea about W98 though.
Kelsenellenelvian, on Oct 15 2009, 01:38 AM, said:
A quick peek at WPI suggests that all it does is strip off an inital JSCRIPT and then hope that the function exists. If that's right, then that's probably good enough to get me started. I do only use two JavaScript functions anyway and I'm sure I can dig up the sources for those from somewhere
Kelsenellenelvian, on Oct 15 2009, 01:38 AM, said:
Yes. But that's not a problem. The one place where I did have more than six (my Start Menu creation stuff) I'd split into multiple entries anyway. But even that I've now hived off into an AutoIt script (for other reasons) so even that's down to just one cmd[]. I'll probably just generate excess cmds and have the ruby spit out a warning at the end. That way I can edit the WPI config.js if things ever do break.
I also noticed that DELDIR seems to be missing, as well as RUNBG (what's that do?), SLEEP, REBOOT, [UN]REGDLL, INSTINF, REGEDIT.
I don't use any of those except DELDIR ... is that just a later addition that never got back-ported or is there some reason it's not there? I think I might try out a little hackery tomorrow ... but stop me now if I'm barking up the wrong tree!
#25
Posted 17 October 2009 - 05:28 PM
My goals and wishes for this is to keep it as small and lean as possible.
Quote
I don't use any of those except DELDIR ... is that just a later addition that never got back-ported or is there some reason it's not there? I think I might try out a little hackery tomorrow ... but stop me now if I'm barking up the wrong tree!
ALOT of these will not work on the older os's (I spent a full night just trying to get a task killer to work in 98
While trying I found a major flaw in WPIC though so expect an update soon.
#26
Posted 18 October 2009 - 09:57 AM
Kelsenellenelvian, on Oct 18 2009, 12:28 AM, said:
My goals and wishes for this is to keep it as small and lean as possible.
Lean and mean is an admirable goal. But I'd still like to make a plea for DELDIR ... it's a single line and it rounds out the existing file access functions quite nicely. I added all the others to my generate.js just because they were easy to copy across - I don't use them so I've not tested them at all.
I can see how REBOOT and SLEEP might be generally useful to others. EXTRACT and TASKKILL I do use but I think I can probably get my script to rewrite those easily enough. (I'll check out my old AIO-DVDs and see how I used to do TASKKILL before that command came along).
Kelsenellenelvian, on Oct 18 2009, 12:28 AM, said:
One thing I do think I'll need is getOSver() and getSPver() for conditionals. Again, others will have their own "necessary" functions. I remember that before JSCRIPT came along I hacked a TimedWaitForFile() (or similar) into one of the .js files and then asked for a way to execute it. So I wonder if it would be possible to have a userfunctions.js (or similar) into which people can drop their own extensions. Then they'd be magically available for cond[] statements (I think) and if you added basic support for "JSCRIPT=" then everybody could have their cake and eat it.
(Yes, I did have a quick go, but it didn't quite work
Anyway, thanks for all the effort that's going into WPIC and WPI.
#27
Posted 18 October 2009 - 04:00 PM
{DELDIR} can be added easily enough.
#28
Posted 20 October 2009 - 01:22 PM
mritter, on Oct 18 2009, 11:00 PM, said:
Well if push comes to shove I can just hardcode getOSver() as "2K" and getSPver() as 4, but that's a bit smelly really
The code does something like:
try {
wmiStuff
} catch (ex) {
WshShell.RegRead(a-key)
}
Will that even run on W95 or does something horrible happen that cannot be caught when it tries the wmi call? (I've found my W95 key ... if I find my install CD I'll give it a go!)
#31
Posted 21 November 2009 - 03:25 PM
This SHOULD be the last version for awhile.
(Unless someone has a feature request or mod that they post!)
#32
Posted 18 September 2010 - 03:42 AM
I'm thinking about making a theme that mimics a normal program window look with WPI Classic, but before i make a custom theme without a close button on the bottom right, i would like to know if there is a way i can enable the window close button on the window frame.
Thanks for reading



Help

Back to top









