a3asc Posted February 11, 2008 Share Posted February 11, 2008 Please help me with anygui. I cannot seem to make it work. I have autoit 3.2.10.0. I copied a simple example from the forum that uses Notepad. When I compile the example and excite it. an alert pops up stating that a constant can not be redeclared line -1 Here is the script I copied. #include <ANYGUI.au3> $PID = Run("notepad.exe") WinWaitActive("") $hWnd = _GuiTarget ("Untitled - Notepad", 1) $child = _TargetaddChild ("", 0, 0, 5000, 60, $hWnd) $button2 = _TargetaddButton ("button", 0, 0, 100, 100) GUISetState(@SW_SHOW) _EndTarget () While WinExists($hWnd) $size = WinGetClientSize($hWnd) If WinExists($hWnd) Then ControlMove($hWnd, "", 15, 0, 100, $size[0], $size[1] - 100) ControlMove($hWnd, "", "SysTabControl321", 25, 0, $size[0] - 50, 20) ControlMove($hWnd, "", "Button2", $size[0] - 20, 0, 20, 20) EndIf Sleep(100) WEnd Link to comment Share on other sites More sharing options...
simusphere Posted February 11, 2008 Share Posted February 11, 2008 See this post. Link to comment Share on other sites More sharing options...
Zedna Posted February 11, 2008 Share Posted February 11, 2008 Please help me with anygui. I cannot seem to make it work. I have autoit 3.2.10.0. I copied a simple example from the forum that uses Notepad. When I compile the example and excite it. an alert pops up stating that a constant can not be redeclared line -1If ANYGUI.au3 is not fixed yoou can make it yourself, it's easy.Just comment out error lines containing constants which are defined in AutoIt already.Open ANYGUI.au3 in Scite press Ctrl+F5 and go to error lines and comment them. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now