![]() When i use the code below, the text does not get set:Ĭode: ControlSetText ( $_currentWindowHWND, "", "", $_orderNumber )ĪutoIt v3 Window Info ( Coord mode = "Window"): > Window > Control > Mouse <<<<Įxpand collapse popup #include #include #include Global $WinSetText = "WinSetText" HotKeySet ( "", "Terminate" ) While True Sleep ( 200 ) WEnd Func MouseSetWindowText ( ) $Pos = MouseGetPos ( ) if IsArray ( $Pos ) Then $X = $Pos $Y = $Pos $sPoint = DllStructCreate ( "int int" ) DllStructSetData ( $sPoint, 1, $X ) DllStructSetData ( $sPoint, 2, $Y ) $HWND = _WinAPI_WindowFromPoint ( $sPoint ) if ( $HWND ) Then $hWndParent = $HWND $OWNER = _WinAPI_GetWindow ( $HWND, $GW_OWNER ) if ( $OWNER ) Then $hWndParent = $OWNER (Apologizes if this has already been discussed in the forums.I searched and could not find anything) When I looked in the help file under controls ( ) there were no examples using the " X Y W H" properties. I have also though about using ControlGetHandle, but that brings another set of problems with it. I'm not sure if using X and Y is a good idea though, since the X and Y can change if the size of the window is changed. ![]() ![]() The reason I am trying to use the " X Y W H" properties instead of "" is because the instance number changes as my script is ran, so if I refer to it as instance 1 at the end of the script, it is not pointing to the correct text box. I am having some trouble with ControlID when I use the " X Y W H" properties. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |