AutoHotkey Community

It is currently May 24th, 2012, 2:18 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: WaitReady ?
PostPosted: March 31st, 2004, 10:11 pm 
WaitReady = 1

Quote:
WaitReady suspends script execution until the foreground window has finished processing mouse, keyboard, show window, and optionally, paint events. Issue 1 to include paint events, and 0 to exclude paint events. This command can therefore be used to wait until the active application is ready to receive keyboard and mouse events in most situations.


HotTopic !
I'm currently running a script on an VB application which is connected to a DB via a network. Its performance varies badly so sending strings to forms which haven't been finished to appear ... :( :roll:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 31st, 2004, 10:41 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
I think even if you send keyboard and mouse events to a busy window, they will be buffered in that window's thread msg queue. Therefore, they won't be lost. So I don't see much use for such a feature unless there are specific examples you can list.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 31st, 2004, 11:12 pm 
Well there's no WinWaitOpen (aka "Window has finished to appear"), and you're right a WinWaitActive won't stop the script to send data into the memory (a black box).

So entering data on seperate moving forms of a Billing plattform without the necessary visibility (for security reasons) isn't something which I can explain to my boss, or even colleagues, as an alternative :wink:

Cause that process is running 24/7 I need to have a slight chance to recognize if something is going wrong. Visibilty isn't something to ignore - but maybe I'm wrong and should ask Stevie Wonder or Ray Charles what they think about it :twisted:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 31st, 2004, 11:42 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
It's an interesting idea. There is an API function WaitForInputIdle() which "waits until the given process is waiting for user input with no input pending, or until the time-out interval has elapsed".

Do you think this item has enough usefulness and mass appeal to add to the to-do list?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: engunneer and 25 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group