Posted by member 1783 on 2003-06-03 10:25:17
this is a minor problem actually, but my theme would look better if anyone could solve this. i have my vwm in a box and it is loaded if the user wants it. i have animated the appearing and dissapearing sequences like this:
only one little problem: the vwm appears in the box after the box has moved to its correct position. during the movement the box is empty. i guess this is caused by vwm not loading by the time the animation starts. i could repair it by defining a pause between the loading and the animation, but the loading time depends on the user's system so here's my question: can the script be told when rabidvwm has finished loading?
*Script bang !Toggle_VWM
*Script gotoif ("%{Initialized}" = "false") Show_VWM
*Script gotoif ("%{VWMVisible}" = "true") Hide_VWM
*Script label Show_VWM
*Script exec !ReloadModule "$ModulesDir$RabidVWM.dll"
*Script exec !LsBoxCreate $ConfigDir$vwm.box
; *Script exec !pause 1000
*Script exec !ifEval ("%{Initialized}" = "true") {!LsBoxMoveBox VWM 49 -24 10 20} else {!LsBoxMoveBox VWM 49 -24}
*Script exec !varSet VWMVisible "true"
*Script goto Save_VWM
*Script label Hide_VWM
*Script exec !LsBoxMoveBox VWM 49 -0 10 20
*Script exec !LsBoxDestroy VWM
*Script exec !UnloadModule "$ModulesDir$RabidVWM.dll"
*Script exec !varSet VWMVisible "false"
*Script label Save_VWM
*Script exec !varSave VWMVisible
*Script ~bang
*Script gotoif ("%{Initialized}" = "false") Show_VWM
*Script gotoif ("%{VWMVisible}" = "true") Hide_VWM
*Script label Show_VWM
*Script exec !ReloadModule "$ModulesDir$RabidVWM.dll"
*Script exec !LsBoxCreate $ConfigDir$vwm.box
; *Script exec !pause 1000
*Script exec !ifEval ("%{Initialized}" = "true") {!LsBoxMoveBox VWM 49 -24 10 20} else {!LsBoxMoveBox VWM 49 -24}
*Script exec !varSet VWMVisible "true"
*Script goto Save_VWM
*Script label Hide_VWM
*Script exec !LsBoxMoveBox VWM 49 -0 10 20
*Script exec !LsBoxDestroy VWM
*Script exec !UnloadModule "$ModulesDir$RabidVWM.dll"
*Script exec !varSet VWMVisible "false"
*Script label Save_VWM
*Script exec !varSave VWMVisible
*Script ~bang
only one little problem: the vwm appears in the box after the box has moved to its correct position. during the movement the box is empty. i guess this is caused by vwm not loading by the time the animation starts. i could repair it by defining a pause between the loading and the animation, but the loading time depends on the user's system so here's my question: can the script be told when rabidvwm has finished loading?