Sign in to follow this  
Followers 0
rageq3

how to automate pressing a button?

4 posts in this topic

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 :)

post-26683-1188553793_thumb.jpg

Share this post


Link to post
Share on other sites



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.

Share this post


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

Share this post


Link to post
Share on other sites

That doesn't look hard:

Opt("WinTitleMatchMode", 4)

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

:)

nothing happened ;)

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