Jump to content

how to automate pressing a button?


 Share

Recommended Posts

Sends a string of characters to a control.

ControlSend ( "title", "text", controlID, "string" [, flag] )

Parameters

title The title of the window to access.

text The text of the window to access.

controlID The control to interact with. See Controls.

string String of characters to send to the control.

flag [optional] Changes how "keys" is processed:

flag = 0 (default), Text contains special characters like + to indicate SHIFT and {LEFT} to indicate left arrow.

flag = 1, keys are sent raw.

Return Value

Success: Returns 1.

Failure: Returns 0 if window/control is not found.

Link to comment
Share on other sites

I have a problems activating a button "open global data"

look screenshot

code:

...

WinMenuSelectItem("Primavera","", "&Open Global Data")

what wrong? sorry for my english- it is reason I can not read documentaion ;)

That doesn't look hard:

Opt("WinTitleMatchMode", 4)

ControlClick("[CLASS:TfrmWelcome; TITLE:Primavera]", "", "[CLASS:TCUltraButton; INSTANCE:3]")

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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...