Death's Shadow
LPmember
I have become Death. The destroyer of worlds.
Posts: 3,184
|
Post by Death's Shadow on Jun 24, 2009 11:51:50 GMT -5
cool Lam...
Hows that new beast working?
|
|
Lamron
Benevolent Dictator
Posts: 5,214
|
Post by Lamron on Jun 24, 2009 19:35:17 GMT -5
Good. Its a bit of work to get all the Media Center and home network stuff to all cooperate. The remote control is still giving me trouble. The software that comes with it is terrible, I'm going to have to write my own remote handler.
|
|
Death's Shadow
LPmember
I have become Death. The destroyer of worlds.
Posts: 3,184
|
Post by Death's Shadow on Jun 25, 2009 16:33:07 GMT -5
You da man Lam... I have no clue how to write those programs.
|
|
Lamron
Benevolent Dictator
Posts: 5,214
|
Post by Lamron on Jun 25, 2009 18:36:33 GMT -5
I'm using AutoHotKey to make the remote handler. It uses a very flexible scripting language that can natively read inputs from almost any HID (Human Interface Device, i.e. mouse, keyboard, IR remote, touchpad, etc.). The language shares elements from C+ (similar to COD4 scripting) and VBScript (what I use to make simple Windows utilites), so it was pretty easy for me to learn.
To test the practicality of writing my own remote handler, I started with wireless keyboard that has extra media and internet buttons. Here's what it looks like for one button:
Browser_Home:: IfWinExist, Hulu Desktop { WinClose }
IfWinExist, Windows Media Center { WinClose return } else { Run C:\Windows\ehome\ehshell.exe WinWaitActive Windows Media Center WinMaximize return }
The button that used to open the internet home page now checks to see if HULU is running, and shut it down if it is, and then check if Windows Media Center is already running. If it is, assume I'm wanting to shut it down. If not, assume I'm wanting to start it up and maximize it. I have another button set up the opposite way for HULU. That way with the two buttons I can toggle each ON/OFF, or back and forth between the two. Normal remote software, if it works at all, won't let you set up conditional functions like that.
Here's a simpler example. The media forward/back buttons on the keyboard by default change DVD chapters. Usually I'm wanting to scan through a non-chaptered video type, so I repurposed them to act like Fast Forward and Rewind buttons.
Media_Next:: IfWinExist, Windows Media Center { Send, ^+f } return
If Media Center is running and if I press the forward chapter button, that function is intercepted and instead it sends a CTRL+SHIFT+F, the keyboard shortcut for Fast Forward.
Once I get a decent USB IR reciever, I'll be able to read the code sent by each button on the remote and then assign each to whatever functions I want. The buttons can even have completely different functions depending on what program is running on the computer at the time.
|
|
Death's Shadow
LPmember
I have become Death. The destroyer of worlds.
Posts: 3,184
|
Post by Death's Shadow on Jun 26, 2009 8:25:43 GMT -5
very nice.. ;D
|
|
Lamron
Benevolent Dictator
Posts: 5,214
|
Post by Lamron on Jul 9, 2009 2:05:58 GMT -5
The COD4 server is back up now.
|
|