Sign in to follow this  
Followers 0
Guest Bean

include file issues

2 posts in this topic

I am having a hard time testing a simple GUI in AutoIt. I have done alot of non GUI work with AutoIt.

Here is what I am doing:

Inside the Include folder:

- Created a file

; ----------------------------------------------------------------------------

;

; AutoIt Version: 3.0

; Language: English

; Platform: Win9x / NT

; Author: A.N.Other <myemail@nowhere.com>

;

; Script Function:

; Template AutoIt script.

;

; ----------------------------------------------------------------------------

; ----------------------------------------------------------------------------

; Set up our defaults

; ----------------------------------------------------------------------------

AutoItSetOption("MustDeclareVars", 1)

AutoItSetOption("MouseCoordMode", 0)

AutoItSetOption("PixelCoordMode", 0)

AutoItSetOption("RunErrorsFatal", 0)

AutoItSetOption("TrayIconDebug", 1)

AutoItSetOption("WinTitleMatchMode", 4)

; ----------------------------------------------------------------------------

; Script Start

; ----------------------------------------------------------------------------

#include <GUIConstants.au3>

GUICreate("Hello World", 200, 100)

GUISetState(@SW_SHOW)

Sleep(2000)

;------------------------------------------------------------------------------

- Saved it as .au3

However, I get the following error when it compiles:

GUICreate("Hello World", 200, 100)

^ERROR

Error: Unknown function name.

Can someone please help me. Thanks in advance.

Share this post


Link to post
Share on other sites



And the version of AutoIt you are using is?

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  
Followers 0