AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

WinGet, OV, Count time interval?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
AEN007



Joined: 04 Apr 2009
Posts: 129

PostPosted: Mon Dec 21, 2009 4:54 pm    Post subject: WinGet, OV, Count time interval? Reply with quote

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
Æ
Back to top
View user's profile Send private message
AEN007



Joined: 04 Apr 2009
Posts: 129

PostPosted: Sun Jan 03, 2010 8:35 pm    Post subject: Reply with quote

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
Æ
Back to top
View user's profile Send private message
AEN007



Joined: 04 Apr 2009
Posts: 129

PostPosted: Sun Jan 10, 2010 12:51 pm    Post subject: Reply with quote

10January2010

Any helpful/replies insights appreciated.
Thank you.
Regards,
AEN
Æ
Back to top
View user's profile Send private message
Peter



Joined: 30 Dec 2005
Posts: 448

PostPosted: Sun Jan 10, 2010 4:25 pm    Post subject: Reply with quote

I have no idea what you are talking about? Confused

PS: you don't have to mention the date in your post. This awesome forum webpage does it automatically Razz .
Back to top
View user's profile Send private message
a_h_k



Joined: 02 Feb 2008
Posts: 626

PostPosted: Sun Jan 10, 2010 11:20 pm    Post subject: Reply with quote

Would this suffice?
Code:
Loop
{
  WinGet, OV, Count
  Sleep, 100
}
Back to top
View user's profile Send private message Visit poster's website
AEN007



Joined: 04 Apr 2009
Posts: 129

PostPosted: Tue Jan 12, 2010 4:25 pm    Post subject: Reply with quote

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
Æ
Back to top
View user's profile Send private message
Peter



Joined: 30 Dec 2005
Posts: 448

PostPosted: Tue Jan 12, 2010 4:33 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
AEN007



Joined: 04 Apr 2009
Posts: 129

PostPosted: Sat Jan 16, 2010 10:17 am    Post subject: Reply with quote

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
Æ
Back to top
View user's profile Send private message
AEN007



Joined: 04 Apr 2009
Posts: 129

PostPosted: Sat Mar 06, 2010 12:49 pm    Post subject: Reply with quote

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% ...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group