Every now and then, you want something done automatically, which can't be done natively on Windows. That's when a few Google searches find you some free programs which serve the purpose very nicely. For me, Most of these had to be found after Radeon dropped functionality from their Control center in Radeon Crimson.
MultiMonitorTool - http://www.nirsoft.net/utils/multi_monitor_tool.html
This tool allows you to control the arrangement of your displays. This was especially helpful for me since it has command line options to do what's needed. And also, something I like very much, it needs no installation.
OpenHardwareMonitor - http://openhardwaremonitor.org/
No installation free software that shows all the fan/temperature/Load/Clocks in your system. It shows it from anything connected to your pc very neatly with some filtering options.
Still in the Beta phase, but is very promising.
FolderSize - http://www.mindgems.com/products/Folder-Size/Folder-Size-Download.htm
Free software that shows you the size of any file or folder while being able to drill down each folder to find whatever it is that is taking a lot of your storage. Also has a portable, non-installation needed version.
The Pro version can even analyze network drives and has command line options.
Friday, December 4, 2015
Friday, July 3, 2015
Adding audio delay keyboard shortcuts to PLEX
I've recently learned that there is a possibility to add audio delay keyboard mappings for the Plex Home Theater on windows.
To do this, edit the file located in:
C:\Program Files (x86)\Plex Home Theater\system\keymaps\keyboard.xml
Add these entries:
<keymap>
<global>
<keyboard>
<j>AudioDelayMinus</j>
<k>AudioDelayPlus</k>
<j mod="ctrl">SubtitleDelayMinus</j>
<k mod="ctrl">SubtitleDelayPlus</k>
<keyboard>
<global>
To do this, edit the file located in:
C:\Program Files (x86)\Plex Home Theater\system\keymaps\keyboard.xml
Add these entries:
<keymap>
<global>
<keyboard>
<j>AudioDelayMinus</j>
<k>AudioDelayPlus</k>
<j mod="ctrl">SubtitleDelayMinus</j>
<k mod="ctrl">SubtitleDelayPlus</k>
<keyboard>
<global>
<keymap>
to the file. That is, add he AudioDelayMinus and AudioDelayPlus under the existing "keyboard" tag if it exists, or create a new keyboard.xml file and write the above in it.
This will assign the keyboard buttons j and k to the AudioDelayMinus and AudioDelayPlus respectively.
To put this together with my Plex + Harmony + FLIRC configuration, I then assigned the channel up and channel down buttons of my "Plex" device (actually configured as a Panasonic TC-P65VT30, as mentioned in: http://programming-headbanging.blogspot.co.il/2014/08/configuring-plex-home-theater-with.html) on the harmony remote to the j and k keyboard keys to be able to change the audio delay while watching a movie through Plex.
There are other short-cuts available as well, generally, all those that were in XBMC's keymap:
http://kodi.wiki/view/keymap
to the file. That is, add he AudioDelayMinus and AudioDelayPlus under the existing "keyboard" tag if it exists, or create a new keyboard.xml file and write the above in it.
This will assign the keyboard buttons j and k to the AudioDelayMinus and AudioDelayPlus respectively.
To put this together with my Plex + Harmony + FLIRC configuration, I then assigned the channel up and channel down buttons of my "Plex" device (actually configured as a Panasonic TC-P65VT30, as mentioned in: http://programming-headbanging.blogspot.co.il/2014/08/configuring-plex-home-theater-with.html) on the harmony remote to the j and k keyboard keys to be able to change the audio delay while watching a movie through Plex.
There are other short-cuts available as well, generally, all those that were in XBMC's keymap:
http://kodi.wiki/view/keymap
Saturday, June 13, 2015
Connecting to a DHCP disabled router
Recently I had a need to connect 2 routers together to create a single LAN. The main reason for me was actually laziness, since I didn't want to pull another Ethernet cable through the walls.
In order to configure them correctly I followed the instructions found in:
What I didn't follow correctly, was step (3), which is to change the secondary router's IP to one in the main router's IP range.
All was working well, except when I wanted to reconfigure the secondary router, and was unable to do so.
You see, my main router was in the 10.0.0.X range, and the secondary was in the 192.168.2.X range. Since my PC was now receiving an IP in the main router's range, it couldn't connect to the secondary router's web service.
An easy solution would've been to reset the router to the factory settings where the DHCP is enabled. Unfortunately, the reset button on my router didn't work.
An easy solution would've been to reset the router to the factory settings where the DHCP is enabled. Unfortunately, the reset button on my router didn't work.
To get around that I had to get my PC to change to the secondary router's subnet:
- Disconnect the secondary router from the main router
- Go into my PC's network adapter
- Search for Network Connections
- Right-click the Local Area Connection
- Click Properties
- Click Internet Protocol Version 4 and go into its properties
- Change to "Use the following IP address:"
- Enter
- IP address: an IP in the secondary router's range (for instance 192.168.2.5 in my example) which isn't the IP of the router
- Subnet mask: in my case it was 255.255.255.0, but even doing 255.255.0.0 works
- Default gateway: the IP of the secondary router in its domain
- Press OK until you get back to the Local Area Connection
- Right-click the Local Area Connection
- Click Disable
- Double-click the connection to re-enable it
Now, all that remained was to type the router's IP in my browser and I could now enter it as I should.
To not have to do this again every time I want to access my secondary router, I then changed the IP to be one in the main router's range, and rebooted the secondary router. I then undid the changes above (changing the adapter's option to "Obtain and IP address automatically"), connected the secondary router to the main one's LAN port, and connected the PC to the secondary's LAN port.
At this point, I could enter the secondary router's web service through the new IP I gave it.
Saturday, June 6, 2015
AutoHotKey
A
while ago I wanted to find a way to create
keyboard short-cuts that weren't available out of the box
for my windows PC. Looking around, I came by AutoHotKey (AHK) which
seems to not only allow for keyboard short-cuts, but much more. AHK allows
you to control all sorts of things on your PC, be it through keyboard
inputs, or through scripts running on your machine that pick up changes on the
PC to be used in any way you like.
AutoHotKey
can be downloaded here:
After
installation it is a simple matter of right clicking a script file and
selecting “compile script” to create an executable from it.
The
main reason I started using AHK was for helping me use my harmony universal
remote to control my PC, and mainly, to use it to open and control my PLEX
client. More on this can be found here:
This
brings me to my first script, which was naturally, opening the PLEX
home theater:
https://onedrive.live.com/redir?resid=de479d93705aaef!179&authkey=!ABvxiRhjSLez6Dg&ithint=file%2cahk
This
one uses a SHIFT+ALT+F10 key combination to open the file in:
“C:\Program
Files (x86)\Plex Home Theater\Plex Home Theater.exe”, if the PLEX Home Theater
executable isn't already running.
Here
are the rest of the scripts I've written since then:
KeyPad-Letters:
This had to do with my problem finding a way to enter letters in the PLEX
search box from my remote, which had only a numpad.
So,
with the help of this script, I essentially created a phone-like numpad. The
script sends letters while pressing the number buttons of the remote repeatedly
like you usually do on the TV or older phones with no keyboard.
So,
for instance, if I want to write abg3 I'll be able to do that with
the remote by: pressing 2, wait a second (or press Alt-Shift-F8), pressing
2 twice, pressing 4 once, pressing 3 four times.
the
Keypad-Letters script can be found at:
https://onedrive.live.com/redir?resid=de479d93705aaef!185&authkey=!ABcwFW3bRsvP5HQ&ithint=file%2cahk
This
script also uses Alt-Shift-F8 (which I mapped through FLIRC, as explained
in the other blog post I mentioned earlier) to stop the 1 second timer so that
you could write other characters from the same number immediately without
having to wait a second between each letter.
Close
Display: By far my most used keyboard short-cut, this one uses WIN-q to
close my PC’s display screen just as it would when the computer usually goes to
sleep or shuts down. This is extremely useful when you've left your PC for a
little while, and don’t want it to go to sleep or shut down. It saves power
used by the display, and also protects it from being “burned” if your
screen-saver takes a while to start. In general, it makes me feel better
knowing that my display isn't sitting there waiting for someone who is not
around.
https://onedrive.live.com/redir?resid=de479d93705aaef!187&authkey=!AM3AVmnbQgVSXOQ&ithint=file%2cahk
Change
Resolution: This script uses WIN-w to immediately set your current display
to use a resolution of 1920 x 1200 (which is what my PC display should be
using). This was useful to me when using PLEX, as it was run on my 1080p TV,
and would sometimes keep my other display in this same resolution after I
closed PLEX.
https://onedrive.live.com/redir?resid=de479d93705aaef!181&authkey=!ADZrOVlI6zEbS-E&ithint=file%2cahk
Change
PC volume by resolution: This script listens to a resolution
change event from the windows operating system, and sets the PC’s volume
accordingly. As it happened, the volume I heard on my PC’s headphones was much
louder than that heard from my other audio output to my receiver, which was
used when watching PLEX on my 1080p TV. Instead of always increasing the volume
manually, I created this script to automatically change the volume when my
resolution was set to 1080p (which automatically happens when starting PLEX in
my case).
https://onedrive.live.com/redir?resid=de479d93705aaef!184&authkey=!AGDcNyekmZV34Gk&ithint=file%2cahk
One
script to include them all (and in a single
executable run them):
In
order to run all these scripts together, and not as separate executables, I
created one other script which essentially includes all the rest. This is
simply done by creating another AHK script file that has this:
#Include
c:\full\path\to\ahk\script\file\to\be\included.ahk
And
to finish this whole thing off, I’ll give you a small tip on how to run
scripts that need admin rights. Sometimes, you want a keyboard shortcut
in AHK to run a program that needs admin rights. Instead of having to authorize
to use it with admin rights every time you run the keyboard shortcut for it,
you could run a VBS script that would require the admin rights only once (on
startup for instance). After doing it once, it will keep those rights as long
as it runs. Saving you unnecessary clicks and hassles. Of course, be wary not
to give your admin rights away to any third party executable you know
nothing about.
Just
create a file with a “vbs” extension, such as ahk_scripts.vbs and add these
lines:
Set
UAC = CreateObject("Shell.Application")
UAC.ShellExecute
" c:\full\path\to\ahk\executable\to\run\with\admin\rights.exe",
"", "", "runas", 1
Subscribe to:
Posts (Atom)