Jump to content

AutoIt RunWait with variables


Recommended Posts

Hello thanks for looking. I'm having problems with an AutoIt script and was hoping someone could degub the script. I tried reading the manual on the website but it appears to be down.

I know this is the unnattended section, but it seems like there are alot of people here with knowledge on how to get AutoIt working.

Here is the script.

;Define the DVD drive letter
GLOBAL $DVDDRIVE = IniRead("configure.ini", "section1", "key", "NotFound")
;Define the path to store the DVD files
GLOBAL $RIPFOLDER = IniRead("configure.ini", "section2", "key", "NotFound")
;Wait until drive is ready
While DriveStatus( $DVDDRIVE ) = "NOTREADY"
WEnd
While DriveStatus( $DVDDRIVE ) = "UNKNOWN"
WEnd
;Once drive is ready
If DriveStatus( $DVDDRIVE ) = "READY" Then RunWait("AnyTool2.exe ripraw " $DVDDRIVE " " $RIPFOLDER)
;When done
CDTray("G:", "open")

and here is the code for configure.ini

[section1]
Key=G:
[section2]
Key=E:\DVDRip

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...