AutoHotkey Community

It is currently May 27th, 2012, 12:45 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: December 21st, 2009, 5:54 pm 
Offline

Joined: April 4th, 2009, 9:59 am
Posts: 130
21December2009

I am curious to ask/hear what time interval
should separate two WinGet, OV, Count commands
in a persistent script to catch any/all changes in the (NonHidden) WinCount?
I know what effect the set time interval has on CPU usage
on my three XP laptops, but I have virtually no idea
what the physics of the time element is.
Of course the HW specs / RAM speed etc affect the time interval ...

Any helpful/replies insights appreciated.
Thank you.
Regards,
AEN
Æ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 3rd, 2010, 9:35 pm 
Offline

Joined: April 4th, 2009, 9:59 am
Posts: 130
3January2010

Greetings.
I wish the AHK Forum was as awesome as AHK is ...

Any helpful/replies insights appreciated.
Thank you.
Regards,
AEN
Æ

7January2010

Any helpful/replies insights appreciated.
Thank you.
Regards,
AEN
Æ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 10th, 2010, 1:51 pm 
Offline

Joined: April 4th, 2009, 9:59 am
Posts: 130
10January2010

Any helpful/replies insights appreciated.
Thank you.
Regards,
AEN
Æ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 10th, 2010, 5:25 pm 
Offline

Joined: December 30th, 2005, 5:01 pm
Posts: 448
I have no idea what you are talking about? :?

PS: you don't have to mention the date in your post. This awesome forum webpage does it automatically :P .


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 11th, 2010, 12:20 am 
Offline

Joined: February 2nd, 2008, 4:35 am
Posts: 643
Would this suffice?
Code:
Loop
{
  WinGet, OV, Count
  Sleep, 100
}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 12th, 2010, 5:25 pm 
Offline

Joined: April 4th, 2009, 9:59 am
Posts: 130
12January2010

Greetings.

Thanks for the replies.
The question/s is/are»
What should the sleep delay be?
How should one calculate the sleep delay on different PCs?
In how many milliseconds can new windows appear?

I have virtually no idea what the physics of the time element is.
Of course the HW specs / RAM speed etc affect the time interval ...

Any helpful/replies insights appreciated.
Thank you.
Regards,
AEN
Æ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 12th, 2010, 5:33 pm 
Offline

Joined: December 30th, 2005, 5:01 pm
Posts: 448
AEN007 wrote:
In how many milliseconds can new windows appear?
AFAIK, they can appear any moment, what should they wait for?
AEN007 wrote:
How should one calculate the sleep delay on different PCs?
Why should the delay be different on different PC's?
Maybe you think the delay must be changed, because they appear slower on a slow PC.
But then they can still appear any moment, albeit slower after the intial trigger from an application.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 16th, 2010, 11:17 am 
Offline

Joined: April 4th, 2009, 9:59 am
Posts: 130
16January2010

Greetings.
Thanks for the reply.

It seems to me that the number of milliseconds
from point in time "T̥" in which a new window can appear
depends on the specs of the PC in question.
It seems to me that the number of milliseconds
from point in time "T̥" in which a new window can appear
is not the same on all three of my XP laptops.
Laptop T from 1998 has a PII 233MHz with 160mb RAM.
Laptop G has an Intel Celeron M370 1500MHz & 1gb DDR2 266MHz RAM.
Laptop I has a PIV 1800MHz & 1gb DDR 133MHz RAM.

It seems to me that G is slightly faster than I.
I would guess because of the RAM speed.
It seems to me that the number of milliseconds
from point in time "T̥" in which a new window can appear
is not the same on any of these laptops -
definitely more milliseconds on laptop T.

Anyway, that's still how it seems to me.
It is not a question of why they should wait.
It seems to me rather a question of how quickly
the HW/SW can actually create the window in the OS.

Any helpful/replies insights appreciated.
Thank you.
Regards,
AEN
Æ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 6th, 2010, 1:49 pm 
Offline

Joined: April 4th, 2009, 9:59 am
Posts: 130
6March2010

Greetings.
I have a script that I want to catch the "Copying/Moving/Deleting" popups.
I had WinDelay set to 10 but that wasn't working sometimes.
I changed WinDelay to 0 and that has been working almost 100% ...


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], iDrug, Leef_me, Ohnitiel, XstatyK and 17 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