> > > *TrayIcon Right =AmP
> > > *Keys {left}{up}{up}{up}{enter}
> > > wait.for(1500,activewindow("=AmP"))


: where can i find informations about the processing-
> sequence of PowerPro-commands especially about asynchronous/
> synchronous, because for me it seems, that the *keys-command is 
> processed asynchronously. 



Ignoring jumps, PowerPro commands are processed sequentially.  The 
complications you experienced (along with most other people playing 
with key sending) come from two sources:  Windows multi-tasking and 
the way keys are actually sent (hint:  they are not sent at all!).

In your above script you send a command to a tray icon which shows a 
window.  Will that window be shown and ready to receive input before 
the next PowerPro command is executed?  There is no way of knowing 
and there is no consistent answer.  The reason:  Windows 
multitasking shares the CPU between PowerPro and the program you 
activated with the tray icon.  On different occasions the CPU will 
be shared differently.  Hence, if the next step in your script 
depends on the window being there, then you must include a wait in 
your PowerPro script to ensure that happens.  (BTW, a menu is just 
another type of window).

The second half to this situation is that fact that keys cannot 
be "sent" on Windows systems.  All any program can do is put 
simulated keystrokes in the system input buffer for the  foreground 
window to take them.  There is nothing asynchronous in PowerPro in 
this.  PowerPro puts the keys in the input buffer (note that 
PowerPro does not have to be the foreground window to be 
executing).   Then whenever the foreground window receives CPU 
cycles from the Windows multitasking controller, that foreground 
window processes the keys.








------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/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