Sign in to follow this  
Followers 0
CurtisWhitby

& Symbol In Label

4 posts in this topic

Hi,

I have a radio button with a label.

The label consists of 2 names:

GUICtrlCreateRadio("Bill & Ben")

For some reason AutoIt reads the "&" as "_".

Is there some way around this or do I need to fully write "and"?

Thanks in advance,

Curtis

Share this post


Link to post
Share on other sites



Use two &...so

GUICtrlCreateRadio("Bill && Ben")

The & signifies the hotkeys, so you can press alt, plus the following char to select that control


IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites

The Ampersand (&) is commonly used in many languages as some type of "hot key" for a GUI. you see this with the File, Edit, Tools. where the F, E and T are underlined. you can access these menus by pressing ALT + F/E/T

without getting much more into it, to fix your problem, double up the ampersand to cancel out the first ampersand. like so: Bill && Ben

Share this post


Link to post
Share on other sites

Brilliant!

Thank you for your help.

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