litestep.exe parameter length! Thread last updated on 2006-03-09 17:19:44

Posted by member 51749 on 2006-03-01 21:24:20

the other thread was locked unfortunately :/

just letting people know, it seems the litestep.exe has the same argument length restrictions that bang.exe has.

which is a real bugger.

how might i go about writing the info to a file and including it? ie. what module command do i use?

Posted by member 37809 on 2006-03-01 21:34:30 link

surely vbscript can write to file.

see xlabel text escape sequences.

Posted by member 51749 on 2006-03-01 21:47:00 link

ok thanks.
yea it can, in face my script already writes about a dozen files. just wondering how to update the label.

Posted by member 1 on 2006-03-01 21:57:52 link

uhmmm...didn't you read the post from Rabid that said it would have the same limitation?

Posted by member 5575 on 2006-03-01 22:49:47 link

Download my chameleon_1.1 theme. You don't have to install it - just take a look. It's got a lot of scripted weather label stuff (text and graphics), lua for the "theme" side and vbscript to handle the xml parsing and writing to "include" files. The vbscript stuff is mainly in the "weatherNotDLL" folder, although there are a few helpers in the VBS folder. Lua scripts are in both the Config folder and WeatherNotDLL. They're split up because I set it up so as to keep the weather data-grabbing separate from the theme components; that way it can easily be ported to another theme, or placed in a "personal" folder for use with all themes.

Posted by member 31 on 2006-03-06 15:05:40 link

#define MAX_BANGCOMMAND 64 // length of !bangcmd name
#define MAX_BANGARGS 256 // length of arguments

The argument length is enforced when a bang command is executed from LM_BANGCOMMAND message handler and for any bang command that was registered from a module which is loaded as threaded.

Since any bang command executed from the command line or from an external process must use WM_COPYDATA (which in turn uses LM_BANGCOMMAND), they are limited to MAX_BANGARGS char count.

Posted by member 51749 on 2006-03-09 17:19:44 link

ok, thanks for the clarification. it all works now, tho im just writing to a file and using xlabel line() to read it. does the job tho. thanks.