betlog
Content Type
Profiles
Forums
Events
Posts posted by betlog
-
-
Hmmm.
So by what function does the OS make it's various sounds?
Is there some function call i can access via vbscript/jscript etc?
(ie: WITHOUT coding a compiled app)
Thats what i want to do: use scheduler, or 'at' to play audio at a particular time...WITHOUT any application popping up or starting to do so.
0 -
Yeah, the syntax is probably missing an & - i was expanding my original code to see where the problem was.. and gave up midway.
I'm passing to the vbs from a cmd because i cant make an autorun handler that will execute a .vbs .... and all it really needs to pass is the drive letter.
Also, excuse my ignorance, but what is an FSO?
I'll assume its another registry key, and have a look for it later...but it doesn't sound like one.
And no, i make sure I name ALL my CDs/DVD's with the date and an alpha letter.
(if i burn something for someone else I couldnt care less, it's rare and i don't catalogue them)
eg:
20041002a (for today - cd 1)
20041002b (for today - cd 2)
etc
(it's not likely i'd ever burn more than 26 CDs in a day, but i'd go to "aa" "ab" ..."az" "ba" "bb"... "bz" etc if i ever did.)
|
0 -
As you suggest; a registry key will probably be easiest for your purposes, however if you have TweakUI.exe you can fiddle it in there as well.
OR, just right click on the drive -> properties -> autoplay (tab) and figure out which one is set.
0 -
I'd like to shedule a wav file to play at specific times (like an alarm clock) but I do not want to start an app when it plays - basically I just want the underlying OS to make the sound, NOT start media player (or anything else).
Is this possible?
0 -
Sorry if I was difficult to understand.
After I posted i tried writing a script to do what i wanted.. it seems to work a bit, but still errors.
Heres how it works:
1) a file called CDIndex.cmd is in \windows folder
----contents of file----
CDIndex.vbs %1
----
2) a file called CDIndex.vbs is also in \windows
---- contents of file----
Set Sh = CreateObject("WScript.Shell")
VolKey = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CD Burning\Current Media\Disc Label"
WriteKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Common Documents"
VolName = Sh.RegRead(VolKey)
WriteName = Sh.RegRead(WriteKey)
Command = "dir" & " " & Mid(Wscript.Arguments(1),2) & " " & "/o:n /b>" WriteName & "\" & VolName & ".txt"
Sh.Exec(Command)
--------
So basically Autorun (through a handler I made) passes "%L" (drive:/) to the .CMD, which calls the script and passes it the drive name (eg: w:/).
The script then checks the registry to get it's label (name)...
... and the default "my documents" folder location...
...and then does a "dir" command with some parameters...
...and pipes the output into a text file with the same name as the CD label.
So why does it constantly give a 'subscript out of range" error?
Is my syntax wrong?
0 -
I like to keep a text file that contains a "dir /o:n /b >>CDindex.txt" for easy searching of my multitudinous media.
question:
How would I use something like VBscript to interrogate the inserted CD for it's label/name, so I can get autorun to exec the script, so that simply by inserting a CD/DVD it would write/update a text index file on my local drive?
Where each text/index file has the same name as the CD.
0
play audio without starting an app - how?
in Windows XP
Posted
Hmm, no, it doesnt work on my system either... but then I do have a lot of services disabled, so maybe thats got something to do with it.
The code looks like it should work... but it still brings up a window (the echo dialogue to keep it open while playing) so it's not so useful.
...unless i was to interrogate the wav for it's length, and then make the code stay active for that period...
I don't know how easy that is.
I think there is a directX control in msc with the same name, so I will try activating it that way if i can figure it out... just to expriment a little.
Thanks for that suggestion.
Drop this thread a comment if you do see anything else please.