home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
Input / Output interfaces
Remotes
Vista MCE Remote Control VRC-1100
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Goodmane1980" data-source="post: 837712" data-attributes="member: 114774"><p>#IfWinNotExist ahk_class WindowsForms10.Window.8.app.0.2004eee</p><p> #!Enter::Run C:\Program Files (x86)\Team MediaPortal\MediaPortal\MediaPortal.exe</p><p> #IfWinActive ahk_class WindowsForms10.Window.8.app.0.2004eee</p><p> #!Enter::ControlSend, ,H, ahk_class WindowsForms10.Window.8.app.0.2004eee</p><p> #IfWinNotActive ahk_class WindowsForms10.Window.8.app.0.2004eee</p><p> #!Enter::WinActivate, ahk_class WindowsForms10.Window.8.app.0.2004eee</p><p></p><p></p><p>If you use the above code posted by dragonq earlier in this thread, that will work or at least it does for me. You just manually set the media buttons you want with the Keyboard Input plugin (you have to install this separately), then you install autohotkey and make it run the above script (e.g. by adding it to the example file made during install that is placed in my documents folder.</p><p></p><p>My actual script is as follows; note the additional line at the beginning !#Enter = Alt+Win+Enter as I think that might also be necessary to map the key correctly but I'm not 100% sure. For anybody that is still stuck, I've attached the file. </p><p></p><p>; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a</p><p>; semicolon, such as this one, are comments. They are not executed.</p><p></p><p>; This script has a special filename and path because it is automatically</p><p>; launched when you run the program directly. Also, any text file whose</p><p>; name ends in .ahk is associated with the program, which means that it</p><p>; can be launched simply by double-clicking it. You can have as many .ahk</p><p>; files as you want, located in any folder. You can also run more than</p><p>; one ahk file simultaneously and each will get its own tray icon.</p><p></p><p>; SAMPLE HOTKEYS: Below are two sample hotkeys. The first is Win+Z and it</p><p>; launches a web site in the default browser. The second is Control+Alt+N</p><p>; and it launches a new Notepad window (or activates an existing one). To</p><p>; try out these hotkeys, run AutoHotkey again, which will load this file.</p><p></p><p>#z::Run <a href="http://www.autohotkey.com" target="_blank">AutoHotkey - Free Mouse and Keyboard Macro Program with Hotkeys and AutoText</a></p><p></p><p></p><p>!#Enter = Alt+Win+Enter</p><p></p><p>#IfWinNotExist ahk_class WindowsForms10.Window.8.app.0.2004eee</p><p>#!Enter::Run C:\Program Files (x86)\Team MediaPortal\MediaPortal\MediaPortal.exe</p><p>#IfWinActive ahk_class WindowsForms10.Window.8.app.0.2004eee</p><p>#!Enter::ControlSend, ,H, ahk_class WindowsForms10.Window.8.app.0.2004eee</p><p>#IfWinNotActive ahk_class WindowsForms10.Window.8.app.0.2004eee</p><p>#!Enter::WinActivate, ahk_class WindowsForms10.Window.8.app.0.2004eee</p><p></p><p></p><p>; Note: From now on whenever you run AutoHotkey directly, this script</p><p>; will be loaded. So feel free to customize it to suit your needs.</p><p></p><p>; Please read the QUICK-START TUTORIAL near the top of the help file.</p><p>; It explains how to perform common automation tasks such as sending</p><p>; keystrokes and mouse clicks. It also explains more about hotkeys.</p></blockquote><p></p>
[QUOTE="Goodmane1980, post: 837712, member: 114774"] #IfWinNotExist ahk_class WindowsForms10.Window.8.app.0.2004eee #!Enter::Run C:\Program Files (x86)\Team MediaPortal\MediaPortal\MediaPortal.exe #IfWinActive ahk_class WindowsForms10.Window.8.app.0.2004eee #!Enter::ControlSend, ,H, ahk_class WindowsForms10.Window.8.app.0.2004eee #IfWinNotActive ahk_class WindowsForms10.Window.8.app.0.2004eee #!Enter::WinActivate, ahk_class WindowsForms10.Window.8.app.0.2004eee If you use the above code posted by dragonq earlier in this thread, that will work or at least it does for me. You just manually set the media buttons you want with the Keyboard Input plugin (you have to install this separately), then you install autohotkey and make it run the above script (e.g. by adding it to the example file made during install that is placed in my documents folder. My actual script is as follows; note the additional line at the beginning !#Enter = Alt+Win+Enter as I think that might also be necessary to map the key correctly but I'm not 100% sure. For anybody that is still stuck, I've attached the file. ; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a ; semicolon, such as this one, are comments. They are not executed. ; This script has a special filename and path because it is automatically ; launched when you run the program directly. Also, any text file whose ; name ends in .ahk is associated with the program, which means that it ; can be launched simply by double-clicking it. You can have as many .ahk ; files as you want, located in any folder. You can also run more than ; one ahk file simultaneously and each will get its own tray icon. ; SAMPLE HOTKEYS: Below are two sample hotkeys. The first is Win+Z and it ; launches a web site in the default browser. The second is Control+Alt+N ; and it launches a new Notepad window (or activates an existing one). To ; try out these hotkeys, run AutoHotkey again, which will load this file. #z::Run [url=http://www.autohotkey.com]AutoHotkey - Free Mouse and Keyboard Macro Program with Hotkeys and AutoText[/url] !#Enter = Alt+Win+Enter #IfWinNotExist ahk_class WindowsForms10.Window.8.app.0.2004eee #!Enter::Run C:\Program Files (x86)\Team MediaPortal\MediaPortal\MediaPortal.exe #IfWinActive ahk_class WindowsForms10.Window.8.app.0.2004eee #!Enter::ControlSend, ,H, ahk_class WindowsForms10.Window.8.app.0.2004eee #IfWinNotActive ahk_class WindowsForms10.Window.8.app.0.2004eee #!Enter::WinActivate, ahk_class WindowsForms10.Window.8.app.0.2004eee ; Note: From now on whenever you run AutoHotkey directly, this script ; will be loaded. So feel free to customize it to suit your needs. ; Please read the QUICK-START TUTORIAL near the top of the help file. ; It explains how to perform common automation tasks such as sending ; keystrokes and mouse clicks. It also explains more about hotkeys. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Input / Output interfaces
Remotes
Vista MCE Remote Control VRC-1100
Contact us
RSS
Top
Bottom