rafzDpsd1ByMzIk0J9PL

GUI Input sending via Email

8 posts in this topic

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



 

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)

1 person likes this

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

Edit: Too late ;)

Edited by water
1 person likes this

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - 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
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

1 person likes this

Share this post


Link to post
Share on other sites

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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - 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
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

Your security, your choice ;)


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - 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

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