Missing closing quote?? Thread last updated on 2004-05-05 17:37:31

Posted by member 129055 on 2004-04-30 18:15:16

I tried to write a simple togel script to turn on a screensaver background but I keep geting "Missing closing quote". Did I over look something? Or should I stop looking at my screen, go to bed and try again tomorrow?


*Script start !ifeq backscreen"0" '|Enablesaver' else '|Disablesaver'


*Script bang !Enablesaver
*Script exec !varSet backscreen 0
*Script exec !varSaveAll
*Script exec !ShortcutGroupHide 54
*Script exec !ShortcutGroupHide 55
*Script exec |ReloadModule "$ModulesDir$saver.dll"
*Script ~bang

*Script bang !Disablesaver
*Script exec !varSet backscreen 1
*Script exec !varSaveAll
*Script exec !ShortcutGroupHide 55
*Script exec !ShortcutGroupHide 54
*Script exec |UnloadModule "$ModulesDir$saver.dll"
*Script ~bang

Posted by member 1949 on 2004-04-30 20:58:14 link

*Script start !ifeq backscreen nospace "0" '|Enablesaver' else '|Disablesaver'

Posted by member 129055 on 2004-04-30 22:04:12 link

thanks

Posted by member 129055 on 2004-04-30 22:06:30 link

I will tyy. Then bed

Posted by member 129055 on 2004-05-04 22:57:33 link

I tryed the code that you sent now I get a !ifeq error.
Got to go to work will try more later (I was missing the 'space' but it stil dosent work.

Posted by member 1949 on 2004-05-05 17:37:31 link

Try something like this...
*Script Start !ifeval ("%{backscreen}" = "0") {!disablesaver} or ("%{backscreen}" = "1") {!enablesaver}