View Single Post
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#630
Originally Posted by WhiteWolf View Post
I can not use QWB_REMEMBER_ME.

I try to use QWB_REMEMBER_ME () but can not.

I need to switch between two values: on and off

Can you help?
$QBW_REMEMBER_ME (not QWB_...) is replaced inside the command at runtime before running the command itself with this rememberMe value:



rememberMe value can also be affected by executed command output. Just echo the following string (which will not be displayed) as output of your command QBW_REMEMBER_ME(<content to be remembered>) no angle brackets; escape "close round bracket" like this "\)" to store it as ")"

Here's an example Beecon which increases by 1 the previously remembered value, displays it and stores it back inside the beecon.

Code:
[queen-beecon-header]
version=1.000000
checksum=2735916
[queen-beecon-exported-instance]
widgetType=0
widgetVisible=1
operationalStatus=0
hideCanvas=false
snippetBgRGB=0
snippetExtBgRGB=#000000000000
beecon_lt0_ImgZoom=0
beecon_lt0_BgRGB=2
beecon_lt0_ExtBgRGB=#808080808080
beecon_lt0_ImgFilename=queen-beecon-syserr.png
beecon_eq0_ImgZoom=0
beecon_eq0_BgRGB=3
beecon_eq0_ExtBgRGB=#00005cfc0000
beecon_eq0_ImgFilename=queen-beecon-appok.png
beecon_eq1_ImgZoom=0
beecon_eq1_BgRGB=4
beecon_eq1_ExtBgRGB=#ffffffff0000
beecon_eq1_ImgFilename=queen-beecon-appwrn.png
beecon_ge2_ImgZoom=0
beecon_ge2_BgRGB=5
beecon_ge2_ExtBgRGB=#ffff00000000
beecon_ge2_ImgFilename=queen-beecon-apperr.png
beecon_idxge2_ImgZoom=0
beecon_idxge2_BgRGB=11
beecon_idxge2_ExtBgRGB=#0000ffffffff
beecon_idxge2_ImgFilename=queen-beecon-index.png
widWidth=143
widHeight=116
instanceTitle=remember+
instanceCmd=x=`expr $QBW_REMEMBER_ME + 1`; echo "QBW_REMEMBER_ME($x)$x"
cmdImgFilename=queen-beecon.png
cmdImgZoom=0
cmdFgRGB=1
cmdExtFgRGB=#ffffffffffff
cmdTextAngle=0
cmdVisibilityPosition=2
cmdImgVisibilityPosition=9
cmdJustify=0
cmdExtFont=Nokia Sans bold italic 15
cmdFontName=3
cmdFontSize=12
resImgFilename=queen-beecon-resimg.png
resImgZoom=0
resFgRGB=1
resExtFgRGB=#ffff00000000
resTextAngle=0
resVisibilityPosition=5
resImgVisibilityPosition=7
resJustify=0
resExtFont=Nokia Sans bold italic 18
resFontName=2
resFontSize=12
updOnStartup=false
updOnClick=true
updOnDesktop=false
delayIndex=0
customIntervalSecs=0
updNeworkPolicy=0
updOnDBUS=0
updOnDBUSBus=0
updOnDBUSMatchRule=
rememberMe=38
progressAnimationBasename=queen-beecon-progress
progressAnimationFrames=4
progressAnimationTimer=4
progressAnimationPos=4
updOnSight=false
cmdImgAngle=0
resImgAngle=0
hideClickCanvas=false
progressAnimationAtClickXY=false
__________________
Have a look at Queen BeeCon Widget (WIKI) Customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for the N900
Please provide comments and feedback for having QBW supported and enhanced further - (DONATE) - v1.3.3devel / v1.3.3testing / v1.3.3extras