Jump to content

AutoIt Noob


Noreo
 Share

Recommended Posts

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
Link to comment
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

Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...