Jump to content

AutoIt Line 1 error: Unknown Fuction name. please help!


Recommended Posts

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

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

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 by tasemu

[IMG]http://i432.photobucket.com/albums/qq50/tasemu/tasemu_sig.jpg[/IMG]

Link to comment
Share on other sites

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

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 by tasemu

[IMG]http://i432.photobucket.com/albums/qq50/tasemu/tasemu_sig.jpg[/IMG]

Link to comment
Share on other sites

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)

You need to include the HTTP UDF... Show us your includes. Edited by JamesBrooks
Link to comment
Share on other sites

#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 by tasemu

[IMG]http://i432.photobucket.com/albums/qq50/tasemu/tasemu_sig.jpg[/IMG]

Link to comment
Share on other sites

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

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

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

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

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

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