stackover Posted June 4, 2007 Share Posted June 4, 2007 I read all topics that I found in search. Example of using controlsend with notepad is easy but when I try someting diferent nothing works. I think that the most important thing in what im trying is ControlID... I tryed use "Autoit Window Info" to know ID but it dont return to me ControlID. Datas are empty Oo. What I have to do ? What you all sugest ? Link to comment Share on other sites More sharing options...
stackover Posted June 4, 2007 Author Share Posted June 4, 2007 (edited) Look what return in Autoit Window Info >>>> Window <<<< Title: MU Class: MU Position: 0, 0 Size: 810, 636 Style: 0x14C80000 ExStyle: 0x00000308 >>>> Control <<<< Class: Instance: ID: Text: Position: Size: ControlClick Coords: Style: ExStyle: >>>> Mouse <<<< Position: 398, 238 Cursor ID: 2 Color: 0x000000 >>>> StatusBar <<<< >>>> Visible Text <<<< >>>> Hidden Text <<<< Other things important .. im using version v3.2.4.9 Edited June 4, 2007 by stackover Link to comment Share on other sites More sharing options...
Zedna Posted June 4, 2007 Share Posted June 4, 2007 If ControlSend() don't work then use Send() Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
stackover Posted June 4, 2007 Author Share Posted June 4, 2007 (edited) If ControlSend() don't work then use Send()How could I know if controlsend dont work ? Maybe it works. Just need to know how to do. Some genius ill give me the answer About Send I already have all script running in Send but now need to run it with my window minimized or not in focus. Edited June 4, 2007 by stackover Link to comment Share on other sites More sharing options...
jefhal Posted June 4, 2007 Share Posted June 4, 2007 Where is your code? With a small sample, perhaps we can help... ...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format Link to comment Share on other sites More sharing options...
stackover Posted June 4, 2007 Author Share Posted June 4, 2007 Where is your code? With a small sample, perhaps we can help... Thanks Jef but I think it wont help too much but lets go... Assuming that I only need send a letter "V"... Script will be like this. HotKeySet ("{F10}", "OnOff") Func OnOff () ControlSend("MU", "", "Edit1", "v") EndFunc While 1 Sleep(200) WEnd But the "Edit1" works fine for script using Notpad.exe in this case I think I need other CONTROLID. Link to comment Share on other sites More sharing options...
Zedna Posted June 4, 2007 Share Posted June 4, 2007 Then try ControlSend("MU", "", "", "v") Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
stackover Posted June 4, 2007 Author Share Posted June 4, 2007 Then try ControlSend("MU", "", "", "v") Tryed .. didnt work. I think I need that ControlID Link to comment Share on other sites More sharing options...
stackover Posted June 4, 2007 Author Share Posted June 4, 2007 no way ? Link to comment Share on other sites More sharing options...
jefhal Posted June 4, 2007 Share Posted June 4, 2007 You don't launch MU in your sample script. No way to test without knowing what MU is and actually launching it... ...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format Link to comment Share on other sites More sharing options...
enaiman Posted June 4, 2007 Share Posted June 4, 2007 What version of AutoIt you're using? Last version (3.2.4.9) works (ControlSend works with an empty controlID if the application - MU - is active). For earlier versions (3.2.2.0) it doesn't work. SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) 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