Main > Audio/Jukebox/MP3 Forum

frontend/program with line-in

<< < (2/3) > >>

jaquer:
Well, this is probably not too hard. I could tell you that the name of the volume app is sndvol32.exe and it lives in c:\windows\system32. This is on my home WindowsXP machine. If that doesn't help you enough, I'm already seeing the posibility of an AutoIt script that could take care of the whole thing for you.

Let me know if you want to follow that route.

petejc:
would that work with just the line-in or is that limited to sound in general.  if it could work, could a script be written to do line-in or or everything?

if it would work, yes that would br the route i would like to go.  How do i start?

--- Quote from: izaram on July 30, 2002, 02:04:37 am ---
Well, this is probably not too hard. I could tell you that the name of the volume app is sndvol32.exe and it lives in c:\windows\system32. This is on my home WindowsXP machine. If that doesn't help you enough, I'm already seeing the posibility of an AutoIt script that could take care of the whole thing for you.

Let me know if you want to follow that route.

--- End quote ---

jaquer:
This is what I had in mind, it should work, but I'm at work right now and I can't test it for sure.

- Get AutoIt http://www.hiddensoft.com/AutoIt/
- Write this script:

Run,sndvol32.exe
WinWait,Volume Control
WinActivate,Volume Control
Send,+{TAB}
Send,{SPACE}
Send,!{F4}

Now, compile the script and run the exe. It should mute the Line In. Run it again to unmute it.

For this to work make sure that you have the Line In as the last (rightmost) option on Volume Control.

Would that work for you?

jaquer:
Ok, I re-read your posts and I see that I missed the boat by a long shot. I had installed AutoIt on my co-worker's machine and I am testing this. Here's what you need:

<begin turn_radio_on script>
Run,sndvol32.exe
WinWait,Volume Control
WinActivate,Volume Control
Send,+{TAB}
Send,{SPACE}
Send,!{F4}
Run,rundll32.exe shell32.dll\,Control_RunDLL desk.cpl\,\,0
WinWait,Display Properties
Send,!b
Send,C:\\path\\to\\image1.jpg{ENTER 2}
MsgBox,0,Radio Tuner,Press ESC to exit

; This part runs once you press ESC and it mutes Line In and changes your wallpaper again
Run,sndvol32.exe
WinWait,Volume Control
WinActivate,Volume Control
Send,+{TAB}
Send,{SPACE}
Send,!{F4}
Run,rundll32.exe shell32.dll\,Control_RunDLL desk.cpl\,\,0
WinWait,Display Properties
Send,!b
Send,C:\\path\\to\\image2.jpg{ENTER 2}
<end turn_radio_on script>

Now you just need to change the paths to fit the images you want. Make your you insert double backslashes (\\) instead of singles. It's part of the AutoIt syntax.

Oh, and I know that little message box with the Press ESC to exit msg is not the nicest, but hey, it gets the work done.

Hope that helps, but let me know if you would like to change any of it.

petejc:
DUDE!  i think you have way too much time on your hands!  not that i mind though.  i'm out of town right now, but i will diffently try it this weekend.  thank you very much!  where can i get more info on how to use AutoIt?

--- Quote from: izaram on July 30, 2002, 03:32:20 pm ---
Ok, I re-read your posts and I see that I missed the boat by a long shot. I had installed AutoIt on my co-worker's machine and I am testing this. Here's what you need:

<begin turn_radio_on script>
Run,sndvol32.exe
WinWait,Volume Control
WinActivate,Volume Control
Send,+{TAB}
Send,{SPACE}
Send,!{F4}
Run,rundll32.exe shell32.dll\,Control_RunDLL desk.cpl\,\,0
WinWait,Display Properties
Send,!b
Send,C:\\path\\to\\image1.jpg{ENTER 2}
MsgBox,0,Radio Tuner,Press ESC to exit

; This part runs once you press ESC and it mutes Line In and changes your wallpaper again
Run,sndvol32.exe
WinWait,Volume Control
WinActivate,Volume Control
Send,+{TAB}
Send,{SPACE}
Send,!{F4}
Run,rundll32.exe shell32.dll\,Control_RunDLL desk.cpl\,\,0
WinWait,Display Properties
Send,!b
Send,C:\\path\\to\\image2.jpg{ENTER 2}
<end turn_radio_on script>

Now you just need to change the paths to fit the images you want. Make your you insert double backslashes (\\) instead of singles. It's part of the AutoIt syntax.

Oh, and I know that little message box with the Press ESC to exit msg is not the nicest, but hey, it gets the work done.

Hope that helps, but let me know if you would like to change any of it.

--- End quote ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version