AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Mounting Images to Virtual Drives at Startup

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Sat Apr 16, 2005 9:17 pm    Post subject: Mounting Images to Virtual Drives at Startup Reply with quote

I've only written one successful script and I would like to figure out (as a clone cd user) how to make a script which checks the drives (three are 'virtual' and when it finds an empty one it 'mounts' an image file to it at startup. Right now I just go to My Computer and right click on the drives, click 'Mount..' and then the file. I found one script that checks the drives but I don't know what to do from there... can anyone be of assistance? Thanks,
mike

Code:
#NoTrayIcon
#Persistent

if A_{
   DriveGet, lista, List, CDROM ;get all CD drives
   Stringlen, cd_len, lista ;how much of drives?
   Loop, %cd_len%  ;for each drive
   {
      stringmid cd_letter, lista, %A_Index%, 1  ;get name of drive
      driveget isopen, StatusCD, %cd_letter% ;check if it is empty
      n {
         MOUSECLICK, Right?
         Down                                 (guesses)
         Down
         Right
         Enter
         }
       
      }
   }
ExitApp
Back to top
frreakkk
Guest





PostPosted: Sun Apr 17, 2005 11:10 pm    Post subject: Reply with quote

i don't use cd clone-- but i do use a free ware prog name named daemon tools (just google 'daemon tools cd emulator'). you can mount several images at once (i think its up to 4..).. and you can use command line switches to do any of the features available from tray icon

Code:
Run, daemon.exe -mount 0`,"c:\IMAGE NAME.ISO"


..very handy..!

corey
Back to top
Foonman1



Joined: 24 Apr 2005
Posts: 9
Location: San Jose California

PostPosted: Mon Apr 25, 2005 5:57 pm    Post subject: Mounting encrypted drives Reply with quote

I have a similar application. Check out this thread to see how I did it.
http://www.autohotkey.com/forum/viewtopic.php?t=3305
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group