--- In [EMAIL PROTECTED], Alex Peters <[EMAIL PROTECTED]> wrote:
> --- 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?

Yes.
 
> 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.

Somehow, I knew you were going to say that.
 
> > 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?

I would like to have both.  There are significant gaps between
development times on these applications.  I like having the bar come
up as a reminder that I have a PP userid/password shortcut defined. 
Plus I get the 'wow' reaction from someone looking over my shoulder
when I click on a button, and the values auto-populate. It's the
simple things that impress the most. :)
 
> > 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.
> 

Each bar performs the same action, but with different values.

Wait a minute....

I suppose what I could do is have the hot key and the bar(s) call the
same script.  In that script I could figure out what window was active
and execute the appropriate commands.  If I also included in that
script a dynamic creation of the necessary bars, and call it during PP
startup, then all the necessary info would be in the same file, and
easy to find/change using variables.  

The Hot Key would always be on (I would prefer it was only active for
the appropriate window), but that's not too bad as long as I handled
it correctly in the script. It does't appear that my wish of being
able to add/remove Hot Keys depending on events is possible (still
haven't found it in the help at least).  Bummer.

I see I have more help file reading in my future.

Thanks for 'listening',
Paul





------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/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/
 



Reply via email to