Hello Bruce,

>> Only two user actions are necessary: press the hotkey when the
>> cursor is in the target field, then click the desired bar button.
>>
>> The hotkey's command: field=win.getfocus
>>
>> For every item on the bar:
>> Command: win.setfocus(field)
>> More commands:
>> wait.for(100)
>> keys your text for this button

> Let me know if this works reliably.  It seems similar to what I tried
> to build into PowerPro and could not get to work for some reason.

I doubt if there is any way to fix this problem by changing the
code that is run when a bar button is clicked. By that time it is
too late, the focus has already changed to the bar's window.

When win.getfocus is attached to a hotkey, it is asking about
the current situation. When it is attached to a bar button,
it is asking about history - very recent history I admit
but sometimes not recorded anywhere, so it is not retrievable.

This is only a problem with some apps which do not refocus
the same child window when you switch back to them with
Alt+Tab or any other method.



Attention: PowerPro's Web site has moved: http://www.ppro.org



SPONSORED LINKS
Computer monitoring software Power pro Computer and internet software
Free computer monitoring software


YAHOO! GROUPS LINKS




Reply via email to