Valuater Posted February 28, 2006 Posted February 28, 2006 cant seem to find it i just want "hello & goodbye" it works in a message box $text = Chr(38) MsgBox(0, "Test", "Hello " & $text & " Goodbye ") $Text = "Hello & Goodbye " MsgBox(0, "Test", $text) #include <GUIConstants.au3> GUICreate("") GUICtrlCreateButton( $text, 20, 20) GUICtrlCreateLabel($text, 20, 50) GUICtrlCreateLabel("Hello " & Chr(38) & " Goodbye ", 20, 80) GUICtrlCreateLabel('Hello " & " Goodbye ', 20, 110) GUISetState() While 1 Sleep(10) WEnd
Moderators SmOke_N Posted February 28, 2006 Moderators Posted February 28, 2006 $Text = "Hello & Goodbye " #include <GUIConstants.au3> GUICreate("") GUICtrlCreateButton( $text, 20, 20) GUICtrlCreateLabel($text, 20, 50) GUICtrlCreateLabel("Hello " & Chr(38) & Chr(38) & " Goodbye ", 20, 80) GUICtrlCreateLabel('Hello && Goodbye ', 20, 110) GUISetState() While 1 Sleep(10) WEnd Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Valuater Posted February 28, 2006 Author Posted February 28, 2006 thanks SmOke funny... i never seemed to run into that one before thanks again 8)
Moderators SmOke_N Posted February 28, 2006 Moderators Posted February 28, 2006 No problem, I use it often is why I know more than likely... I think there was a thread on it about 8 or 9 months ago, and CyberSlug explained why (God help me if I remember why!! ) Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
pecloe Posted February 28, 2006 Posted February 28, 2006 (edited) GUICtrlCreateLabel("Save & Exit", 10, 10, 80, 25, $SS_NOPREFIX) $SS_NOPREFIX Prevents interpretation of any ampersand (&) characters in the control’s text as accelerator prefix characters. An application can combine SS_NOPREFIX with other styles by using the bitwise OR (|) operator. This can be useful when file names or other strings that might contain an ampersand (&) must be displayed within a static control in a dialog box. edit: also works on buttons Edited February 28, 2006 by pecloe
Valuater Posted February 28, 2006 Author Posted February 28, 2006 thx.... pecloe i will try to remember that one also 8)
Moderators SmOke_N Posted February 28, 2006 Moderators Posted February 28, 2006 GUICtrlCreateLabel("Save & Exit", 10, 10, 80, 25, $SS_NOPREFIX) $SS_NOPREFIX Prevents interpretation of any ampersand (&) characters in the controls text as accelerator prefix characters. An application can combine SS_NOPREFIX with other styles by using the bitwise OR (|) operator. This can be useful when file names or other strings that might contain an ampersand (&) must be displayed within a static control in a dialog box. edit: also works on buttonsYes, good stuff... But I am dissapointed in myself, I was thinking do I really want to type the extra 11 characters... how sad is that! Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
pecloe Posted February 28, 2006 Posted February 28, 2006 if you type like i do with one finger, less is better ha
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