Desktop rButton+lButton for jdesk? Thread last updated on 2004-05-12 00:29:49

Posted by member 135953 on 2004-05-10 00:17:59

I moved from desktop 2 to jdesk but I cant remember what the setting is to get this
Desktop rButton+lButton !PopupTheme to work in jdesk.

I wanna keep my

jDeskMButton2 [.none;!none;!Popup;!none]

the same. I just wanna do this for jdesk

rButton+lButton !PopupTheme

Thanks

Posted by member 7223 on 2004-05-10 01:04:58 link

jdesk doesn't support this (as far as I know)
You have to break OTS2 compatibility and make some scripts

Posted by member 135953 on 2004-05-10 15:48:16 link

tnl game a script using mzscript and t worked but only problem was that for my !popup I had to hold lmb down then rmb click where as I only wanted to rmb for my !popup.

*jDeskMButton2 [.none;!varset RMBDown true;!execute [!ifeval ("%{LMBDown}" = "true") '|Popup'][!varset RMBDown false];!none]
*jDeskMButton1 [.none;!execute [!varset LMBDown true][!ifeval ("%{RMBDown}" = "true") '|PopupTheme'];!varset LMBDown false;!none]

Posted by member 7223 on 2004-05-10 23:17:38 link

*jDeskMButton1 [.none;!varset LMBDown true;!varset LMBDown false;!none]
*jDeskMButton2 [.none;!none;!ifeq LMBDown "true" '|popuptheme' else '|Popup';!none]

Posted by member 135953 on 2004-05-11 00:10:40 link

Smurth you're the man...........but on last thing.
Is it possible to have the popupTheme appear by holding RMB then clicking the LMB as opposed to LMB then RMB?

Oh I keep getting this "Exception during bang command :LMBDown "true" '|popuptheme' else '|Popup'"

seems that it only happens if I first click lmb on the desktop before I click rmb

Posted by member 7223 on 2004-05-11 02:38:41 link

About the exception; adding this should fix it:
*script start !varset LMBDown false


For the other question: yes, it is possible. You have all the clues to do it by yourself, now :)

Posted by member 135953 on 2004-05-11 03:29:24 link

Where do I put the script? I tried in theme.rc and personal.rc I still get the exception, does it rely on a diff module maybe?

Posted by member 7223 on 2004-05-11 10:15:42 link

You need to put it in a *mzscriptfile (look at mzscript's docs)

Posted by member 111 on 2004-05-11 14:46:00 link

set flag
mzScriptUseStep
and just put in theme.rc

I don't really know the reason to use *mzScriptFile

Posted by member 135953 on 2004-05-11 15:34:02 link

stuck it in the script.rc and its all good............Thanks alot Smurth

Posted by member 7223 on 2004-05-12 00:29:49 link

@inform-sega: perhaps a better/quicker parser