Jump to content

Help With AnyGui


a3asc
 Share

Recommended Posts

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

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

If 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.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...