Tricky Posted May 3, 2004 Report Share Posted May 3, 2004 Ave please could you incorporate a new script for AveDesk that allows us to add even more functionality.In Objectbar you can link to scripts i.e. eject. I'm sure these scripts are already available - but building them into AveDesk would really be cool.I've found a .vbs file in Objectbar to eject a specified disk - can this be adapted to use on AveDesk? Link to comment
Tadis Posted May 3, 2004 Report Share Posted May 3, 2004 I'm not sure which eject you're using but the one I wrote a while back can be linked to via Avdesk by adding a shortcut desklet and setting the path to the vbs e.g. C:\Program Files\Samurize\Scripts\Eject.vbs. Works fine for me. Edit: Just in case anyone is wondering what we're talking about, here's my vbs: const Drive = "1" 'Edit this variable to change the corresponding drive'Option ExplicitOn Error Resume NextDim WshShell, chkOpen, RegEntry, RegCheck, ErrNum, wmp, cdromsSet WshShell = WScript.CreateObject("WScript.Shell")Set wmp = CreateObject("WMPlayer.OCX.7")Set cdroms = wmp.cdromCollectionRegEntry = "HKCU\Software\CDTray\"RegCheck = WSHShell.RegRead (RegEntry)ErrNum = Err.Numberif ErrNum <> 0 thenWshShell.RegWrite "HKCU\Software\CDTray\", 0 ,"REG_DWORD"WshShell.RegWrite "HKCU\Software\CDTray\OpenClose", "1"End IfchkOpen = WshShell.RegRead ("HKCU\Software\CDTray\OpenClose")If chkOpen = "1" ThenIf cdroms.Count >= 1 then cdroms.Item(Drive).EjectEnd IfWshShell.RegWrite "HKCU\Software\CDTray\OpenClose", "0"ElseIf cdroms.Count >= 1 then cdroms.Item(Drive).Eject cdroms.Item(Drive).EjectWshShell.RegWrite "HKCU\Software\CDTray\OpenClose", "1"End IfEnd IfWshShell.Run "Taskkill.exe /F /IM WScript.exe", 0, TRUESet WshShell = vbnullSet wmp = vbnullSet cdroms = vbnull Link to comment
Tricky Posted May 3, 2004 Author Report Share Posted May 3, 2004 Yeah I've got that working - but what I'm talking about is something like powder mount but with the label having an eject symbol in the corner that could be double clicked to eject the disk.at the moment I don't think its possible to link the powermount with the shortcut - if you know what I mean. Link to comment
Jimmy S Posted May 3, 2004 Report Share Posted May 3, 2004 Wow all that just to open a CD Tray.Still it is very impressive.-Jimmy S Link to comment
daclothe Posted May 3, 2004 Report Share Posted May 3, 2004 man he hasn't even released 1.1 and you're asking for new features???patience, grasshopper. Link to comment
carbonfiber Posted May 3, 2004 Report Share Posted May 3, 2004 Originally posted by daclothe@May 3 2004, 11:07 PM man he hasn't even released 1.1 and you're asking for new features??? patience, grasshopper. agreed wait little green noisy, chirpy, loud, fiendish :rant: ... oh sorry , i got caried away again Link to comment
Tricky Posted May 4, 2004 Author Report Share Posted May 4, 2004 Originally posted by daclothe@May 3 2004, 11:07 PM man he hasn't even released 1.1 and you're asking for new features??? patience, grasshopper. Hey I write the ideas as I get 'em - otherwise they will be forgotten. And I was also wondering if it could be done with the current version.....as people arn't being stopped from developing docklets are they?? Link to comment
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now