View Full Version : HidePopup plugin question
mitko
October 13th, 2002, 12:55 PM
Is it possible to use this plugin and it's actions for normal popup menus? I mean WinDVD for example (althogh I'm not sure it's a normal popup menu the one in WinDVD). If the answer is "Yes" then how? If the answer is "No" then my question is how I can check if a menuitem in a submenu is checked using the other girder commands?
What I'm trying to achieve is to get the current subtitle language so I can display it when I'm changing the subtitles using the remote.
mitko
October 13th, 2002, 12:55 PM
update:
I found that all the actions (ifEnabled, ifChecked and ifExists) except the Select work with normal menus. (I made a little test project in Delphi)
But I still can't find out how to work with WinDVD4 - the ifChecked command kind of works when I identify them "#.." format but it always returns FALSE. The ifEnabled command always returns TRUE. Only the ifExists command works properly. When I try to literally quote the name of the menu item (for example "Play") it doesn't work (the ifExists returns FALSE)
Can someone help?
mitko
October 13th, 2002, 12:55 PM
Wow
That will be great
What are you plans? Can I help somehow?
Is it also possible to add a command that will return the name of a menu item at a given position ('#4' - the fourth command) or identified by it's ID-number? What about the oposite function - to return the position or ID-number of menu item identified by it's name. I see there could a be problem with this because different items can have the same name. But on the other hand how does the plugin react to this at the moment?
Is it also possible to make the plugin discard the "&" sign? (in WinXP and Delphi popup menus WinXP puts "&" signs by itself and I can't tell if it's the original command or other)
mitko
October 13th, 2002, 12:55 PM
I'm ready for testing
:)
About the scripting in Girder:
I don't see how I can find out the name of a menu-item with a script
Any particular ideas?
I also don't think that the "*" can be used to circumvent the "&" because I can't tell where it will appear. Oftenly it's in the beginning ot the name of the menu-item and I can't use "*"
:(
Snakebite
October 13th, 2002, 12:55 PM
HidePopup should not work with regular menus (message based). It was written to select items from menus based on the Win32 function TrackPopupMenu. The If-actions were added as extras.
I have thought about generalizing the plugin to handle all kinds of menus. Especially since Girder doesn't have IfChecked, IfEnabled and IfExists for the message based menus.
Snakebite
October 13th, 2002, 12:55 PM
What are you plans? Can I help somehow?
I think that's my whole plan for the next version. If you'd like, I can send you the next version to test, when it's available. I already managed to release two buggy versions. :oops:
Is it also possible to add a command that will return the name of a menu item at a given position ('#4' - the fourth command) or identified by it's ID-number? What about the oposite function - to return the position or ID-number of menu item identified by it's name.
While I'm all for completeness, this kind of stuff would be better suited in a script language for Girder. But depending on my level of motivation, I'll consider it after I have generalized the current functionality.
I see there could a be problem with this because different items can have the same name. But on the other hand how does the plugin react to this at the moment?
It will pick the top-most matching item.
Is it also possible to make the plugin discard the "&" sign? (in WinXP and Delphi popup menus WinXP puts "&" signs by itself and I can't tell if it's the original command or other)
I will look into this. Perhaps the wildcard (*) can be used to circumvent this problem?
Snakebite
October 13th, 2002, 12:55 PM
I'm ready for testing
:)
You've got mail.
About the scripting in Girder:
I don't see how I can find out the name of a menu-item with a script
Any particular ideas?
I'm just saying I wish there were full-fledged scripts in Girder. I'm not experienced with Girder's registers/variables, but they seem cumbersome to me... :-?
I also don't think that the "*" can be used to circumvent the "&" because I can't tell where it will appear. Oftenly it's in the beginning ot the name of the menu-item and I can't use "*"
:(
I see what you mean now, it's fixed in the next version.
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.