testing1 Posted July 16, 2014 Share Posted July 16, 2014 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 More sharing options...
careca Posted July 16, 2014 Share Posted July 16, 2014 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 More sharing options...
testing1 Posted July 16, 2014 Author Share Posted July 16, 2014 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 More sharing options...
GordonFreeman Posted July 16, 2014 Share Posted July 16, 2014 (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 July 16, 2014 by GordonFreeman Frabjous Installation Link to comment Share on other sites More sharing options...
jdelaney Posted July 16, 2014 Share Posted July 16, 2014 (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 July 16, 2014 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 More sharing options...
Solution careca Posted July 16, 2014 Solution Share Posted July 16, 2014 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 More sharing options...
testing1 Posted July 17, 2014 Author Share Posted July 17, 2014 Thank you all, this issue is resolved, instead of mouseclick i used a controlClick option and passed the Advanced mode parameters. Thanks once again Link to comment Share on other sites More sharing options...
careca Posted July 17, 2014 Share Posted July 17, 2014 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 More sharing options...
testing1 Posted July 17, 2014 Author Share Posted July 17, 2014 Thanks Careca and all who replied to the post and helped me out in someway or other 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