Tasks Hook Thread last updated on 2005-11-26 18:29:34

Posted by member 287251 on 2005-11-25 20:02:04

I've been attempting to hook Tasks (tasks-0.92-b3) to a lsbox but cant seem to get it. How would I do this ??

Posted by member 1885 on 2005-11-25 20:21:10 link

If I were you I wouldn't use LSBox at all, try xLabel instead. Practically nobody uses LSBox nowadays, and I don't know how many modules are compatible with it anymore.

Posted by member 287251 on 2005-11-25 20:22:38 link

I'll try that thanks

Posted by member 212670 on 2005-11-25 20:24:59 link

*ModuleHook !TasksBoxHook
Be sure to load tasks before lsbox.

(Note: The above mentioned info was, of course, in the readme.)

Btw, if you want more features and stuff, you could use xtaskbar and xlabel instead.

Also, here's a hooking example I posted a while back (with xlabel and lsxcommand - same idea): click

Posted by member 287251 on 2005-11-26 00:15:39 link

Okay now i've switched to xlabel and xtaskbar and now I've hooked it and all I get is a gray outline of the taskbar box on the box i'm trying to put it in. I've read xlabel and I've put in:
*xTaskbar Task
*label Task
TaskLoadInBox
Taskusesolidcolors
Taskbordermethod etched
Taskusebuttonsolidcolors
Taskbuttonbordermethod raised
Taskactivebuttonbordermethod sunken
Taskminimizedbuttonbordermethod bump

TaskLayout ".vertical"
Taskx 20
Tasky 20
Taskwidth 200
Taskheight 300

Tasktopborder 4
Taskbottomborder 4
Taskleftborder 10
Taskrightborder 10

Taskbuttonxspacing 4
Taskbuttonyspacing 2

Taskbuttonmaxheight 25
Taskbuttonmaxwidth 200

Taskfontleftborder 24
Taskiconx 4

*ModuleHook !LabelLSBoxHook Task


and this in the box i'm trying to load it into

*Label Taskbar1280

LsBoxName taskbar
LsBoxX 0
LsBoxY 1
LsBoxHeight 1280
LsBoxWidth 170
LsBoxUnique
LSBoxDragRect 0 0 0 0
;LsBoxStartHidden
LsBoxBackGround taskbar.bmp

TaskLoadInBox
*ModuleHook !LabelLSBoxHook Task


Whats wrong ??

Posted by member 1 on 2005-11-26 02:46:51 link

you have defined your ModuleHook twice and you used a | which you can't use.

Posted by member 32550 on 2005-11-26 03:16:51 link

This is all totally wrong!
Do you still use LSBox!?
It's not very intelligent to use a taskbar, hook it into a label and then hook it into a lsbox!?

Try this:
xTaskbarLoadInBox
xTaskbarusesolidcolors
xTaskbarbordermethod etched
xTaskbarusebuttonsolidcolors
xTaskbarbuttonbordermethod raised
xTaskbaractivebuttonbordermethod sunken
xTaskbarminimizedbuttonbordermethod bump

xTaskbarLayout ".vertical"
xTaskbarx 20
xTaskbary 20
xTaskbarwidth 200
xTaskbarheight 300

xTaskbartopborder 4
xTaskbarbottomborder 4
xTaskbarleftborder 10
xTaskbarrightborder 10

xTaskbarbuttonxspacing 4
xTaskbarbuttonyspacing 2

Taskbuttonmaxheight 25
Taskbuttonmaxwidth 200

xTaskbarfontleftborder 24
xTaskbariconx 4

and this in the LABEL i'm trying to load it into

*label tasklabel
tasklabelX 0
tasklabelY 1
tasklabelHeight 1280
tasklabelWidth 170
tasklabelumage taskbar.bmp

*tasklabelModuleHook !xTaskbarLSBoxHook

Posted by member 212670 on 2005-11-26 03:22:59 link

(edited)
Move along...nothing to see here...

Posted by member 287251 on 2005-11-26 13:32:52 link

OK I put in the code and an error box came up saying it couldn't find the Taskbar I messed with it for about an hour with no luck.

Posted by member 212670 on 2005-11-26 14:31:49 link

Try changing:
*tasklabelModuleHook !xTaskbarLSBoxHook
To:
*tasklabelModuleHook !xTaskbarLSBoxHook xTaskbar

The name of the taskbar is now required, even when using a single taskbar with the default name.

Posted by member 287251 on 2005-11-26 15:07:55 link

Tried that already doesn't work but I tried it again just to make sure and the error box still comes up saying taskbar box not found.

Posted by member 1 on 2005-11-26 15:28:58 link

in what order are you loading your modules?

Posted by member 287251 on 2005-11-26 15:31:57 link

This way

*NetLoadModule "desktop2-2.0"
*NetLoadModule "xTaskbar-1.3.7.dll"
*NetLoadModule "Tasks-0.92-b3"
*NetLoadModule "vtray-1.06"
*NetLoadModule "rabidvwm-1.01"
*NetLoadModule "lsxcommand-1.8.5"
*NetLoadModule "dynamp-0.50"
*NetLoadModule "popup2-2.1.5"
*NetLoadModule "lsslider-1.71"
*NetLoadModule "ckhotspots-2.3.3"
*NetLoadModule "textedit-2.4l-13"
*NetLoadModule "mzscript-0.8.6l"
*NetLoadModule "xLabel-3.4.1"
*NetLoadModule "lsbox-2.95"

Posted by member 212670 on 2005-11-26 16:36:17 link

[holdhand]
OTSMajorVersion 2
OTSMinorVersion 0

ThemeName "hooked"
ThemeAuthor "yo momma"

*NetLoadModule jdesk-0.73
*NetLoadModule xpopup-1.1.9
*NetLoadModule xtaskbar-1.3.8
*NetLoadModule xlabel-3.4.8

xpopupcompatibilitymode
xpopupusesolidcolors
xpopupuseentrysolidcolors
xpopupentryfontleftborder 20
xpopuptopborder 20
xpopupautomenubreak

xTaskbarLoadInBox
xTaskbarusesolidcolors
xTaskbarbordermethod etched
xTaskbarusebuttonsolidcolors
xTaskbarbuttonbordermethod raised
xTaskbaractivebuttonbordermethod sunken
xTaskbarminimizedbuttonbordermethod bump

xTaskbarLayout ".vertical"
xTaskbarx 5
xTaskbary 5
xTaskbarwidth 160
xTaskbarheight $resolutiony-10$

xTaskbartopborder 4
xTaskbarbottomborder 4
xTaskbarleftborder 10
xTaskbarrightborder 10

xTaskbarbuttonxspacing 4
xTaskbarbuttonyspacing 2

Taskbuttonmaxheight 25
Taskbuttonmaxwidth 200

xTaskbarfontleftborder 24
xTaskbariconx 4

*label tasklabel
tasklabelX 0
tasklabelY 0
tasklabelHeight $resolutiony$
tasklabelWidth 170
tasklabelsolidcolors eeeeee ffffff 000000
tasklabelsolidbevelsize 1

*tasklabelModuleHook !xTaskbarLSBoxHook xTaskbar

Tested and works. Add your stuff and tweak from there, or modify what you have accordingly.

[/holdhand]

Posted by member 287251 on 2005-11-26 17:05:14 link

Thanks it works now

Posted by member 287251 on 2005-11-26 17:45:31 link

Last question what is the command for ckhotspot to move tasklabel in bang commands ???

Posted by member 212670 on 2005-11-26 18:29:34 link

xLabel bang commands can be found in xlabel's help file.