Sign in to follow this  
Followers 0
lostbit59

How do I get the control ID of a omnibox so I can use it in coding

2 posts in this topic

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?

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0