Jump to content
Sign in to follow this  
a3asc

Help With AnyGui

Recommended Posts

a3asc

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

Share this post


Link to post
Share on other sites
Zedna

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.

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.