sashadeg
03-03-2010, 17:19
Как можно создать такую же мишень как в Autoit Window Info, чтобы пользователь сам мог выбрать выбрать окошечко из которого надо вернуть название заголовка окна?
Как можно создать такую же мишень как в Autoit Window Info »
Прикрепил архив с GUIFinder UDF.
Пример:
#include "GUIFinder.au3"
$hGUI = GUICreate (http://www.autoitscript.com/autoit3/docs/functions/GUICreate.htm)("GUICtrlCreateFinder Demo")
$hFinder = GUICtrlCreateFinder(2, 2)
$hHwndInp = GUICtrlCreateInput (http://www.autoitscript.com/autoit3/docs/functions/GUICtrlCreateInput.htm)("", 40, 40, 100, 20)
$hClassInp = GUICtrlCreateInput (http://www.autoitscript.com/autoit3/docs/functions/GUICtrlCreateInput.htm)("", 40, 62, 100, 20)
$hParInp = GUICtrlCreateInput (http://www.autoitscript.com/autoit3/docs/functions/GUICtrlCreateInput.htm)("", 40, 84, 100, 20)
$hTitleInp = GUICtrlCreateInput (http://www.autoitscript.com/autoit3/docs/functions/GUICtrlCreateInput.htm)("", 40, 106, 100, 20)
GUISetState (http://www.autoitscript.com/autoit3/docs/functions/GUISetState.htm)()
While (http://www.autoitscript.com/autoit3/docs/keywords.htm#While) 1
Switch (http://www.autoitscript.com/autoit3/docs/keywords.htm#Switch) GUIGetMsg (http://www.autoitscript.com/autoit3/docs/functions/GUIGetMsg.htm)()
Case (http://www.autoitscript.com/autoit3/docs/keywords.htm#Case) -3
Exit (http://www.autoitscript.com/autoit3/docs/keywords.htm#Exit)
EndSwitch (http://www.autoitscript.com/autoit3/docs/keywords.htm#EndSwitch)
If (http://www.autoitscript.com/autoit3/docs/keywords.htm#If) $FINDER_OPEN And (http://www.autoitscript.com/autoit3/docs/keywords.htm#And) (String (http://www.autoitscript.com/autoit3/docs/functions/String.htm)($FINDER_HWND) <> GUICtrlRead (http://www.autoitscript.com/autoit3/docs/functions/GUICtrlRead.htm)($hHwndInp)) Then (http://www.autoitscript.com/autoit3/docs/keywords.htm#Then)
GUICtrlSetData (http://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetData.htm)($hHwndInp, $FINDER_HWND)
GUICtrlSetData (http://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetData.htm)($hClassInp, $FINDER_CLASS)
GUICtrlSetData (http://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetData.htm)($hParInp, $FINDER_PARENT)
GUICtrlSetData (http://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetData.htm)($hTitleInp, $FINDER_TITLE)
EndIf (http://www.autoitscript.com/autoit3/docs/keywords.htm#EndIf)
WEnd (http://www.autoitscript.com/autoit3/docs/keywords.htm#WEnd)
Источник (http://www.autoitscript.com/forum/index.php?showtopic=105682).
vBulletin v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.
Available in ZeroNet 1osznRoVratMCN3bFoFpR2pSV5c9z6sTC