Jump to content

String.au3 Error (with _stingencrypt)


Recommended Posts

Hi all,

Been lurking for a while, there had to be a point when I registered :(

Why? This has me stumped! _StringEncrypt is not working for me.

I even downloaded the AI3 zip file, and replaced my string.au3 in case it was corrupted, but still no joy.

Can anyone suggest something :think: Thanks!

Code:

#include <Constants.au3>
#include <string.au3>
$info = _StringEncrypt(1, "autoit", "testPass")
MsgBox(0,"Test",$info)

Error:

C:\Program Files\AutoIt3\Include\string.au3(16,59) : ERROR: $strHex already declared as parameter
    Local $strChar, $aryHex, $i, $iDec, $Char, $file, $strHex,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\string.au3(60,112) : ERROR: $i_EncryptLevel already declared as parameter
      If Number($i_EncryptLevel) <= 0 Or Int($i_EncryptLevel) <> $i_EncryptLevel Then Local $i_EncryptLevel = 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~^
C:\Documents and Settings\me\Desktop\TechLaunch\crypttest.au3 - 2 error(s), 0 warning(s)

Please correct me if I am wrong in any of my posts. I like learning from my mistakes too.

Link to comment
Share on other sites

Hi,

same error messages here - but it's working fine! Getting the message box with the crypted string

I'm using the _StringEncrypt in another script which has been written with another editor (without au3check) - so i never knew about the errors. I just loaded the "old" script into SciTE - and received the same errors.

As my script is working fine though - i think i will forget about it! :think:

Bye,

Lars

Link to comment
Share on other sites

Thanks Lars.

Yeah, I should have mentioned that it does run ok, I am worried about anomolies when the script gets larger and does more complex things, but if the general thoughts are "don't worry", then I wont until I see the anomolies :think:

Cheers!

Please correct me if I am wrong in any of my posts. I like learning from my mistakes too.

Link to comment
Share on other sites

  • Developers

Thanks Lars.

Yeah, I should have mentioned that it does run ok, I am worried about anomolies when the script gets larger and does more complex things, but if the general thoughts are "don't worry", then I wont until I see the anomolies :think:

Cheers!

The $strHex field shouldn't be in the Local declaration since its already defined in the Parameters of this function. It is fixed in the include supplied with the current Beta version.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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...