autonome Posted September 22, 2006 Share Posted September 22, 2006 This is the first script I write in Autoit ... What I want this script do is just send a string to an application. It works fine. Now I try to run the same application twice, how can I change this script to send this string to both application. Unfortunately both applications (actually one application, but run twice) have the same Title, Class, ControlID ... If WinExists("Nordwin") Then ControlSend("Nordwin", "", 3, "String") EndIf I appreciate any help .... Thank You Active Windows Info ********************************************* Press CTRL-ALT-F to freeze the display. >>>>>>>>>>>> Window Details <<<<<<<<<<<<< Title: Nordwin Class: MCSRT9 Size: X: 485 Y: 402 W: 644 H: 449 >>>>>>>>>>> Mouse Details <<<<<<<<<<< Screen: X: 671 Y: 831 Cursor ID: 5 >>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<< RGB: Hex: 0xFFFFFF Dec: 16777215 >>>>>>>>>>> Control Under Mouse <<<<<<<<<<< Size: X: 16 Y: 407 W: 382 H: 31 Control ID: 3 ClassNameNN: MCSBOX1 Text: Style: 0x54210044 ExStyle: 0x00000204 >>>>>>>>>>> Status Bar Text <<<<<<<<<<< >>>>>>>>>>> Visible Window Text <<<<<<<<<<< Frame1 10 Arial Emote Frame2 Frame3 Check1 >>>>>>>>>>> Hidden Window Text <<<<<<<<<<< Frame4 ************************************************* Link to comment Share on other sites More sharing options...
jpm Posted September 23, 2006 Share Posted September 23, 2006 You have to use Winlist and Controlsend to the windows that match your title Link to comment Share on other sites More sharing options...
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