Jump to content

TripleBook

Members
  • Posts

    6
  • Joined

  • Last visited

TripleBook's Achievements

  1. I had never used the Virtual Zip Open feature so I just commented it out and all is working. This was my first time ever asking for help on the forum. Thanks to all that helped. If UBound($CMDLine) > 1 Then ;If $CMDLine[1] <> "" Then _Zip_VirtualZipOpen() EndIf
  2. After using the shift F8 to add parameters I got this . :Program Files (x86)AutoIt3IncludeZip.au3 (456) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.: $ZipFile = $ZipSplit[2] $ZipFile = ^ ERROR After commenting out the Zip include it ran all the way with no issue. Thanks so much for your help. I opened up the ZIp include and I see that it accepts cmd line parameters. Is there a way to parse the cmd parameters after they are no longer needed.? Below is what the zip include had. ; ; AutoIt Version: 3.2 ; Language: English ; Description: ZIP Functions. ; Author: torels_ ; ; ------------------------------------------------------------------------------ If UBound($CMDLine) > 1 Then If $CMDLine[1] <> "" Then _Zip_VirtualZipOpen() EndIf
  3. I do not know how to use the editor to use F5 and add command line arguments. I have been compiling and running it as someexe.exe switch1 switch2. When I compiled it with no includes it would make it to each testing msgbox. When I add the includes it will run to each testing point until it hits the includes. I tried taking away each of the includes one at a time. It still would not work. So I can either have the command line arguments or have the includes but not both.
  4. It was working without the includes. I think you simplified the code. Break(0) , Prevents people from stopping the script once it has been started. I tried the simplified code with the same results .
  5. I am trying to pass 2 switches for the program to run else it will terminate. Everything runs fine until it starts to add my includes. I get an error of "array variable has incorrect number of subscripts" Thanks for any pointers. ;this works If $CmdLine[0] = 1 Then MsgBox(0, "", "scripts written by ." & @CRLF & "Phone: ") Exit If $CmdLine[0] = 0 Then MsgBox(0, "", "scripts written by ." & @CRLF & "Phone: ") Exit If $CmdLine[1] = "blahswitch" Then If $CmdLine[2] <> "431128" Then Exit else MsgBox(0,"","nope") Exit EndIf MsgBox(0,"","Madeit") ;this doesn't #include <String.au3> #include <INet.au3> #include <Zip.au3> #include <File.au3> #include <Array.au3> #RequireAdmin Break(0)
  6. would LOVE to see the code behind this but the downloads are broken.
×
×
  • Create New...