Hi!
I'm using my PC as HTPC. It's connected only to a TV with HDMI. Don't know if it's possible but I would like the script to run only if the TV's input is set to PC. Im creating my own FLIRC on arduino and I don't want my PC to react to button presses from TV's remote when using my TV as, well, TV . Any ideas?
Top
Quick Reply
Check if TV has input set to PC
-
- Posts: 4
- Joined: 03 Apr 2019, 22:53
-
- Posts: 264
- Joined: 09 Mar 2019, 01:52
- Location: Germany
- Contact:
Re: Check if TV has input set to PC
You are talking about TV, TV Remote and Arduino. AHK runs only on Windows.
Am I missing something?
Sorry for that stupid question. Probably it was to early in the morning.
Am I missing something?
Sorry for that stupid question. Probably it was to early in the morning.
Last edited by Kobaltauge on 05 Apr 2019, 01:39, edited 2 times in total.
-
- Posts: 33
- Joined: 07 Sep 2018, 15:54
Re: Check if TV has input set to PC
I've got some functions in the works that might help you, just include this (https://p.ahkscript.org/?p=276df86e) and try
If it doesn't throw an error, your monitor supports the API it uses behind the scenes and you should be able to set up some logic that checks if the input source is the one your PC uses.
If it does throw an error, then your monitor probably doesn't support the API, in which case I'm sorry about wasting your time.
Assuming it didn't error, the functions should work even while the input source is not your PC, I can even turn one of my monitors on by using some of the functions in that link.
If it did error, best of luck to you with figuring something else out
Code: Select all
MsgBox, % GetMonitorCurrentInputSource()
If it does throw an error, then your monitor probably doesn't support the API, in which case I'm sorry about wasting your time.
Assuming it didn't error, the functions should work even while the input source is not your PC, I can even turn one of my monitors on by using some of the functions in that link.
If it did error, best of luck to you with figuring something else out
-
- Posts: 2
- Joined: 25 Feb 2019, 05:18
Re: Check if TV has input set to PC
I have the same problem and was hoping to try this:
Unfortunately whatever was behind that link is gone now. Any chance someone found a solution?CloakerSmoker wrote: I've got some functions in the works that might help you, just include this (https p.ahkscript.org /?p=276df86e) Broken Link for safety and try
Who is online
Users browsing this forum: Google [Bot], ht55cd3 and 247 guests