Jump to content

include file issues


Guest Bean
 Share

Recommended Posts

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.

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