Jump to content

Base 64 Charater Strings


Recommended Posts

Hi,

I am trying to read a string from an INI file. I sucessfully read the string but certain characters are stripped out automatically by AutoIT. See the following example.

INI File looks like this:

[Keys]

Key1 = "xxx-xxx-xxx-GVZF"

Key2 = "PGxpY2Vuc2VwYWNrZXQ+PGxpveD48L2xpY2Vuc2VwYWNrZXQ+"

Dim $strKey1

Dim $strKey2

;#Tried this first

$strKey2 = IniRead("g:\a_disk_backup\comp-lic.ini", "Keys", "Key2", "")

$strKey1 = IniRead("g:\a_disk_backup\comp-lic.ini", "Keys", "Key1", "")

;#Tried this second does not change the stripped output.

$strKey2 = String(IniRead("g:\a_disk_backup\comp-lic.ini", "Keys", "Key2", ""))

;#some windowing code.

Send($strKey2)

;#some windowing code.

Send($strKey1)

Strings Returned look like this:

Key 2

PGxpY2Vuc2VwYWNrZXQPGxpveD48L2xpY2Vuc2VwYWNrZXQ

Key 1

xxx-xxx-xxx-GVZF <======= this one is fine

It should look like this:

Key 2

PGxpY2Vuc2VwYWNrZXQ+PGxpveD48L2xpY2Vuc2VwYWNrZXQ+

Key 1

xxx-xxx-xxx-GVZF <========== this one is fine

Note: The '+' characters are stripped out......

Any help would be appreciated.

Jim.

Link to comment
Share on other sites

  • Moderators

Try taking the quotes out and using Send($var, 1)

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...