Sign in to follow this  
Followers 0
MrBeatnik

String.au3 Error (with _stingencrypt)

5 posts in this topic

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.

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
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!

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.

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Cool! Good to know!

Thanks JdeB!

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
Sign in to follow this  
Followers 0