Hack Forums
Some issues in VBScript to AutoIt Converter with the new version of Autoit V3.3.14.2 - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Coders Lounge (https://hackforums.net/forumdisplay.php?fid=5)
+---- Thread: Some issues in VBScript to AutoIt Converter with the new version of Autoit V3.3.14.2 (/showthread.php?tid=5807571)



Some issues in VBScript to AutoIt Converter with the new version of Autoit V3.3.14.2 - Hackoo - Mar 4, 2018

Hello everybody   ✌
VBScript to AutoIt Converter ==> https://www.autoitscript.com/forum/topic/12143-vbscript-to-autoit-converter…

This script was written with version 3.1.1 it worked before without problem, but with the new version of Autoit there are some issues on it  😖  😧
So, if anyone among you gives us a solution
My work environment:
Quote:AutoIt Version: V3.3.14.2
Windows Version: WIN_10 [X86]
Language: 040C

Thank you !


RE: Some issues in VBScript to AutoIt Converter with the new version of Autoit V3.3.14.2 - emmabee - Mar 8, 2018

You need to add the following function to the UDF's they were depreciated on the later updates....there is a code error as well somewhere in the Func _ArrayAddArray but not had time to find it...good luck

Func _ArrayCreate($v_0, $v_1 = 0, $v_2 = 0, $v_3 = 0, $v_4 = 0, $v_5 = 0, $v_6 = 0, $v_7 = 0, $v_8 = 0, $v_9 = 0, $v_10 = 0, $v_11 = 0, $v_12 = 0, $v_13 = 0, $v_14 = 0, $v_15 = 0, $v_16 = 0, $v_17 = 0, $v_18 = 0, $v_19 = 0, $v_20 = 0)
Local $av_Array[21] = [$v_0, $v_1, $v_2, $v_3, $v_4, $v_5, $v_6, $v_7, $v_8, $v_9, $v_10, $v_11, $v_12, $v_13, $v_14, $v_15, $v_16, $v_17, $v_18, $v_19, $v_20]
ReDim $av_Array[@NumParams]
Return $av_Array
EndFunc
Func _Iif($fTest, $vTrueVal, $vFalseVal)
If $fTest Then
Return $vTrueVal
Else
Return $vFalseVal
EndIf
EndFunc