Jump to content
Sign in to follow this  

cant run my script

Recommended Posts



im making a script and so far i have this:



#include <GUIConstants.au3>

#include <Constants.au3>

#include <EditConstants.au3>

;;;TraySetIcon ("Server.jpg")

TraySetState ()

$Settings = TrayCreateMenu ("Settings")

$Help = TrayCreateMenu ("Help")

$Log = TrayCreateMenu ("Log")

Func Settings()

$Form1 = GUICreate("Settings", 501, 401, 192, 123)

$Group1 = GUICtrlCreateGroup("Ports", 288, 56, 177, 97)

$Input1 = GUICtrlCreateInput("3200", 376, 80, 65, 21)

$Label1 = GUICtrlCreateLabel("Port Number", 296, 80, 63, 17)

$Label2 = GUICtrlCreateLabel("Port Password", 296, 120, 72, 17)

$Input2 = GUICtrlCreateInput("pass", 376, 120, 65, 21, $ES_PASSWORD)

GUICtrlCreateGroup("Ports", -99, -99, 1, 1)

$Tab1 = GUICtrlCreateTab(16, 40, 465, 337)


$Button1 = GUICtrlCreateButton("Save", 392, 312, 75, 25, 0)

$Button2 = GUICtrlCreateButton("Load", 392, 344, 75, 25, 0)



however when i hit F5 it just does this:

>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Users\Owner\Documents\My Sources\2nd Monitor\Server End.au3" /autoit3dir "C:\Program Files\AutoIt3" /UserParams

+>00:42:27 Starting AutoIt3Wrapper v. Environment(Language:0409 Keyboard:00000809 OS:WIN_VISTA/ CPU:X86)

>Running AU3Check ( from:C:\Program Files\AutoIt3

+>00:42:27 AU3Check ended.rc:0

>Running:(\Program Files\AutoIt3\autoit3.exe "C:\Users\Owner\Documents\My Sources\2nd Monitor\Server End.au3"

+>00:42:27 AutoIT3.exe ended.rc:0

>Exit code: 0 Time: 1.422

please help, its probly a really simple problem but i cant figure it out as no syntax errors come up?


Share this post

Link to post
Share on other sites

You need a loop to keep your script going.


While 1

Somewhere in your script

Share this post

Link to post
Share on other sites

i love you dude =]

spent most of the day going over and over this and all it was is that..... give me a gun =p

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.