CurtisWhitby Posted July 24, 2012 Share Posted July 24, 2012 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 Link to comment Share on other sites More sharing options...
jdelaney Posted July 24, 2012 Share Posted July 24, 2012 Use two &...soGUICtrlCreateRadio("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. Link to comment Share on other sites More sharing options...
Kidney Posted July 24, 2012 Share Posted July 24, 2012 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 Link to comment Share on other sites More sharing options...
CurtisWhitby Posted July 25, 2012 Author Share Posted July 25, 2012 Brilliant! Thank you for your help. 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