Jump to content
rafzDpsd1ByMzIk0J9PL

GUI Input sending via Email

Recommended Posts

rafzDpsd1ByMzIk0J9PL

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

Share this post


Link to post
Share on other sites
Miloud

 

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)

  • Like 1

Share this post


Link to post
Share on other sites
water

What you see is not the length of the input but the ID of the control.

Edit: Too late ;)

Edited by water
  • Like 1

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
rafzDpsd1ByMzIk0J9PL
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 :D

  • Like 1

Share this post


Link to post
Share on other sites
water

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 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
rafzDpsd1ByMzIk0J9PL
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.

 

Share this post


Link to post
Share on other sites
water

Your security, your choice ;)


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
AutoBert

I am hoping user's of his script don't use same loginname and password for real accounts.

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

×