I use this scheme, see if you can adapt it to your needs.
pproconf.exe>desktops>setup>run this command list before: set it to vdeskBefore
pproconf.exe>desktops>setup>run this command list before: set it to vdeskAfter
then create command list vdeskBefore with just one command in it:
[EMAIL PROTECTED](desktop)
similarly create command list vdeskAfter with just one command in it:
[EMAIL PROTECTED](desktop)
then edit file vdesk.powerpro and add the following two labels:
; -----------------------------------------------
; Run before and after switching to a new desktop
; arg(1) - current vdesk name
; -----------------------------------------------
@Leave
; arg(1) is the desktop we are leaving
;win.debug("Leaving",arg(1))
quit(do("[EMAIL PROTECTED]"++arg(1))) ;; user-defined clean up for the next
desktop
@Enter
; arg(1) is the desktop we are entering
;win.debug("Entering",arg(1))
quit(do("[EMAIL PROTECTED]"++arg(1))) ;; paints desktop from user defined label
Finally add labels with suitable content for each vdesk.
For instance, if your vdesk is named 'vDeskOne' add two labels to
vdesk.powerpro:
@EntervDeskOne
// stuff to execute upon entering vdesk vDeskOne
quit
@ExitvDeskOne
// stuff to execute upon exiting vdesk vDeskOne
quit
You can also add the following code block - it's a set of stubs for standard
vdesk names '1' to '9':
; ---------------------------------------------------------
; CONVENIENCE DESKTOPS
; ---------------------------------------------------------
; stubs for 9 desktops named 1 through 9
; called when PowerPro's own new button desktop is pressed
@Stub
messagebox("ok",esc(scriptname++;;+
"@Stub in vdesk "++deskname++" ("++desknum++")"++;;+
"\nmore...";;+
,?"\"))
quit
@Enter1
quit([EMAIL PROTECTED])
@Leave1
quit
@Enter2
quit([EMAIL PROTECTED])
@Leave2
quit
@Enter3
quit([EMAIL PROTECTED])
@Leave3
quit
@Enter4
quit([EMAIL PROTECTED])
@Leave4
quit
@Enter5
quit([EMAIL PROTECTED])
@Leave5
quit
@Enter6
quit([EMAIL PROTECTED])
@Leave6
quit
@Enter7
quit([EMAIL PROTECTED])
@Leave7
quit
@Enter8
quit([EMAIL PROTECTED])
@Leave8
quit
@Enter9
quit([EMAIL PROTECTED])
@Leave9
quit
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/power-pro/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/