Page 2 of 2 FirstFirst 12
  1.    17 Dec 2015 #11
    Join Date : Jan 2015
    UK, Midlands
    Posts : 11,129
    Win 10 Pro (1703)

    Hi, thanks, I understand what you're trying to do. (No need to use !'s- I qualified screenshot with 'if relevant' on the principle that a picture can be worth 1000 scripts).
    If that doesn't work (and you could always make WMP topmost - I'm presuming you mean Windows Media Player) then have you seen this?

    Add Global Hotkeys to Windows Media Player
    I've not tried it and don't know specifically if it works in Win 10 etc. I'll leave it to you to experiment.
      My ComputerSystem Spec
  2.    17 Dec 2015 #12
    Join Date : Jan 2015
    UK, Midlands
    Posts : 11,129
    Win 10 Pro (1703)

    Oddly, your hotkeys started working with WMP as an inactive window, when they weren't before.

    Note this example for Winamp: - the test is a good idea, of course.
    However I haven't been able to get Controlsend to work in your example despite trying a few variations.

    This section demonstrates how to control Winamp via hotkey even when it is minimized or inactive. This information has been tested with Winamp 2.78c but should work for other major releases as well. Please post changes and improvements in the forum or contact the author.

    This example makes the Ctrl+Alt+P hotkey equivalent to pressing Winamp's pause/unpause button:

    ^!p::
    IfWinNotExist ahk_class Winamp v1.x
    return
    ; Otherwise, the above has set the "last found" window for use below.
    ControlSend, ahk_parent, c ; Pause/Unpause
    return
      My ComputerSystem Spec
  3.    17 Dec 2015 #13
    Join Date : Mar 2015
    Posts : 123
    Windows 10 x64
    Thread Starter

    I use media monkey mostly, then VLC..
      My ComputerSystem Spec
  4.    18 Dec 2015 #14
    Join Date : Jan 2015
    UK, Midlands
    Posts : 11,129
    Win 10 Pro (1703)

    Ok, so you can adapt the example accordingly. According to the AHK help file, ControlSend is the appropriate command to include inactive windows.. Control only sends to active windows.

    I found it a bit erratic. Substituting the 'normal' hotkey for your string e.g.
    ^#Down::ControlSend,ahk_parent ,^P,Windows Media Player
    seemed better. You can experiment...
      My ComputerSystem Spec

 
Page 2 of 2 FirstFirst 12


Similar Threads
Thread Forum
Solved Annoying sleep behavior
Hello, I have a Dell Optiplex 980 desktop and everything runs smooth with Windows 10. I do have a problem with sleep. The PC goes to sleep after 60 minutes as it's set to. Upon waking it up if I do not keep using keyboard or mouse it goes right...
Performance & Maintenance
Solved Odd hard drive behavior
Two days ago I defraged my primary hard drive before I went to bed. When I woke up the next day my laptop was on a black screen so I held the power button until it shut down. When I tried to boot it up I got a message saying no hard drive was found....
Drivers and Hardware
Odd login behavior
I'm working on a customer's computer and encountered something I've never seen before. Recently she upgraded from Windows 7 to Windows 10. When she goes to type her login password the login executes when she hits the last keystroke of the...
User Accounts and Family Safety
Solved Odd hard drive behavior
I have one month old 1tb hybrid hard drive and yesterday I was experiencing issues with it. It started to run slower than usual. Games wouldn't load as quickly and when I first booted into windows the desktop icons appeared as blank pieces of...
Drivers and Hardware
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 14:22.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums