View Full Version : popupMenu with no mouse press
BarbaPappa 05-31-2005, 10:15 AM Hi!
I've been trying to make a script that displays a small menu only when I hold down a certain hotkey. I can make this work using the popupMenu command as a marking menu, but then I need to press a mouse button in order to see the menuItems. Is there a way to just display a markingMenu or similar menu while just holding down a hotkey?
Thanks
Magnus
|
|
Haider of Sweden
05-31-2005, 08:21 PM
Hi there
I dont have the answer, but it seems quite interesting. What can this method be used for?
BarbaPappa
06-01-2005, 07:12 AM
well, my idea is to make a window appear when i press a key with customs scripts etc. It will only appear as long as i hold down the key, when i release the key it will disappear.
I want it to JUST require a key, not a mouse click as well to just display the "toolmenu". It could probably be used for other things as well, click a button and getting info on the current selection for instance, release and it will disappear... etc...
What I'm considering doing is just making a window toggle on and off with the click of a button. But I would prefer the holding down a button approach!
/Magnus
Haider of Sweden
06-01-2005, 08:46 AM
I understand. If the issue would be only receiving information, then its logical that you dont need any mousepress.
But if the list contains commands for exacmple, that you later would like to click on, then the mouse-press would be unavoidable.
However, it would be intesting to see the result if you success with the idea.
goleafsgo
06-01-2005, 03:23 PM
In your initial post you mention a popup menu and then in your second post you say window...does it matter which one it is? If you really want a window to open/close on a keypress/keyrelease then you could easily assign a hotkey press/release to open a window and then close it. I don't think you can do that with a popup menu without a mouse press though. I would guess it would be easiest to just create a toggle hotkey instead of having to hold down a key while changing things in the window though.
BarbaPappa
06-02-2005, 07:32 AM
Window or popupMenu really doesn't matter as long as I can put buttons into it. I did try while holding down a button a window is visible, and when I release it disappears... works, but Windows XP doesn't seem to like it ( I get an annoying repeating sound )
So I guess if no one has any new ideas, I'll go with the Toggle window function instead Should work fine.
thanks
Magnus
Haider of Sweden
06-02-2005, 08:37 AM
Dont forget to show us some samples if you managed to do anything. It could be useful to know :thumbsup:
CGTalk Moderation
06-02-2005, 08:37 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.