Glynbeard Posted November 7, 2007 Share Posted November 7, 2007 My script alone works fine but when I convert it into an .exe and try to run it it comes up with this error:And Ideas on what I might be doing wrong? Heres the beginning of my script:MsgBox(64, "GlynFisher", "Please view the Readme.txt before running this fishing bot.") #Tidy_Parameters = /pr 1 /tc 0 /gd 0 /rels 1 /sci 1 Opt("WinTitleMatchMode", 3) #include <GUIConstants.au3> #include <Color.au3> #Include <Misc.au3> HotKeySet("{DELETE}", "DeleteBorder");Demonstrates how to delete the borders ; ma milkshakes bring all teh boys to the yard Global $SetWin = 0, $Loop = 0, $OldSelect, $Casted = 0, $Sec = 28, $Timer, $SLeft, $SRight, $STop, $SBottom Global $Splash = 0xF6F6F6, $Red = -1 $FishGUI = GUICreate("World of Warcraft Fisher", 225, 350) ; there leik Dragon[Sky] pwns newbs $RedPreview = GUICtrlCreateLabel("Please Select A Color!", 10, 265, 100, 75, -1, $WS_EX_CLIENTEDGE) GUICtrlSetBkColor($RedPreview, -1) $SplashPreview = GUICtrlCreateLabel("", 115, 265, 100, 75, -1, $WS_EX_CLIENTEDGE) GUICtrlSetBkColor($SplashPreview, $Splash) $ColorSelect = GUICtrlCreateCombo("", 10, 240, 205, 25) GUICtrlSetData($ColorSelect, IniRead("Colors.ini", "Standard", "List", Default)) GUICtrlSetColor($ColorSelect, 0x800080) $WindowDisplay = GUICtrlCreateInput("Window Not Found", 10, 10, 205, 20, BitOR($ES_CENTER, $ES_AUTOHSCROLL, $ES_READONLY)) GUICtrlSetColor($WindowDisplay, 0x800080) GUICtrlSetBkColor($RedPreview, -3) ; and i'm leik bow down to her now! $Start = GUICtrlCreateButton("Start", 10, 35, 100, 25, 0) $STop = GUICtrlCreateButton("Stop", 115, 35, 100, 25, 0) $Stats = GUICtrlCreateEdit("Statistics", 10, 65, 205, 170, BitOR($ES_READONLY, $WS_VSCROLL)) GUISetState(@SW_SHOW) $effect = _GUIBorderCreateEffect($FishGUI, 0x9CC3CE, 0xFFFFFF, 36) Global $MaxTime = $Sec * 1000I know its messy, i'm just trying to get the basics down still. All helps appreciated.Glyn Link to comment Share on other sites More sharing options...
PsaltyDS Posted November 7, 2007 Share Posted November 7, 2007 I get the exact same result compiling with either Prod or Beta: >"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /beta /in "C:\Program Files\AutoIt3\Scripts\Test_1.au3" /autoit3dir "C:\Program Files\AutoIt3\beta" +>07:56:11 Starting AutoIt3Wrapper v.1.9.3 >Running AU3Check (1.54.9.0) from:C:\Program Files\AutoIt3\beta C:\Program Files\AutoIt3\Scripts\Test_1.au3(8,37) : ERROR: DeleteBorder(): undefined function. HotKeySet("{DELETE}", "DeleteBorder") ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files\AutoIt3\Scripts\Test_1.au3(29,67) : ERROR: _GUIBorderCreateEffect(): undefined function. $effect = _GUIBorderCreateEffect ($FishGUI, 0x9CC3CE, 0xFFFFFF, 36) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files\AutoIt3\Scripts\Test_1.au3 - 2 error(s), 0 warning(s) !>07:56:14 AU3Check ended.rc:2 +>07:56:25 AutoIt3Wrapper Finished >Exit code: 0 Time: 14.510 So, where are these two functions, DeleteBorder() and _GuiBorderCreateEffect()? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Glynbeard Posted November 7, 2007 Author Share Posted November 7, 2007 Not 100% finished yet . But do you know of any way to fix it? Link to comment Share on other sites More sharing options...
weaponx Posted November 7, 2007 Share Posted November 7, 2007 I think the point Psalty was making is that you are getting compiler errors because these functions don't exist. They need to exist if any references are made to them. Link to comment Share on other sites More sharing options...
PsaltyDS Posted November 7, 2007 Share Posted November 7, 2007 Not 100% finished yet . But do you know of any way to fix it?Fix what? Those two functions don't exist. Either write them, include them, or don't use them. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
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