Noreo Posted February 27, 2007 Posted February 27, 2007 (edited) I am trying to automate updating my database at work and have used AutoIt before but not to this extent so i need help. I can get my program to run but i cant get autoIt to click the button i want it to. Im using controlclick because i jsut want to activate the button i dont want to actually simulate a mouse move. This is the code i have so far can somebody please help thank you. RunWait(@COMSPEC & " /c Start spiceorders.dtf") Opt('WinTitleMatchMode', 3) $Title = WinGetTitle("Data Transfer From iSeries - spiceorders.dtf") WinWaitActive($Title) ControlFocus($Title, "",1320) ControlClick($Title, "",1320) ^Code^ Plz help!! Noreo Edited February 27, 2007 by Noreo
BugFix Posted February 27, 2007 Posted February 27, 2007 What information gives 'AutoIt Window Info' about the button you want to click? Best Regards BugFix
Noreo Posted February 28, 2007 Author Posted February 28, 2007 I am trying to automate updating my database at work and have used AutoIt before but not to this extent so i need help. I can get my program to run but i cant get autoIt to click the button i want it to. Im using controlclick because i jsut want to activate the button i dont want to actually simulate a mouse move. This is the code i have so far can somebody please help thank you. RunWait(@COMSPEC & " /c Start spiceorders.dtf")Opt('WinTitleMatchMode', 3)$Title = WinGetTitle("Data Transfer From iSeries - spiceorders.dtf")WinWaitActive($Title)ControlFocus($Title, "",1320)ControlClick($Title, "",1320)^Code^Plz help!! Noreothe 1320 is the control number for the button. /bump this thread cuz i need help
Noreo Posted March 1, 2007 Author Posted March 1, 2007 There has to be somebody who can help me with this its a simple code question. I cant get the controlclick to actually click. does anybody know why this may be happening. please respond.
pcdestroyer Posted March 1, 2007 Posted March 1, 2007 don't u need the ID of the button to click it... use the Autoit Window Info as mentioned in the above post.
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