Latest Forum Posts
Wolzly on 07 Nov : 06:09
Here's my theme.rc to see if[more]

Backslash on 07 Nov : 03:25
bump?

and i[more]

photofx on 06 Nov : 19:56
no, none of the labels are a[more]

dac on 06 Nov : 14:05
I seem to have the same proble[more]

ElkMonster on 06 Nov : 14:00
also as far as i've had a look[more]

Backend
Our headlines can be syndicated by using either our rss or text feeds.
news.xml - news.txt





 
The Litestep Site for News, Modules, Sources, and all the other stuff around Litestep.

 
 
   
LS-Universe.info -> Forums -> Modules -> Hooking lsxcommand & rabidvwm in xLabel.
Hooking lsxcommand & rabidvwm in xLabel.
Go to page -1-2 Next
<< Previous thread | Next thread >>  
Author Post
Wolzly
Thread: Hooking lsxcommand & rabidvwm in xLabel.
             Sun Oct 03 2004, 08:33PM

Registered Member #22
Joined Thu May 06 2004, 08:32AM
posts 63
I know that 1/2 the "HELP ME" threads are by me, but I have another

I've been able to hook labels to other labels just fine with the simple-syntax that it uses. However I can't seem to get any other modules to hook at all.

The do[*&/§=!$]entation says to add (for lsxcommand) a "CommandWaitForBox" line to step.rc, and *(label-name)ModuleHook !CommandBoxHook to your step.rc.


*Label CommandHooker
CommandHookerX $lcdX$
CommandHookerWidth $lcdWidth$
CommandHookerSolidColors 000000
CommandHookerStartHidden
CommandHookerAlwaysOnTop


That's the label I want to hook it to, my question is, can I put the two hooking lines right after these lines in my "label.rc" file? Should I put the lines in my "command.rc" file? Or should I put the lines right in the theme.rc file?

Essentially I'm asking what order the 4 components have to be in (Label Declaration, Command Declaration, WaitForBox line, and ModuleHook line).

Thanks in advance.
Back to top
advent
Thread: Hooking lsxcommand & rabidvwm in xLabel.
             Sun Oct 03 2004, 10:07PM
Registered Member #145
Joined: Wed Sep 29 2004, 04:16AM
posts 4
Gah, I've never understood why people split their .rc files into a separate file for each module. But in general, when you're hooking a module into xLabel(light) or LSBox, you do it like this:

1. Load the module being hooked (for example, LSXCommand)
2. If possible, use the "wait for box" setting for that module.
3. Load xLabel(light).
4. Declare the label or box that will hook the first module (in this case, CommandHooker).
5. Add your *ModuleHook line.

A quick explanation:

First, you need to load the module you want to have hooked, or else xLabel(light) won't have anything to load.
Then you tell the module to wait to be hooked. After that, you load xLabel(light) (after all, you need it loaded before you can make a label), and declare and configure your label. Lastly, you tell the label to hook the module from the beginning.

Hope that helped.
Back to top
Wolzly
Thread: Hooking lsxcommand & rabidvwm in xLabel.
             Sun Oct 03 2004, 10:23PM

Registered Member #22
Joined: Thu May 06 2004, 08:32AM
posts 63
Oh my god I can't believe it.

You know I need someone to be constantly looking over my shoulder ready to blow an air-horn in my ear when I do something stupid.

I had my commandX relative to the screen-edge, not the hooking-label.

Stupid! Stupid! Stupid!

Thanks for your help advent.
Back to top
advent
Thread: Hooking lsxcommand & rabidvwm in xLabel.
             Mon Oct 04 2004, 12:15AM
Registered Member #145
Joined: Wed Sep 29 2004, 04:16AM
posts 4
Heh, that's an interesting mistake. I have to admit, though, I've done it a few times myself.
Back to top
iRalf
Thread: Hooking lsxcommand & rabidvwm in xLabel.
             Tue Oct 05 2004, 10:41AM
Registered Member #116
Joined: Thu Aug 26 2004, 12:30AM
posts 34
I have a lot of problems getting lsxcommand to hook too, must be because of the same reason.
Could you post the exact syntax please? Right now i feel more stupid than you do
Back to top
Andymon
Thread: Hooking lsxcommand & rabidvwm in xLabel.
             Tue Oct 05 2004, 01:03PM

Joined: Thu Apr 29 2004, 08:25PM
posts 179
Just one thing about RavidVWM, the older versions generally had problems to hook in xLabel, so you definitly should use the newest rabidvwm version 1.1.1
Back to top
Cerbie
Thread: Hooking lsxcommand & rabidvwm in xLabel.
             Tue Oct 05 2004, 02:20PM

Registered Member #26
Joined: Fri May 14 2004, 05:32AM
posts 123
iRalf: are using the newest one? I have had no problems with 1.9.3. However, 1.8.3 would crash LS sometimes.
Back to top
iRalf
Thread: Hooking lsxcommand & rabidvwm in xLabel.
             Tue Oct 05 2004, 08:50PM
Registered Member #116
Joined: Thu Aug 26 2004, 12:30AM
posts 34
I checked, yes, i'm using 1.9.3
Actually I've gotten it to work now, but the label containing lsxcommand dissapears after a !recycle, and litestep hangs.



Back to top
iRalf
Thread: Hooking lsxcommand & rabidvwm in xLabel.
             Mon Oct 11 2004, 11:31PM
Registered Member #116
Joined: Thu Aug 26 2004, 12:30AM
posts 34
Bump >> sorry to bother you guys with it, but I still have the problem that the label which hooks lsxcommand dissapears when i !recycle, and litestep hangs and sometimes crashes. The label contains
*label lcommand
lcommandalwaysontop
lcommandaddtogroup bars
lcommandx 0
lcommandy 0
lcommandwidth 146
lcommandheight 26
lcommandimage $Img$bars\topbar.png
*lcommandmodulehook !commandboxhook



And lsxcommand contains

commandwaitforbox
commandsearchenginelist $Misc$engines.list
commandhistoryfile $Misc$lshistory.ini
commandnotmoveable
commandnocursorchange
commandnotalwaysontop
commandunixhistory
commandnowarnonerror
commandtransparenteditbox
commandtabfilecomplete
commandbordersize 1
commandbackground lsxcommand.png
commandx 3
commandy 3
commandwidth 140
commandheight 20
commandtextfontface $Font$
commandtextsize $Fs$
commandtextcolor $FontColor$
commandonfocus !input
commandonunfocus !stopinput
commandoncommand $Snd$command.wav
include $Rc$commands.rc


lsxcommand is loaded before xlabel, also tried loading it threaded and unthreaded.

Somebody?...
Back to top
Cerbie
Thread: Hooking lsxcommand & rabidvwm in xLabel.
             Tue Oct 12 2004, 04:08AM

Registered Member #26
Joined: Fri May 14 2004, 05:32AM
posts 123
What xLabel version are you using? I've had some oddities in the 3.2-beta with the label holding LSXCOmmand having contents at strange negative coords, even if I move them. A much simpler config than yours.
Back to top
Anonymous
Thread: Hooking lsxcommand & rabidvwm in xLabel.
             Tue Oct 12 2004, 08:41AM

Guest
I use the latest 3.2 beta, but I've been having this problem ever since I started using xLabel (if i recall correctly, had this problem with lsBox too!)
Back to top

Quick Reply:

 

Go to page -1-2 Next

Jump:     Back to top



Chatbox



GothsSecret
   on 02 Nov : 19:54
hehe doin my best


Wolzly
   on 01 Nov : 18:54
ROFL!

You guys never fail to entertain


GothsSecret
   on 01 Nov : 15:47
oh.. sorry to those 2 online ppl, Just fucked up the site for a short mement


Backslash
   on 01 Nov : 06:00
xPopup 1.0.8 ROCKS!


Juan Guillermo
   on 31 Oct : 23:46
Thanks a lot for your GREAT work guis , xmodules are transforming the Litestep shell in a much more fancy/varsatile thing.


AngelKnight
   on 30 Oct : 16:44
^_^


Backslash
   on 29 Oct : 00:54
>Andymon - woot!
>GothsSecret - If necessary, you could probably reduce the gaps between the center and the sides, for those with lower resolutions (not me, I'm at 1280x1024!).


Andymon
   on 28 Oct : 13:02
Just wanna tell:
HighColor(16bit) is coming for all xModules in the near future, finally.


GothsSecret
   on 28 Oct : 11:47
hehe, now I like it too, I wassn't sure if it'll look good if we put a second menu right handed but now it's ok, so no need for a complete change anymore


BobixLeSage
   on 28 Oct : 11:34
Hello everyone!
This layout is just fine, don't get why you want to change it?!









© by LS-Universe.info