Jump to content

Recorded Script via Au3Recorder doesnt work


Go to solution Solved by careca,

Recommended Posts

Hi,

I am new to AutoIT and would need to use this tool to automate our project, i am a newbie and when i record the actions on my windows app built on VC++ all actions get recorded in 'MouseClick" cmd available in AutoIT. But when i run the script  it just launches the app and does no further action. I have tried to modify the cmd using Au3Info window but nothing helps, looks like i am missing something. Please could anyone help me out as am stuck.

Thanks

Link to comment
Share on other sites

Hi, welcome, we can help, could you show the code you have?

Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Link to comment
Share on other sites

here is the code, this just launches the app but doesnt runt the recorded part of the script.

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

Run("path to my .exe","Folder path where exe is located")
#region --- Au3Recorder generated code Start (v3.3.9.5 KeyboardLayout=00000409)  ---
_WinWaitActivate("My VC++ app name","")
MouseClick("left",64,257,1)
Send("password{ENTER}")
#endregion --- Au3Recorder generated code End ---

Link to comment
Share on other sites

Add logging, so you know what step you are on.

We don't know if you are stuck indefinitely in the WinWait, or the WinWaitActive...add a timeout to the call of _WinWaitActivate

Also, check that the Run() is returning a pid > 0, or you have that function's params with incorrect values.

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

  • Solution

I would change all that into this:

Opt("WinTitleMatchMode", 2)
Run("C:\blah.exe")
WinWaitActive('VC++', '', 10)
MouseClick("left",64,257,1)
Send("password{ENTER}")

Because i like to start simple, to prove the concept works, and then add more stuff.

Note the title is only partial, and the opt makes it match with any part of the title.

Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Link to comment
Share on other sites

Glad it's solved, if any problem arises, you know where we are.

Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

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