shortcut with rightclick action Thread last updated on 2004-04-29 18:48:52

Posted by member 48370 on 2004-04-23 07:06:11

hi

somehow i get the feeling i dont understand the docs the way i should ... what do i have to code for a shortcut that has a left and a rightclick action - could someoe give me an example, please?

muhKuh

Posted by member 12798 on 2004-04-23 08:11:16 link

well if you have a shortcut with a leftclick action, just put the rightclick action behind.
e.g. *shortcut [...] [#flags] leftclickaction rightclickaction

Posted by member 48370 on 2004-04-23 08:25:47 link

well thats what i tried and it didnt work out
let me post the shortcut here::

*shortcut "" -179 26 launch_file1.bmp launch_file2.bmp .none #7THSo "$FileManager$" /e,"e:\-downloads-" "$FileManager$" "$drives$"

Posted by member 12798 on 2004-04-23 10:24:00 link

"$FileManager$" /e,"e:\-downloads-" "$FileManager$" "$drives$"

i'm not really into this atm, since i don't use shortcuts anymore, but this code definitely confuses ls or the module, as there're 4 "..." at all which is too much (it's left, right and middle click, right?).
try putting at least the leftclick action into a mzscript bang, that should work it out.

Posted by member 102612 on 2004-04-23 12:22:58 link

I tried to use the new shortcut module which supports left, mid & right click but couldn't get it to work either. I ended up using xlabel w/ an image only. Works fine except the xlabel tooltips work only from time to time. Not a showstopper for me though.

Posted by member 48370 on 2004-04-24 07:15:53 link

no thats not 4 commands but two with an option each ... the first is opening explorer in the given directory and the second is opening "my computer"

any further hints on how to get this to work?

@ElkMonster if ya not using shortcuts anymore, what are u using instead? maybe i could alter the theme so that the rightclick finally works :o

Posted by member 12798 on 2004-04-24 16:56:44 link

i use xlabel and/or skinbox, with xlabel probably being the better choice, at least if you don't need any of the advanced and great features of skinbox (including confusion about configuration questions ;) ).

Posted by member 562 on 2004-04-24 17:33:50 link

this one works for me....
*Shortcut "" 14 -45 b_settings.png b_settings.png b_settings1.png #20TH .none $slide$ [!Popup 0 -48][!PopupTheme 0 -48]

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

Include the []s, as ceeslans did.

Posted by member 48370 on 2004-04-29 07:51:37 link

well, i changed it like u said, but it is still not working like it should do ...

i created an "easy" shortcut like this::
*shortcut "" -209 26 launch_app1.bmp launch_app2.bmp .none #7TSHo ["$Browser$"] ["$Email$"]

nothing - only the first one will be executed
my second shortcut is somehow more strange to me ... if i use the [] like this

*shortcut ... ["$FileManager$" "$drives$"]["$FileManager$" /e,"e:\-downloads-"]

nothing happens ... if i do it like this

*shortcut ... [!execute ["$FileManager$" "$drives$"]] [!execute ["$FileManager$" /e,"e:\-downloads-"]]

only the right click will work PLUS when i move my mouse out of the shortcut the right click action will be executed!
i dont see support for this in the docs?
when i cofigure the shortcut this way

*shortcut ... !execute ["$FileManager$" "$drives$"] !execute ["$FileManager$" /e,"e:\-downloads-"]

it will work like its supposed to, BUT again the rightclick action is executed when i move the mouse out of the shortcut!
hmmmm

maybe there is something interfering?
these are my loaded modules::

*Netloadmodule layercut-1.72
*Netloadmodule ckvwm-1.40
*Netloadmodule jdesk-0.711
*Netloadmodule label-1.99
*Netloadmodule tasks-0.92b4
*Netloadmodule systray2-2.0.1
*Netloadmodule jamptoo-1.4
*Netloadmodule popup2-2.1.6
*Netloadmodule lsxcommand-1.8.5
*Netloadmodule lsslider-1.71
*Netloadmodule geekamp-1.9.71
*Netloadmodule mzscript-0.8.6l
*Netloadmodule textedit-2.52
*NetLoadModule icondesk-0.6
*NetLoadModule shortcut2-2.0.2
LoadModule C:\LiteStep\personal\rainlendar\Rainlendar.dll

it doesnt matter if i load shortcut2 or not - seems that some module can handle shortcuts too :/

muhKuh

Posted by member 12798 on 2004-04-29 12:30:23 link

lol, so what do you use layercut for, if not for shortcuts? ;)

Posted by member 48370 on 2004-04-29 15:30:06 link

hey!
dont lol at me - im no expert nor have i created that theme, but i guess killing layercut would be a good idea now ... ill go check it out thx

muhKuh

Posted by member 12798 on 2004-04-29 15:44:33 link

sorry, didn't mean to hurt you :)

Posted by member 48370 on 2004-04-29 15:50:48 link

aaaaaaah - damnit, life can be so simple if ya looking at the right docs =/

thx again Elk