icecom3 Posted April 6, 2012 Share Posted April 6, 2012 (edited) Please, I am a noob at this autoit stuff, apologies...I am trying to make a simple autoit script/exeIt simply records a few key strokes when using an application. I am getting an error...I'm using Windows 7 SP1 64bitAU3Record 3.3CompileScript 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 applicationAre 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 April 6, 2012 by icecom3 Link to comment Share on other sites More sharing options...
DemeGeek Posted April 6, 2012 Share Posted April 6, 2012 Your function is called _Au3RecordSetup() while you are calling Au3RecordSetup(), just add a "_". Link to comment Share on other sites More sharing options...
icecom3 Posted April 6, 2012 Author Share Posted April 6, 2012 (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 April 6, 2012 by icecom3 Link to comment Share on other sites More sharing options...
icecom3 Posted April 6, 2012 Author Share Posted April 6, 2012 umm...wait on that. It seems to compile x86 like every 3rd try...so weird Link to comment Share on other sites More sharing options...
icecom3 Posted April 6, 2012 Author Share Posted April 6, 2012 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? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 6, 2012 Moderators Share Posted April 6, 2012 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 ) - 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 Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
icecom3 Posted April 6, 2012 Author Share Posted April 6, 2012 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? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 6, 2012 Moderators Share Posted April 6, 2012 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 Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area 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