MStark Posted January 10, 2006 Share Posted January 10, 2006 The example (from helpfile) of User Defined Function "_HexToString" don't running under AutoIt-version 3.1.1.100, under 3.1.1 is it o.k. ! OS: WinXP SP2 (german) Thanks and best regards Matthias Link to comment Share on other sites More sharing options...
BigDod Posted January 10, 2006 Share Posted January 10, 2006 The example (from helpfile) of User Defined Function "_HexToString" don't running under AutoIt-version 3.1.1.100, under 3.1.1 is it o.k. !OS: WinXP SP2 (german)Thanks and best regardsMatthias Works ok for meOS: WinXP Pro SP2 (UK) Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
JSThePatriot Posted January 10, 2006 Share Posted January 10, 2006 Please describe the exact error you are getting. I will be more than happy to test it further. I have meant to re-write the UDF's to make them shorter/faster. I havent had the time as of now. JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) Link to comment Share on other sites More sharing options...
MStark Posted January 12, 2006 Author Share Posted January 12, 2006 The exact error is: Line 0 (File "C:\test.exe") Local $strChar, $aryHex, $i, $iDec, $Char, $file, $strHex, $iOne, $iTwo Local $strChar, $aryHex, $i, $iDec, $Char, $file, Error Error: Can not redeclare a parameter inside a user function." Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 12, 2006 Moderators Share Posted January 12, 2006 I have had this error, just take out the parameter variable... Example: Func Something($i, $iDec, $Char, $file, $strHex) ; <<< $parameters Local $strChar, $aryHex, $i, $iDec, $Char, $file, $strHex, $iOne, $iTwo ^^ would throw an error because: $strChar, $aryHex, $i, $iDec, $Char, $file, $strHex you're trying to redeclare set parameters... So you would set it up like: Local $aryHex, $iOne, $iTwo ; leaving out the parameters 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 More sharing options...
JSThePatriot Posted January 12, 2006 Share Posted January 12, 2006 Now did I do that in the UDF, or is that in your file? JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now