Kapo Posted October 10, 2005 Posted October 10, 2005 It happens in both installation programs,when i use the functionControlSetText ( $Title_1 , "", 909, $drivername ).This command modifies the driver name intheory because i don't know why the installertakes the old names during the installation.In fact my driver name are the original ones!Does the function ControlSetText works?
MHz Posted October 11, 2005 Posted October 11, 2005 (edited) ControlSetText works at sending the text directly to the control.Send works at sending to the control.But the installer does not seem to read from the control. Rather it reads the message stream sent to the window. Send does emulate the keyboard with these message streams sent, so read does work. Sadly the window does need to be active for Send to work. You can focus the controls with !b or !m with the message sent.Example:Send('!btest1')Send('!mtest2')Switches are available to change some of these settings. Edited October 11, 2005 by MHz
Kapo Posted October 11, 2005 Author Posted October 11, 2005 ControlSetText works at sending the text directly to the control.Send works at sending to the control.But the installer does not seem to read from the control. Rather it reads the message stream sent to the window. Send does emulate the keyboard with these message streams sent, so read does work. Sadly the window does need to be active for Send to work. You can focus the controls with !b or !m with the message sent.Example:Send('!btest1')Send('!mtest2')Switches are available to change some of these settings.Ok now i've understand.Infact in the AutoIt section i've downloaded theDaemon Tools script but the change of driverdoesn't work!I've also tried with the ControlCommand ("editpaste", )but it doesn't work.Now i try to modify the script with the Send command.Thanks very much.
Nologic Posted October 11, 2005 Posted October 11, 2005 Well also with some installers the control ID give is not the right one...see this a lot with TEdit2 controls and the like.Also some times controls need focus before using any of the edit field commands...reguardless if its ControlSetText, ControlSend, or SendSo my prefs are:1st ControlSetText (fastest)2nd ControlSend (better window control)3rd Send (f*** it) So if you have a control that giving you grief try the following first..if changing controller ids doesn't work first.ControlFocus ( $title , "" , control_id )ControlSetText ( $title , "" , control_id , "string" )If that fails try ControlSend in much the same manner...really do try to avoid sending blind Send commands.My thoughts tho
Kapo Posted October 12, 2005 Author Posted October 12, 2005 I've modified the script with ControlFocus andSend and it works perfectly!! Thanks!
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