rageq3 Posted August 31, 2007 Posted August 31, 2007 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
chenxu Posted August 31, 2007 Posted August 31, 2007 Sends a string of characters to a control.ControlSend ( "title", "text", controlID, "string" [, flag] ) Parameterstitle 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 ValueSuccess: Returns 1. Failure: Returns 0 if window/control is not found.
PsaltyDS Posted August 31, 2007 Posted August 31, 2007 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
rageq3 Posted August 31, 2007 Author Posted August 31, 2007 That doesn't look hard: Opt("WinTitleMatchMode", 4) ControlClick("[CLASS:TfrmWelcome; TITLE:Primavera]", "", "[CLASS:TCUltraButton; INSTANCE:3]") nothing happened
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