Classic Shell
http://www.classicshell.net/forum/

Classic Shell Conflict with "AutoCorrect" AutoHotkey Macro
http://www.classicshell.net/forum/viewtopic.php?f=12&t=8215
Page 1 of 1

Author:  Neelix [ Thu Jan 04, 2018 8:55 am ]
Post subject:  Classic Shell Conflict with "AutoCorrect" AutoHotkey Macro

I am using the AutoCorrect script for AutoHotkey.
https://gist.github.com/endolith/876629

the hotkey to launch is Win + H. I have noticed my mouse will randomly jump off the screen, windows will maximize/minimize, and I will loose the G key or it will behave as if the Windows Key is stuck down and every time the ClassicShell start menu will pop up. The solution is to hit the windows key several times which will let you exit back to the AutoHotkey inputbox to finish adding the spelling correction however it will still minimize or maximize windows randomly. I traced the problem to ClassicShell and tried disabling Windows key hotkeys under the "Controls" menu but it did not help. If I close ClassicShell the problem goes away so I'm pretty sure the issue is with ClassicShell but I'm not sure how to fix it.

Author:  Jcee [ Thu Jan 04, 2018 9:35 am ]
Post subject:  Re: Classic Shell Conflict with "AutoCorrect" AutoHotkey Mac

It might be related to the shortcut conflicting
I had a similar issue with one of my configuartions. (except my hotkey was win+mousewheel for volume)
Since your already using auto-hotkey this should be fairly easy :)

1 right click start button, go to settings
2. check 'show all settings'
3 on the controls tab, change 'windows key opens' to nothing
4 also change 'additional classic menu hotkey (for me I used ctrl+shift+r)

This auto-hotkey script checks if the windows key was pressed (Less than .25 seconds) or held (over .25 seconds) and only sends the (ctrl+shift+r)hotkey if it was 'pressed' otherwise just passes the regular windows hotkey through


Code:
#NoTrayIcon
<<$LWin::
    KeyWait, LWin, T0.00               
    If ErrorLevel                        
      {
      
        KeyWait, LWin, T.3             ; 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

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/