Sign in to follow this  
Followers 0
HowDoIShotWeb

Using AU3Record

3 posts in this topic

#1 ·  Posted (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 by HowDoIShotWeb

Share this post


Link to post
Share on other sites



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]

Share this post


Link to post
Share on other sites

That's a bug that has already been reported as #2124


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

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