Reply to post

HyperSnap 7.29.10 (Portable Install) Not Registering Print-Screen Hotkey, + Other Bug

Author
IBNobody
User
  • Total Posts : 0
  • Scores: 0
  • Reward points: 0
  • Joined: 2016/03/30 23:33:12
  • Status: offline
2016/03/31 11:09:48 (permalink)
0

HyperSnap 7.29.10 (Portable Install) Not Registering Print-Screen Hotkey, + Other Bug

I'm running HyperSnap 7.29.10 from a portable install. I have Hotkeys enabled. I assigned PrintScreen to capture a region. On my home PC (Win7 Ultimate), the capture region hotkey (Ctrl+Shift+R) works, but PrintScreen does not. I've verified that the issue is not my keyboard. To my knowledge, I do not have any other programs running that bind to PrintScreen.
 
On my other systems, PrintScreen works as expected.
 
I also ran into another bug. HyperSnap 7.29.10 does not respect any environment variables such as USERPROFILE. If I want to capture screenshots to a %USERPROFILE%\Pictures\Screenshots\HyperSnap folder, HyperSnap creates a folder named "%USERPROFILE%" rather than expanding USERPROFILE to C:\Users\Me. This would have been useful because I could make relative / per-computer assignments for this portable app.
 
Also, have you considered creating a PortableApps.com installer?

7 Replies Related Threads

    Admin
    Administrator
    • Total Posts : 275
    • Scores: 6
    • Reward points: 0
    • Joined: 2010/11/22 00:00:00
    • Location: USA
    • Status: offline
    Re: HyperSnap 7.29.10 (Portable Install) Not Registering Print-Screen Hotkey, + Other Bug 2016/03/31 18:09:46 (permalink)
    0
    It seems that the Print Screen cannot be reassigned under Windows 10, maybe also Windows 8 (I did not test it there). Still works fine on Windows 7. I guess I'll have to hide this setting when running under Windows 10, don't know how otherwise to enable this key handling.
     
    Expanding %USERPROFILE% or other environment variables in file names seems like a good idea, will try to implement this, particularly if more people ask for such feature. However, I would only modify the latest version 8 of HyperSnap, not old version 7.
     
    Greg
    IBNobody
    User
    • Total Posts : 0
    • Scores: 0
    • Reward points: 0
    • Joined: 2016/03/30 23:33:12
    • Status: offline
    Re: HyperSnap 7.29.10 (Portable Install) Not Registering Print-Screen Hotkey, + Other Bug 2016/03/31 21:10:43 (permalink)
    0
    I'm seeing the PrintScreen issue on Windows 7, though. 2 of the 3 PC's run it on Win7 fine, but my home PC doesn't work.
    Admin
    Administrator
    • Total Posts : 275
    • Scores: 6
    • Reward points: 0
    • Joined: 2010/11/22 00:00:00
    • Location: USA
    • Status: offline
    Re: HyperSnap 7.29.10 (Portable Install) Not Registering Print-Screen Hotkey, + Other Bug 2016/04/01 07:14:39 (permalink)
    0
    I really don't know what causes these problems. Guess I pull out Print Screen setting completely from the product.
     
    Greg
    IBNobody
    User
    • Total Posts : 0
    • Scores: 0
    • Reward points: 0
    • Joined: 2016/03/30 23:33:12
    • Status: offline
    Re: HyperSnap 7.29.10 (Portable Install) Not Registering Print-Screen Hotkey, + Other Bug 2016/04/01 09:13:38 (permalink)
    0
    Is that an April Fools answer?
     
    Seriously, though. If you can tell me more about how the program registers and listens for the keypress, I can debug things from my end.
    Admin
    Administrator
    • Total Posts : 275
    • Scores: 6
    • Reward points: 0
    • Joined: 2010/11/22 00:00:00
    • Location: USA
    • Status: offline
    Re: HyperSnap 7.29.10 (Portable Install) Not Registering Print-Screen Hotkey, + Other Bug 2016/04/05 07:34:54 (permalink)
    0
    Same as any other, RegisterHotKey() Windows API call. If Windows system chooses to ignore this, there is nothing else I could do.
    IBNobody
    User
    • Total Posts : 0
    • Scores: 0
    • Reward points: 0
    • Joined: 2016/03/30 23:33:12
    • Status: offline
    Re: HyperSnap 7.29.10 (Portable Install) Not Registering Print-Screen Hotkey, + Other Bug 2016/04/05 10:16:09 (permalink)
    0
    Have you tried using SetWindowsHookEx ( This is essentially what AutoHotkey uses when you enable keyboard hooks (#UseHooks). It stops using RegisterHotKey (which even the AHK devs admit as being faulty) and uses SetWindowsHookEx.
     
    Here is more background on hooking.

     
    (Ignore the performance warning if you bind to keyboard/mouse. I have not seen any issues, and I run an AHK script in the background.)
     
    For some under-the-hood examples of SetWindowsHooksEx, try this:
     
    Here is an AutoIt example that re-registers Win-Tab.

     
    Here is an AutoHotkey script example that uses SetWindowsHookeEx to tap into the hook chain to disable the mouse while typing.

     
    Please don't pull support for this key feature.
     
    My workaround (since you probably won't fix this for my v7) will be to use an AHK script to map PrintScreen to Ctrl-Shift-R using a hook. As long as HS7 can register Ctrl-Shift-R with RegisterHotKey, my AHK script will work.
    post edited by IBNobody - 2016/04/05 10:19:57
    IBNobody
    User
    • Total Posts : 0
    • Scores: 0
    • Reward points: 0
    • Joined: 2016/03/30 23:33:12
    • Status: offline
    Re: HyperSnap 7.29.10 (Portable Install) Not Registering Print-Screen Hotkey, + Other Bug 2016/04/05 10:24:30 (permalink)
    0
    Looks like your forum software is eating my links. Sorry... Looks like you'll have to find them on your own. :/
    Jump to:
    © 2024 APG vNext Commercial Version 5.1