Sign in to follow this  
Followers 0
testing1

Recorded Script via Au3Recorder doesnt work

9 posts in this topic

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

Share this post


Link to post
Share on other sites



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


Spoiler

Paster - Main function is to paste text, but has more functions.

OpenW - Open With... alternative, Open any file with any application, set it's icon, set application as default.

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

BeatsPlayer - Music player.

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

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.

Firefox Profile Backup - Backup/restore previously saved profile.

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

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

 

Share this post


Link to post
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 ---

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Try add #RequireAdmin on top of script. Anyway au3Recorder is better to learn, catch the points.

You also need see if the coords recorded by recorder are Client Area. Then, you need

Opt("MouseCoordMode",2)

Edited by GordonFreeman

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

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.

Share this post


Link to post
Share on other sites

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

Paster - Main function is to paste text, but has more functions.

OpenW - Open With... alternative, Open any file with any application, set it's icon, set application as default.

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

BeatsPlayer - Music player.

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

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.

Firefox Profile Backup - Backup/restore previously saved profile.

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

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

 

Share this post


Link to post
Share on other sites

Thank you all, this issue is resolved, instead of mouseclick i used a controlClick option and passed the Advanced mode parameters.

Thanks once again

Share this post


Link to post
Share on other sites

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


Spoiler

Paster - Main function is to paste text, but has more functions.

OpenW - Open With... alternative, Open any file with any application, set it's icon, set application as default.

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

BeatsPlayer - Music player.

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

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.

Firefox Profile Backup - Backup/restore previously saved profile.

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

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

 

Share this post


Link to post
Share on other sites

Thanks Careca and all who replied to the post and helped me out in someway or other :)

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