Jump to content

Func DriverStatus(), Doing wrong as always


Recommended Posts

  • Developers

You need to perform the func ... something like this ?

If DriverStatus() = "NOTREADY" Then
    Msgbox(4096,"INGEN DVD-R SKIVA FUNNEN","Sätt i en DVDr skiva")
EndIf
;
Func DriverStatus()
    Return  DriveStatus( "e:\" )
EndFunc

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

No need for a function here, how about somthing like

CODE
Select

Case DriveStatus( "e:\" ) = "UNKNOWN"

MsgBox(0, "", "Drive status: unknown")

Case DriveStatus( "e:\" ) = "READY"

MsgBox(0, "", "Drive status: ready")

Case DriveStatus( "e:\" ) = "NOTREADY"

MsgBox(0, "", "Drive status: not ready")

Case DriveStatus( "e:\" ) = "INVALID"

MsgBox(0, "", "Drive status: invalid")

EndSelect

Link to comment
Share on other sites

No need for a function here, how about somthing like

CODE
Select

Case DriveStatus( "e:\" ) = "UNKNOWN"

MsgBox(0, "", "Drive status: unknown")

Case DriveStatus( "e:\" ) = "READY"

MsgBox(0, "", "Drive status: ready")

Case DriveStatus( "e:\" ) = "NOTREADY"

MsgBox(0, "", "Drive status: not ready")

Case DriveStatus( "e:\" ) = "INVALID"

MsgBox(0, "", "Drive status: invalid")

EndSelect

OR

Switch DriveStatus("e:\")
    Case "UNKNOWN"
        MsgBox(0, "", "Drive status: unknown")
    Case "READY"
        MsgBox(0, "", "Drive status: ready")
    Case "NOTREADY"
        MsgBox(0, "", "Drive status: not ready")
    Case "INVALID"
        MsgBox(0, "", "Drive status: invalid")
EndSwitch
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
 Share

  • Recently Browsing   0 members

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