lostbit59 Posted December 31, 2012 Share Posted December 31, 2012 I have a little bit of code that opens my browser (chrome), I want to enter a string into the URL omnibox using ControlSend. Each time I launch the browser the control ID changes. I need to find a way to fist get the control ID of the browser after it is opened and have the id number be a value in a variable. Can some one tell me how to get the ID using autoit code? Link to comment Share on other sites More sharing options...
PhoenixXL Posted December 31, 2012 Share Posted December 31, 2012 (edited) control id is not always required This would even do the work modify as per your needs Opt ( 'WinTitleMatchMode', 2 ) ;The previously ACTIVE window would be redirected to Google ControlSend( 'Chrome', '', '[CLASS:Chrome_OmniboxView; INSTANCE:1]', '^a{DEL}http:\\www.google.com{ENTER}' ) Edit : please stick to one thread and wait for somebody to answer you Edited December 31, 2012 by PhoenixXL My code: PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression. 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