kjasdeep Posted November 9, 2009 Posted November 9, 2009 well is it possible to perform a select or click option of a button or a label just by writing name of it in the script (for example their is one button on my tool as "Multitest", so can i write this name into a command which which directly select tht button or click it....instead of giving mouse co ordinates)???? Actually i am trying to automate a release test so i have to automate the GUI testing tool so i want to knw abt this
omikron48 Posted November 9, 2009 Posted November 9, 2009 Try looking up ControlClick, also the related Controls entry linked there.
kjasdeep Posted November 9, 2009 Author Posted November 9, 2009 i did by ControlClick("INCA/MAC","BATCHTEST","") but still its nt able to click the button BATCHTEST
omikron48 Posted November 9, 2009 Posted November 9, 2009 (edited) That's because your parameters are wrong. Did you read the entry about 'Controls' in the help file? The one linked in ControlClick? Did you check out the sample code at the bottom of the entry? ControlClick("INCA/MAC", "", "[TEXT:BATCHTEST]") I'm assuming that "INCA/MAC" is the window title and that you have no need to match the window text to identify the correct window you want. And that "BATCHTEST" is the text of the button you want clicked. Do note that buttons with Alt+<key> shortcuts have '&' in their actual button text. (e.g. Add [with shortcut: Alt+A] = &Add) Best way to make sure is to use the AutoIt Window Info Tool to check the button text. Edited November 9, 2009 by omikron48
kjasdeep Posted November 9, 2009 Author Posted November 9, 2009 thanks a lot buddy for helping bt u knw still it didnt worked...i am really fedup with this problem from morning wat i shud do nw
omikron48 Posted November 9, 2009 Posted November 9, 2009 (edited) Did you even try using the Window Info Tool to snoop the information you need for your parameters? OR reading the help file? OR did all you do was plug in that line of code? Out of everything I told you, just which did you even do? Edited November 9, 2009 by omikron48
kjasdeep Posted November 9, 2009 Author Posted November 9, 2009 well from the window info tool i get the information abt my coordinates only no ID nothing....its ok if it doesnt performs the click action by name but atleast it shud click the active window coordinates....it always click the screen coordinates i need this bcoz if i change the position of my gui window it shudnt create any problem in clicking
Valik Posted November 9, 2009 Posted November 9, 2009 kjasdeep, four related topics is not acceptable. Enjoy your 55 hour ban and having all your topics locked.
Recommended Posts