Want to make Rclick+Lclick !popupTheme Thread last updated on 2004-04-25 16:30:12

Posted by member 135953 on 2004-03-25 21:35:12

what would I do to make this happen...........once again hold down my right click on my mouse then left click and it pops up my popupTheme.
I am currently using jdesk and this is my current setting

*jDeskMButton1 [shift;!none;!PopupTheme;!none]


thanks

Posted by member 37809 on 2004-03-25 22:29:16 link

If you're using OTS2, you'll modify this diddy of the specification, but that's cool :)
I guess you have to use a theme that loads mzscript (so it's loaded last for the theme's startup scripts)

I suppose you could do something like:
*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]


That seems a bit tough to trigger though. I personally have a left double-click do !PopupTheme.

(I should post some scripting for generic mouse hold and double-clicking actions for jDesk but never get around to cleaning it up first)

Posted by member 135953 on 2004-03-26 00:47:59 link

I stuck this in my theme.rc last like you said

*NetLoadModule mzscript-0.8.6l

and put the setting you told me for jDeskButton1

but nada dosen't work is there something I am missing, I really wanna get this to work?

once again thanks tnl

Posted by member 37809 on 2004-03-26 13:35:04 link

Try it with mzscript-0.9-beta_12

You could try mzscript 0.8.x by fixing the syntax: replace the braces {} with brackets [] and see if jDesk is fine with that.

Posted by member 135953 on 2004-03-26 13:55:33 link

*jDeskMButton1 [.none;!execute [!varSet LMBDown true][!ifEval ("%[RMBDown]" = "true") '|PopupTheme'];!varSet LMBDown false;!none]

I cheked the jdesk help and fixed the syntax accordingly and tried switching the brackets to no avail....and also using the mzscript 0.9 beta 12.....is there annother module that needs to be loaded ? what about LMBDown and RMBDown are thoes just variables or should there be a diff module loaded so it knows that LMB and RMB is being clicked?


Have you tested if this is even a working script? If it works on your machine no reason it should not work on mine

Posted by member 37809 on 2004-03-26 21:12:08 link

It works here. The LMB and RMB vars are just ordinary mzscript variables.

Do you have both lines of my snippet replacing the ones defined in personal.rc?

Try replacing those |'s with !'s too, but | is the default alternative bang prefix...

Posted by member 7 on 2004-03-27 03:42:04 link

Desktop2 supports this like this:
*Desktop LButton+RButton !PopupTheme

Posted by member 135953 on 2004-04-20 03:26:25 link

so finally swaping jdesk for desktop2 but, is rbutton !popup a default bang, I haven't even scripted the bang and when I click r button !popup appears

*Desktop LButton+RButton !PopupTheme works but right after I let go of the R button !popup is called even though I dont have it defined

can desktop2 capture a double click

Posted by member 7 on 2004-04-25 11:37:12 link

Try
*Desktop RButton !none

Posted by member 135953 on 2004-04-25 16:30:12 link

lol it was because I had strokeit running that *Desktop LButton+RButton wouldnt run but its all good now