Sign in to follow this  
Followers 0
icecom3

compiled and error "Unknown fuction name"

8 posts in this topic

#1 ·  Posted (edited)

Please, I am a noob at this autoit stuff, apologies...

I am trying to make a simple autoit script/exe

It simply records a few key strokes when using an application. I am getting an error...

I'm using Windows 7 SP1 64bit

AU3Record 3.3

CompileScript to exe (x86)

Once compiled I run the .exe and get this...

Line 13 (file "c:pathfile"):

Error: Unknown function name.

line 13 on my script shows only "WinWaitActive($title,$text,$timeout)"

I should probably mention, the application being recorded is a hotkey application

Are there steps I have to take to edit this before I compile it?

scipt below...

#region ---Au3Recorder generated code Start (v3.3.7.0)  ---
#region --- Internal functions Au3Recorder Start ---
Func _Au3RecordSetup()
Opt('WinWaitDelay',100)
Opt('WinDetectHiddenText',1)
Opt('MouseCoordMode',0)
EndFunc
Func _WinWaitActivate($title,$text,$timeout=0)
WinWait($title,$text,$timeout)
If Not WinActive($title,$text) Then WinActivate($title,$text)
WinWaitActive($title,$text,$timeout)
EndFunc
AU3RecordSetup()
#endregion --- Internal functions Au3Recorder End ---

Run('C:etwc.exe')
_WinWaitActivate("ETWC","&Enable Hotkey")
Send("z{TAB}{LEFT}{LEFT}{TAB}{ENTER}")
#endregion --- Au3Recorder generated code End ---
Edited by icecom3

Share this post


Link to post
Share on other sites



Your function is called _Au3RecordSetup() while you are calling Au3RecordSetup(), just add a "_".

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

dang that was easy. thanks. the script now runs, but now when I try to compile x86 it will not. is that because im on a 64bit os?

I am assuming that the "compile x86" option makes a 32bit binary?

Edited by icecom3

Share this post


Link to post
Share on other sites

umm...wait on that. It seems to compile x86 like every 3rd try...so weird

Share this post


Link to post
Share on other sites

im not sure but I think my av is attacking this file I compiled. When I launch it, avg says that it is a threat. I assume this is a false alert?

Share this post


Link to post
Share on other sites

icecom3,

Yes, it is a false positive - try compiling without using upx compression and see if it cures the problem. :)

My AVG does not flag AutoIt (at the moment :D) - are you up-to-date? ;)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

that seems to work thanks:)

oh one last quick question...

how do I add the copyright,internal name, description...etc when i compile ? does it go in script?

Share this post


Link to post
Share on other sites

icecom,

You need the full SciTE4AutoIt3 package and then use the following directives: ;)

#AutoIt3Wrapper_Res_Fileversion=
#AutoIt3Wrapper_Res_LegalCopyright=
://////=__=
#AutoIt3Wrapper_Res_ProductVersion=

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

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  
Followers 0