Jump to content

i need a little help


 Share

Recommended Posts

how to replace msgbox with send command?(needed for terminal)

Func mount()

$mnt = DriveGetDrive ("all")

Hotkeyset("{enter}")

If NOT @error Then

For $i = 1 to $mnt[0]

MsgBox(4096,"Drive " & $i, $mnt[$i])

Next

EndIf

EndFunc

Link to comment
Share on other sites

ok i got it but how to put them in 1 func?

I need to add other hardware in same func

Func mount()

$mnt = DriveGetDrive ("cdrom")

Hotkeyset("{enter}")

If NOT @error Then

For $i = 1 to $mnt[0]

send(@CRLF&"mounted CD-ROM "&$mnt[$i])

Next

EndIf

EndFunc

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...