rafzDpsd1ByMzIk0J9PL Posted April 9, 2016 Share Posted April 9, 2016 Hi there, i have problems sending an email because i only get the lengths of the inputs i enter. This is for a cheap license system. $Username = GUICtrlCreateInput("Username", 24, 64, 337, 54, BitOR($GUI_SS_DEFAULT_INPUT,$ES_CENTER,$WS_BORDER)) GUICtrlSetFont(-1, 30, 400, 0, "MS Sans Serif") $Password = GUICtrlCreateInput("Password", 27, 160, 337, 54, BitOR($GUI_SS_DEFAULT_INPUT,$ES_CENTER,$ES_PASSWORD,$WS_BORDER)) GUICtrlSetFont(-1, 30, 400, 0, "MS Sans Serif") These are the inputs i want to send via Email ^ $Body = "Username:Password | " & $Username & ":" & $Password This is the email body ^ when i type Username: Bread Password: Fish The email looks like this: Quote Username:Password | 5:4 so only the length of the strings are send . Please tell me where the problem is. Thank You Link to comment Share on other sites More sharing options...
Miloud Posted April 9, 2016 Share Posted April 9, 2016 May be it should look like this: $Body = "Username:Password | " & GUICtrlRead($Username) & ":" & GUICtrlRead($Password) 5:4 aren't in fact the lengths but rather the controls' Id(s) rafzDpsd1ByMzIk0J9PL 1 Link to comment Share on other sites More sharing options...
water Posted April 9, 2016 Share Posted April 9, 2016 (edited) What you see is not the length of the input but the ID of the control. Edit: Too late Edited April 9, 2016 by water Miloud 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
rafzDpsd1ByMzIk0J9PL Posted April 9, 2016 Author Share Posted April 9, 2016 Just now, Miloud said: May be it should look like this: $Body = "Username:Password | " & GUICtrlRead($Username) & ":" & GUICtrlRead($Password) 5:4 aren't in fact the lengths but rather the controls' Id(s) Thank You it works perfect Miloud 1 Link to comment Share on other sites More sharing options...
water Posted April 9, 2016 Share Posted April 9, 2016 From a security perspective sending user credentials by email is a big NO-NO. Do you really need to send it by email? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
rafzDpsd1ByMzIk0J9PL Posted April 9, 2016 Author Share Posted April 9, 2016 Just now, water said: From a security perspective sending user credentials by email is a big NO-NO. Do you really need to send it by email? I know ... and these logins are not for online accounts. Im sure you wouldt understand if you knew the purpose. Link to comment Share on other sites More sharing options...
water Posted April 9, 2016 Share Posted April 9, 2016 Your security, your choice My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
AutoBert Posted April 9, 2016 Share Posted April 9, 2016 I am hoping user's of his script don't use same loginname and password for real accounts. 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