@@ -2719,13 +2719,13 @@ def win_restore(
2719
2719
2720
2720
# fmt: off
2721
2721
@overload
2722
- def win_wait ( self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None , timeout : Optional [int ] = None ) -> Window : ...
2722
+ def win_wait (self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None , timeout : Optional [int ] = None ) -> Window : ...
2723
2723
@overload
2724
- def win_wait ( self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None , timeout : Optional [int ] = None , blocking : Literal [False ]) -> FutureResult [Window ]: ...
2724
+ def win_wait (self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None , timeout : Optional [int ] = None , blocking : Literal [False ]) -> FutureResult [Window ]: ...
2725
2725
@overload
2726
- def win_wait ( self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None , timeout : Optional [int ] = None , blocking : Literal [True ]) -> Window : ...
2726
+ def win_wait (self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None , timeout : Optional [int ] = None , blocking : Literal [True ]) -> Window : ...
2727
2727
@overload
2728
- def win_wait ( self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None , timeout : Optional [int ] = None , blocking : bool = True ) -> Union [Window , FutureResult [Window ]]: ...
2728
+ def win_wait (self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None , timeout : Optional [int ] = None , blocking : bool = True ) -> Union [Window , FutureResult [Window ]]: ...
2729
2729
# fmt: on
2730
2730
def win_wait (
2731
2731
self ,
@@ -2753,13 +2753,13 @@ def win_wait(
2753
2753
2754
2754
# fmt: off
2755
2755
@overload
2756
- def win_wait_active ( self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None , timeout : Optional [int ] = None ) -> Window : ...
2756
+ def win_wait_active (self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None , timeout : Optional [int ] = None ) -> Window : ...
2757
2757
@overload
2758
- def win_wait_active ( self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None , timeout : Optional [int ] = None , blocking : Literal [False ]) -> FutureResult [Window ]: ...
2758
+ def win_wait_active (self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None , timeout : Optional [int ] = None , blocking : Literal [False ]) -> FutureResult [Window ]: ...
2759
2759
@overload
2760
- def win_wait_active ( self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None , timeout : Optional [int ] = None , blocking : Literal [True ]) -> Window : ...
2760
+ def win_wait_active (self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None , timeout : Optional [int ] = None , blocking : Literal [True ]) -> Window : ...
2761
2761
@overload
2762
- def win_wait_active ( self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None , timeout : Optional [int ] = None , blocking : bool = True ) -> Union [Window , FutureResult [Window ]]: ...
2762
+ def win_wait_active (self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None , timeout : Optional [int ] = None , blocking : bool = True ) -> Union [Window , FutureResult [Window ]]: ...
2763
2763
# fmt: on
2764
2764
def win_wait_active (
2765
2765
self ,
@@ -2787,13 +2787,13 @@ def win_wait_active(
2787
2787
2788
2788
# fmt: off
2789
2789
@overload
2790
- def win_wait_not_active ( self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None , timeout : Optional [int ] = None ) -> Window : ...
2790
+ def win_wait_not_active (self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None , timeout : Optional [int ] = None ) -> Window : ...
2791
2791
@overload
2792
- def win_wait_not_active ( self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None , timeout : Optional [int ] = None , blocking : Literal [False ]) -> FutureResult [Window ]: ...
2792
+ def win_wait_not_active (self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None , timeout : Optional [int ] = None , blocking : Literal [False ]) -> FutureResult [Window ]: ...
2793
2793
@overload
2794
- def win_wait_not_active ( self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None , timeout : Optional [int ] = None , blocking : Literal [True ]) -> Window : ...
2794
+ def win_wait_not_active (self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None , timeout : Optional [int ] = None , blocking : Literal [True ]) -> Window : ...
2795
2795
@overload
2796
- def win_wait_not_active ( self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None , timeout : Optional [int ] = None , blocking : bool = True ) -> Union [Window , FutureResult [Window ]]: ...
2796
+ def win_wait_not_active (self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None , timeout : Optional [int ] = None , blocking : bool = True ) -> Union [Window , FutureResult [Window ]]: ...
2797
2797
# fmt: on
2798
2798
def win_wait_not_active (
2799
2799
self ,
@@ -2819,6 +2819,40 @@ def win_wait_not_active(
2819
2819
resp = self ._transport .function_call ('AHKWinWaitNotActive' , args , blocking = blocking , engine = self )
2820
2820
return resp
2821
2821
2822
+ # fmt: off
2823
+ @overload
2824
+ def win_wait_close (self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None , timeout : Optional [int ] = None ) -> None : ...
2825
+ @overload
2826
+ def win_wait_close (self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None , timeout : Optional [int ] = None , blocking : Literal [False ]) -> FutureResult [None ]: ...
2827
+ @overload
2828
+ def win_wait_close (self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None , timeout : Optional [int ] = None , blocking : Literal [True ]) -> None : ...
2829
+ @overload
2830
+ def win_wait_close (self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None , timeout : Optional [int ] = None , blocking : bool = True ) -> Union [None , FutureResult [None ]]: ...
2831
+ # fmt: on
2832
+ def win_wait_close (
2833
+ self ,
2834
+ title : str = '' ,
2835
+ text : str = '' ,
2836
+ exclude_title : str = '' ,
2837
+ exclude_text : str = '' ,
2838
+ * ,
2839
+ title_match_mode : Optional [TitleMatchMode ] = None ,
2840
+ detect_hidden_windows : Optional [bool ] = None ,
2841
+ timeout : Optional [int ] = None ,
2842
+ blocking : bool = True ,
2843
+ ) -> Union [None , FutureResult [None ]]:
2844
+ args = self ._format_win_args (
2845
+ title = title ,
2846
+ text = text ,
2847
+ exclude_title = exclude_title ,
2848
+ exclude_text = exclude_text ,
2849
+ title_match_mode = title_match_mode ,
2850
+ detect_hidden_windows = detect_hidden_windows ,
2851
+ )
2852
+ args .append (str (timeout ) if timeout else '' )
2853
+ resp = self ._transport .function_call ('AHKWinWaitClose' , args , blocking = blocking , engine = self )
2854
+ return resp
2855
+
2822
2856
# fmt: off
2823
2857
@overload
2824
2858
def win_show (self , title : str = '' , text : str = '' , exclude_title : str = '' , exclude_text : str = '' , * , title_match_mode : Optional [TitleMatchMode ] = None , detect_hidden_windows : Optional [bool ] = None ) -> None : ...
0 commit comments