HowDoIShotWeb Posted May 6, 2012 Share Posted May 6, 2012 (edited) Hi, im also completely new to this. So I am trying to record a number of mouse clicks and keystrokes by using the AU3Record.exe. I record a bunch of actions and save it as a .au3 script , but it can never run it. I keep getting: AU3RecordSetup() ^ ERROR Error: Unknown function name. #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 --- _WinWaitActivate("Program Manager","") MouseClick("left",465,755,1) MouseClick("left",74,678,1) Send("n") MouseClick("left",624,343,1) MouseClick("left",916,621,1) Send("bh") MouseClick("left",685,336,1) Send("bh") MouseClick("left",499,334,1) Send("bh") MouseClick("left",346,348,1) Send("bh") MouseClick("left",164,345,1) Send("bt") MouseClick("left",123,460,1) MouseClick("left",328,344,1) MouseClick("left",328,344,1) Send("wwwwwwwwwwwwwwww") MouseClick("left",110,464,1) Send("tt") #endregion --- Au3Recorder generated code End --- If it means anything, I have the Beta version of AutoIt + the SciTE upgrade with all the tools including Au3Recorder. Thanks for any help Edited May 6, 2012 by HowDoIShotWeb Link to comment Share on other sites More sharing options...
armoros Posted May 6, 2012 Share Posted May 6, 2012 Hello HowDoIShotWeb You start the func with underscore Func _Au3RecordSetup() but when you call it you put no underscore Au3RecordSetup() #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 --- _WinWaitActivate("Program Manager","") MouseClick("left",465,755,1) MouseClick("left",74,678,1) Send("n") MouseClick("left",624,343,1) MouseClick("left",916,621,1) Send("bh") MouseClick("left",685,336,1) Send("bh") MouseClick("left",499,334,1) Send("bh") MouseClick("left",346,348,1) Send("bh") MouseClick("left",164,345,1) Send("bt") MouseClick("left",123,460,1) MouseClick("left",328,344,1) MouseClick("left",328,344,1) Send("wwwwwwwwwwwwwwww") MouseClick("left",110,464,1) Send("tt") #endregion --- Au3Recorder generated code En I hope it helps [font="verdana, geneva, sans-serif"] [/font] Link to comment Share on other sites More sharing options...
water Posted May 6, 2012 Share Posted May 6, 2012 That's a bug that has already been reported as #2124 My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki 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