Sign in to follow this  
Followers 0
au3scr

i need a little help

2 posts in this topic

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



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  
Followers 0