Jump to content

compiled and error "Unknown fuction name"


Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see 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

 

Link to comment
Share on other sites

  • Moderators

icecom,

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

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

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see 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

 

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