--- Paul wrote: > Currently, I have several PP bars that appear depending on an active > window (each bar being an actual bar, not a single bar with format > context sections). I use them to store testing userid/password > combinations for several applications that I develop. While this > works great, I would like to add hot keys to save myself an > unnecessary mouse action.
My understanding is that these bars automatically display depending on the caption or class or EXE of the active window, and that each bar contains a button to send a username and password to the window. Am I correct? I believe that the best option for this would be to write a script that checks the caption, etc. of the active window and sends keystrokes accordingly. > What I would like to do is when a specific bar appears, be able to > automatically assign a hot key, and when the bar disappears be able > to unassign that hot key. This has the advantage of keeping > everything somewhat together (associated with the bar) instead of > associated with the bar and then also on the hot key tab or another > script file. (Ideally, the hot key would call a bar item, but that's > another day) Would you be needing both the bar and the hotkey if they both do the same thing? > Is there a way to do this? I imagine I could try hooking the window > event and build the bar/destruct the bar using scripts. Then the > script could also handle the hot key. This would be possible but if each bar performs the same functions and assigns the same hotkey each time, then this would be unnecessary. > BTW, can/should you destruct a bar if you've dynamically built it? You can destroy a dynamically built command list using CL.RemoveAll(). The command list will however be automatically removed from memory on a PowerPro reconfigure. If you choose not to remove it, then you just need to be sure that you are using the correct parameters in your CL.Create() command so that you don't get an error if you try to recreate the same list. -- Alex Peters / Melbourne, Australia PowerPro v4.1.00 / Windows XP ------------------------ Yahoo! Groups Sponsor --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/JV_rlB/TM --------------------------------------------------------------------~-> Attention: PowerPro's Web site has moved: http://www.ppro.org Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/power-pro/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
