Sky05 Posted March 7 Share Posted March 7 (edited) Hi guys I have a problem with special characters in this script, or at least with the character "&" I want to send an email with whatever text is written in the $My_Text variable, and it works fine, but when using "&", it brakes. The GUI label translates "Batman & Robin" to "Batman _Robin" and the text in the email just ignores everything after the "&" character. Any ideas on how to fix this? Thx #include <GUIConstantsEx.au3> GUICreate("GUI", 615, 437, 700, 469) $Input = GUICtrlCreateInput("Batman & Robin", 16, 110, 194, 21) $My_Text = GUICtrlRead($Input) $Label = GUICtrlCreateLabel($My_Text, 104, 196, 100, 100) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### ShellExecute('mailto:' & 'firstname.lastname@example.org' & '?cc=' & 'email@example.com' & '&subject=Mail subject&body=Text: ' & $My_Text) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Edited March 7 by Sky05 Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now