Sm0keVap0ur

AutoIt Error: Unknown function name.

4 posts in this topic

I am receiving the following message when I attempt to start a process that invokes the execution of a Autoit executable file.

Line 2 (File"C:\....\MozilliaOpeningPositing.exe"):

Error: Unknown function name.

The code within the file is as follows:

#region --- Au3Recorder generated code Start (v3.3.9.5 KeyboardLayout=00000809)  ---
WinWaitActivate("Opening Posting","")
Send("{ENTER}")
#endregion --- Au3Recorder generated code End ---

Having read previous posts relating to a similar problem I did remove the underscore at the start of the line 2 which read _WinWaitActivate("Opening Posting",""). However this did not resolve the problem.

Can anyone provide some assistance here?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

WinWaitActive....search in helpfile next time, that's one of the most basic functions there is.

F1 in the scite window

Edited by jdelaney

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites

What's up with your response...? I've only just started using this tool today as you can see from my Profile (1 Post). If you don't want to assist new users then don't respond to their posts.

Share this post


Link to post
Share on other sites

The underscore needs to be there but you are missing the UDF which should have been generate by Au3Recorder as well:

Func _WinWaitActivate($title,$text,$timeout=0)
    WinWait($title,$text,$timeout)
    If Not WinActive($title,$text) Then WinActivate($title,$text)
    WinWaitActive($title,$text,$timeout)
EndFunc

 

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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