Win Scripts for Resolution, Resume, AlwaysOnTop, ForceRestart of XBMC/PC & more - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Tips, tricks, and step by step guides (https://forum.kodi.tv/forumdisplay.php?fid=110) +--- Thread: Win Scripts for Resolution, Resume, AlwaysOnTop, ForceRestart of XBMC/PC & more (/showthread.php?tid=51953) |
Scripts for Resolution, Resume, AlwaysOnTop, ForceRestart of XBMC/PC & more - infy - 2009-05-30 These are all autohotkey scripts but can be converted into executables. What you do is download autohotkey ( http://autohotkey.com/ ) open notepad and copy paste the code. extremely easy program but very useful. 1. Execute commands on resume/suspend/sleep. In this example I have it "sleep" for 10 seconds and then execute another script to change resolution. Code: OnMessage(0x218, "WM_POWERBROADCAST") 2. Change resolution,refreshrate,colorquality. You can bind this to a button on keyboard/mouse/remote or w/e or have it execute when you come out of standby/sleepmode. Code: EncodeInteger( p_value, p_size, p_address, p_offset ) 3. Force Restart XBMC with press of button for when it has crashed or something like it. In this case I've chosen ctrl + X Code: ;forced exit & restart of XBMC 4. Force Restart/Reboot when windows has stopped functioning. In this case I've chosen ctrl + w. If you want a forced shutdown use "shutdown, 5" Code: ;forced restart 5. bring XBMC to front. Code: ;Brings XBMC to front 6. execute resolution script by pressing button ctrl+k Code: ;Change resolution as specified in resolution.ahk RE: [WINDOWS] Scripts for Resolution, Resume, AlwaysOnTop, ForceRestart of XBMC/PC & more - nick w - 2013-01-14 Thanks very much for this! thanks - VibeZ - 2013-04-24 thanks for this it helped me out alot RE: Scripts for Resolution, Resume, AlwaysOnTop, ForceRestart of XBMC/PC & more - malch - 2015-03-22 Nice. Thank you! |