au3scr Posted October 5, 2007 Share Posted October 5, 2007 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 More sharing options...
au3scr Posted October 5, 2007 Author Share Posted October 5, 2007 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now