It is currently Thu Jun 07, 2018 10:22 pm

All times are UTC - 8 hours [ DST ]


Forum rules


Before posting a bug report or a feature request, search the forum for an older post on the same topic.



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Tue Dec 08, 2015 3:44 pm 
Offline
User avatar

Joined: Sun Jan 06, 2013 1:44 pm
Posts: 1939
I have several shortcuts/functions that I would like to tie to mouse, using the windows key as a modifier (IE win+scrollwheel for volume). However both programs Ive used capable of doing this, don't seem to stop the start menu from opening on key-release.


I was wondering if you could add a checkbox 'Dont open menu if [win] key is held.' I would suggest maybe 250-400 ms as a hardcoded value.


Top
 Profile  
Reply with quote  
PostPosted: Fri Dec 18, 2015 9:00 am 
Offline
Site Admin
User avatar

Joined: Wed Jan 02, 2013 11:38 pm
Posts: 5331
Classic Shell does not access the Win key directly. It hooks into the original start menu/start screen activation.
It is not possible to hook the keyboard reliably unless you are running as admin. The start menu runs inside the Explorer process, which is not elevated.


Top
 Profile  
Reply with quote  
PostPosted: Fri Dec 18, 2015 10:23 am 
Offline
User avatar

Joined: Sun Feb 22, 2015 3:09 pm
Posts: 677
Ivo wrote:
Classic Shell does not access the Win key directly. It hooks into the original start menu/start screen activation.
It is not possible to hook the keyboard reliably unless you are running as admin. The start menu runs inside the Explorer process, which is not elevated.


Just a thought...does that mean you can't modify the original trigger/activation/whatever to behave as described above? ._.

_________________
TILES WOOOOOO


Top
 Profile  
Reply with quote  
PostPosted: Fri Dec 18, 2015 5:22 pm 
Offline
User avatar

Joined: Sun Jan 06, 2013 1:44 pm
Posts: 1939
Ah ok, if its not something relatively easy to implement, or requires something like elevating privileges. than I fully understand it not being implemented :P
Im sure ill find another way around this problem, likely via Auto hotkey or the like
(setting [win key] to do nothing in classic shell, adding a new hotkey for the menu, and triggering that hotkey via ahk, when a shortpress is detected)

UPDATE: here is the script, the shortcut to open classic shell is now alt+ctrl+r (and this script sends that if the LWin key is held less than .2 seconds)
Otherwise it holds down the RWin key until you release the LWin key. (after the initial .21 seconds)
Heres the code if anyone is interested
Code:
<<$LWin::
    KeyWait, LWin, T0.01               
    If ErrorLevel                        
      {
      
        KeyWait, LWin, T.2             ; Wait .25 to see if key is held

        If !ErrorLevel                  ; No timeout, so key was released
          { 
           Send ^!r
            Return
          }         

       Send {RWin down}
        KeyWait, LWin                   ; Wait for button to be released
        Send {RWin up}      
        Return
      }
      
      
Return


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group, Almsamim WYSIWYG Classic Shell © 2010-2016, Ivo Beltchev.
All right reserved.