AutoHotKey behavior in 10

Page 2 of 2 FirstFirst 12

  1. Posts : 42,943
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #11

    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 Computers


  2. Posts : 42,943
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #12

    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 Computers


  3. Posts : 173
    Windows 10 x64
    Thread Starter
       #13

    I use media monkey mostly, then VLC..
      My Computer


  4. Posts : 42,943
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #14

    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 Computers


 

  Related Discussions
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 23:20.
Find Us




Windows 10 Forums