prozario Posted June 25, 2007 Share Posted June 25, 2007 Hello, I recently discovered Autoit which I already like very much and it suits my purpose amazingly well. I'm attempting to write a test-script to mimic a user clicking the mouse buttons and typing at the keyboard to automatically test an application by sending ControlClick(...)'s to it (example: $ret = ControlClick("My GUI combo", "", 3, 1, 1, 189, 8)). I'm able to click on buttons, radio-buttons etc. with success; but when it comes to ComboBox and TextBox etc., I'm stuck; for example, I cannot mimmic clicking on an item in a ComboBox to select it. Questions: 1. Using my test-script, how can I select items from a ComboBox in the application's GUI? 2. Using my test-script, how can I cut and paste text to TextBox in the application's GUI? 3. Using my test-script, how can I activate the ScrollBar? 5. Using my test-script, how can I get the key strokes into a TextBox in the application's GUI? 6. Using my test-script, how can I control the mouse wheel up and down? Better yet, is there already an application written in Autoit that will record the mouse and keystrokes and replay them? 1000 Thanks in advanced. ~Phil Link to comment Share on other sites More sharing options...
martin Posted June 25, 2007 Share Posted June 25, 2007 (edited) Hello, I recently discovered Autoit which I already like very much and it suits my purpose amazingly well. I'm attempting to write a test-script to mimic a user clicking the mouse buttons and typing at the keyboard to automatically test an application by sending ControlClick(...)'s to it (example: $ret = ControlClick("My GUI combo", "", 3, 1, 1, 189, 8)). I'm able to click on buttons, radio-buttons etc. with success; but when it comes to ComboBox and TextBox etc., I'm stuck; for example, I cannot mimmic clicking on an item in a ComboBox to select it. Questions:1. Using my test-script, how can I select items from a ComboBox in the application's GUI?2. Using my test-script, how can I cut and paste text to TextBox in the application's GUI?3. Using my test-script, how can I activate the ScrollBar?5. Using my test-script, how can I get the key strokes into a TextBox in the application's GUI?6. Using my test-script, how can I control the mouse wheel up and down?Better yet, is there already an application written in Autoit that will record the mouse and keystrokes and replay them?1000 Thanks in advanced.~PhilAu3recorder topic Edited June 25, 2007 by martin Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
prozario Posted June 26, 2007 Author Share Posted June 26, 2007 Au3recorder topicHello, Martin:Thanks for the tip.I had to download a later version of the AutoIt to get to the Au3recorder. I tried it too and the darn thing does what I wanted. I'll beat on it some more. ~Phil Link to comment Share on other sites More sharing options...
martin Posted June 26, 2007 Share Posted June 26, 2007 Hello, Martin:Thanks for the tip.I had to download a later version of the AutoIt to get to the Au3recorder. I tried it too and the darn thing does what I wanted. I'll beat on it some more. ~PhilNPI hadn't noticed till now that I answered your first post! - Welcome to the forum Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. 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