raghuram534 / autokey

Automatically exported from code.google.com/p/autokey
GNU General Public License v3.0
0 stars 0 forks source link

Feature Request: 0 seconde time out for wait_for_focus and wait_for_exist #74

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I wish use window.wait_for_focus with a 0 seconde time out.

But this not work.

Reading the source code we can see that the minimum delai that the method is 
waiting is 0.3 seconde and slow down my script whereas i don't want to wait any 
seconde. And pass a 0 seconde time out return always false.

This is solvable just adding:
   if regex.match(self.mediator.interface.get_window_title()): 
      return True 
Before the "while".

Thank.

Original issue reported on code.google.com by ggauthie...@gmail.com on 24 Aug 2010 at 9:04

GoogleCodeExporter commented 8 years ago
I don't quite see what you are trying to do. If the window doesn't immediately 
exist, you want it to fail instantly?

Original comment by cdekter on 25 Aug 2010 at 7:04

GoogleCodeExporter commented 8 years ago
Yes.
Return True or False instantly.

Original comment by ggauthie...@gmail.com on 25 Aug 2010 at 8:14

GoogleCodeExporter commented 8 years ago
Done, will be in next release

Original comment by cdekter on 25 Aug 2010 at 9:34

GoogleCodeExporter commented 8 years ago
Thank :) !

Original comment by ggauthie...@gmail.com on 25 Aug 2010 at 9:39