Jump to content
Sign in to follow this  
au3scr

i need a little help

Recommended Posts

au3scr

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


Share this post


Link to post
Share on other sites
au3scr

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


Share this post


Link to post
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
Sign in to follow this  

×