Guest Bean Posted July 19, 2005 Posted July 19, 2005 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.
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