Sign in to follow this  
Followers 0
Noreo

AutoIt Noob

5 posts in this topic

#1 ·  Posted (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 by Noreo

Share this post


Link to post
Share on other sites



What information gives 'AutoIt Window Info' about the button you want to click?


Best Regards BugFix  

Share this post


Link to post
Share on other sites

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

the 1320 is the control number for the button. /bump this thread cuz i need help

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

don't u need the ID of the button to click it... use the Autoit Window Info as mentioned in the above post.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0