omikron48 Posted August 10, 2009 Share Posted August 10, 2009 Hello. I'm new here and trying to learn more on how to automate program installations using AutoIt. Is there any way to trigger code execution based on I/O events, such as a key press or a mouse click? What I want to do is make a tool which will make creating automation scripts easier by automatically recording pertinent information while I do an installation compared to jotting it all down manually and looking the information up the AutoIt Info tool. Sort of like, automatically recording the coordinates and component ID of the control whenever you make a mouse click, or recording the title and text of the current active window whenever something changes. It would be helpful too if I was able to make a record of key presses too but I've been reading around the forums and apparently, there is a concern about AutoIt being used to make keyloggers, which limits what can be legally done using AutoIt. It would be nice if I can make a script that I can run when I start installation of a new program, which will make a log of actions and events that I can go back to and read so I can generate an installation script from it. Is it possible? Link to comment Share on other sites More sharing options...
water Posted August 10, 2009 Share Posted August 10, 2009 (edited) AU3Recorder (Alt+F6 in SciTE) does (mostly) what you want. When started it records all actions which then can be run as an AutoIt script. Unfortunately it doesn't record controls clicked it only records screen coordinates. So it might fail when window positions or screen resolution changes. Edited August 10, 2009 by water My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
omikron48 Posted August 10, 2009 Author Share Posted August 10, 2009 Yeah. It would be better if I can auto record component IDs though, which is why I'm more interested to learn how it can be done. A dump of event information would be more useful since you can custom fit and adjust a script and slot in some sleep and wait functions where necessary, especially when running the script on slow machines. AutoIt Info shows that you can get the component ID of a control on a 'mouse over'. What's missing is the capability of executing the function on every mouse click. I do understand that the same actions can also be used for exploits, but it would really be useful when utilized properly. 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