tasemu Posted July 10, 2009 Share Posted July 10, 2009 hey, i have this script here and i compiled it with AutoIt version 3.3 and i get the error: Error Line 1: Unknown Function name heres the first few lines of my script, thanks in advance!! #NoTrayIcon #Region ;* #AutoIt3Wrapper_icon=..\..\..\..\Desktop\Icons\ICO\world.ico #AutoIt3Wrapper_Compression=4 AutoIt3Wrapper_AU3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 #EndRegion ; thanks again cheers [IMG]http://i432.photobucket.com/albums/qq50/tasemu/tasemu_sig.jpg[/IMG] Link to comment Share on other sites More sharing options...
Xenobiologist Posted July 10, 2009 Share Posted July 10, 2009 Hi, Autoit normally points out that the error is in line -1. You need to show all the code, cuase the error could be everywhere. Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
tasemu Posted July 10, 2009 Author Share Posted July 10, 2009 (edited) id really like to mate, but the fella who made it told me not to post or give it to any1 its nuthin personal ofcourse, maybe i could post more of it? Edited July 10, 2009 by tasemu [IMG]http://i432.photobucket.com/albums/qq50/tasemu/tasemu_sig.jpg[/IMG] Link to comment Share on other sites More sharing options...
Xenobiologist Posted July 10, 2009 Share Posted July 10, 2009 Hi, then try to find the error yourself. Just use the syntax checker included in Scite to show where the problem is before you compile the script. Does the error occur immediately? Does it occur everytime? Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
James Posted July 10, 2009 Share Posted July 10, 2009 (edited) id really like to mate, but the fella who made it told me not to post or give it to any1 its nuthin personal ofcourse, maybe i could post more of it?AutoIt shows line -1 when it's been compiled.Which function name is unknown? Edited July 10, 2009 by JamesBrooks Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
tasemu Posted July 10, 2009 Author Share Posted July 10, 2009 (edited) these are the errors that appear in syntax checker ERROR: _HTTPConnect(): undefined function. $socket = _HTTPConnect($host) ERROR: _HTTPPost(): undefined function. $get = _HTTPPost($host,$url,$socket, $vars) and the error dousnt appear immediately, a message box i wanted appears b4 it, and the errors appear around 1 third of the way down Edited July 10, 2009 by tasemu [IMG]http://i432.photobucket.com/albums/qq50/tasemu/tasemu_sig.jpg[/IMG] Link to comment Share on other sites More sharing options...
James Posted July 10, 2009 Share Posted July 10, 2009 (edited) these are the errors that appear in syntax checkerERROR: _HTTPConnect(): undefined function.$socket = _HTTPConnect($host)ERROR: _HTTPPost(): undefined function.$get = _HTTPPost($host,$url,$socket, $vars)You need to include the HTTP UDF... Show us your includes. Edited July 10, 2009 by JamesBrooks Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
tasemu Posted July 10, 2009 Author Share Posted July 10, 2009 (edited) #include <ftp.au3> #include <WinAPI.au3> #include <WindowsConstants.au3>; #include <StructureConstants.au3>; #include <misc.au3> #include <string.au3> #include <winHTTP.au3> <<<<< maybe this 1? Edited July 10, 2009 by tasemu [IMG]http://i432.photobucket.com/albums/qq50/tasemu/tasemu_sig.jpg[/IMG] Link to comment Share on other sites More sharing options...
Xenobiologist Posted July 10, 2009 Share Posted July 10, 2009 OKay, the message is clear. You are trying to use call a function which is not in your code or in any of the includes. That is your problem. Have a look how the functions are called maybe there is only a _ or something missing or you simply have the wrong include file. Maybe it is HTTP.au3 and not the winHTTP.au3. Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
tasemu Posted July 10, 2009 Author Share Posted July 10, 2009 heres my msn: monkeysondope@hotmail.com maybe one of you could help me with teamviewer or sumthing? it would be so much appreciated! [IMG]http://i432.photobucket.com/albums/qq50/tasemu/tasemu_sig.jpg[/IMG] Link to comment Share on other sites More sharing options...
James Posted July 10, 2009 Share Posted July 10, 2009 (edited) I'll do it. Sorted. Just needed to change the last include to come from the working directory "" not <> Edited July 10, 2009 by JamesBrooks Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Xenobiologist Posted July 10, 2009 Share Posted July 10, 2009 So, problem is solved? It was the wrong include (wrong path) Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
tasemu Posted July 10, 2009 Author Share Posted July 10, 2009 yea, i ended up finding the correct function mate, thanks so much for your help. with a little more tweaking i think it will work fine. if any1 else wants to help me i can give u a finished copy. the files pretty useful. but thers no major need anymore. im sure eventually i will work it out im a persistant person [IMG]http://i432.photobucket.com/albums/qq50/tasemu/tasemu_sig.jpg[/IMG] Link to comment Share on other sites More sharing options...
James Posted July 10, 2009 Share Posted July 10, 2009 So, problem is solved? It was the wrong include (wrong path)Yeah, needed to be working directory and not include. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
tasemu Posted July 10, 2009 Author Share Posted July 10, 2009 can sum1 add me on msn: monkeysondope@hotmail.com and help me with these last 2 errors, im almost sure that its just a problem with the name, but i dont understand the functions enough to connect them back up [IMG]http://i432.photobucket.com/albums/qq50/tasemu/tasemu_sig.jpg[/IMG] Link to comment Share on other sites More sharing options...
James Posted July 10, 2009 Share Posted July 10, 2009 How about you learn the basics of AutoIt first then? Understand functions, UDF's and other simple parts of AutoIt... Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ 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