Code: Select all
<#Right::Send {End}
<#+Right::Send +{End}
Code: Select all
<#Right::Send {End}
<#+Right::Send +{End}
No particular reason. I am a novice and that way seemed to me more explicit. Is there a difference?Nextron wrote: ↑16 Jan 2019, 12:34Any reason you're using custom combination hotkeys for modifier keys instead of the conventional way?Code: Select all
<#Right::Send {End} <#+Right::Send +{End}
I tried it both ways -- the behavior in my case is the same. My problem now is that after I press LWin&Shift&Right, the text is selected till the end of the line, but then Start menu is opened.Nextron wrote: ↑18 Jan 2019, 12:33This explains it pretty well:https://autohotkey.com/docs/Hotkeys.htm#combo
So for Control, Shift, Alt or Windows, I'd stick with ^, +, ! and #.
Code: Select all
VK SC Type Up/Dn Elapsed Key Window
-------------------------------------------------------------------------------------------------------------
24 147 d 10.06 Home ... - PyCharm
24 147 u 0.08 Home
5B 15B d 0.94 LWin
A0 02A d 0.14 LShift
27 14D h d 0.16 Right
A0 02A i d 0.00 LShift
5B 15B i u 0.05 LWin
23 14F i d 0.00 End
23 14F i u 0.00 End
A0 02A i u 0.02 LShift
5B 15B i d 0.01 LWin
A0 02A i d 0.00 LShift
27 14D s u 0.00 Right
A0 02A u 0.17 LShift
5B 15B h u 0.03 LWin Search
Code: Select all
<#+Right::
Send, +{End}
Send, {Esc Up} ; try Send {Esc} too, but is more likely to have side effect
return
Code: Select all
<#+Right::
Send, {LWin Down}
Send +{End}
Send, {LWin Up}
return
Code: Select all
<#+Right::
Send, +{End}
Send, {Esc Up}
Return
VK SC Type Up/Dn Elapsed Key Window
-------------------------------------------------------------------------------------------------------------
5B 15B d 3.83 LWin shortcuts.ahk - SciTE4AutoHotkey
A0 02A d 0.17 LShift
27 14D h d 0.14 Right
5B 15B i u 0.00 LWin
23 14F i d 0.00 End
23 14F i u 0.01 End
5B 15B i d 0.02 LWin
5B 15B i u 0.00 LWin
A0 02A i u 0.00 LShift
1B 001 i u 0.01 Escape
5B 15B i d 0.02 LWin Search
A0 02A i d 0.00 LShift
27 14D s u 0.06 Right
A0 02A u 0.13 LShift
5B 15B h u 0.03 LWin shortcuts.ahk - SciTE4AutoHotkey
Code: Select all
<#+Right::Send, +{End}{Shift up}{Esc Up}
Code: Select all
<#+Right::Send, {Shift down}{End}{Shift up}{Esc Up}
Code: Select all
<#+Right::Send, +{End}{Esc up} ; if works try without {Esc up} in this line
LWin up::Send, {Esc up}
Code: Select all
<#+Right::
Send, +{End}{Ctrl down}
KeyWait, LWin
Send, {Ctrl up}
return
Code: Select all
#MenuMaskKey vk07 ; vk07 is unassigned.
#UseHook
<#+Right::
Send, +{End}
KeyWait LWin
return
Code: Select all
<#+Right::Send, +{End}
~LWin::Send {Blind}{vk07}
Code: Select all
<#+Right::
Send, +{End}{Ctrl down}
KeyWait, LWin
Send, {Ctrl up}
return
Code: Select all
VK SC Type Up/Dn Elapsed Key Window
-------------------------------------------------------------------------------------------------------------
23 14F i d 0.00 End
23 14F i u 0.00 End
A2 01D i d 0.02 LControl
5B 15B i d 0.01 LWin
27 14D s u 0.06 Right
A0 02A u 0.00 LShift
5B 15B h u 0.05 LWin
A2 01D i u 0.00 LControl
25 14B d 0.28 Left
25 14B u 0.11 Left
5B 15B h d 0.13 LWin
07 000 i d 0.00 not found
07 000 i u 0.00 not found
A0 02A d 0.13 LShift
27 14D h d 0.05 Right
5B 15B i u 0.00 LWin
23 14F i d 0.00 End
23 14F i u 0.00 End
A2 01D i d 0.02 LControl
5B 15B i d 0.01 LWin
27 14D s u 0.06 Right
A0 02A u 0.06 LShift
5B 15B h u 0.02 LWin
A2 01D i u 0.00 LControl
25 14B d 0.28 Left
25 14B u 0.11 Left
5B 15B h d 0.09 LWin
07 000 i d 0.00 not found
07 000 i u 0.00 not found
A0 02A d 0.09 LShift
27 14D h d 0.08 Right
5B 15B i u 0.00 LWin
23 14F i d 0.00 End
23 14F i u 0.00 End
A2 01D i d 0.03 LControl Cortana
5B 15B i d 0.01 LWin
27 14D s u 0.05 Right
A0 02A u 0.02 LShift
5B 15B h u 0.01 LWin
A2 01D i u 0.00 LControl
Code: Select all
<#+Right::
Send, +{End}{Ctrl down}{Esc up}
KeyWait, LWin
Send, {Ctrl up}{Esc up}
return
Code: Select all
<#+Right::
Send, +{End}{Ctrl down}{Esc up}
KeyWait, LWin
Sleep, 25 ; wait a bit while Ctrl is still down blocking Start Menu
Send, {Ctrl up}{Esc up}
WinClose, ahk_exe SearchUI.exe ; deffinitly closes Start Menu if it was not blocked
return
The same behaviour: sometimes works, sometimes not.rommmcek wrote: ↑30 Jan 2019, 03:37Just combine it with the best we have thill now:P.s.: Try to switch Esc & Ctrl keys too.Code: Select all
<#+Right:: Send, +{End}{Ctrl down}{Esc up} KeyWait, LWin Send, {Ctrl up}{Esc up} return
Code: Select all
<#+Right::
Send, +{End}{Ctrl down}
KeyWait, LWin
Sleep, 25 ; wait a bit while Ctrl is still down blocking Start Menu
Send, {Ctrl up}
WinClose, ahk_exe SearchUI.exe ; deffinitly closes Start Menu if it was not blocked
return
~LWin::Send {Blind}{vk07}
LWin up::return
Code: Select all
VK SC Type Up/Dn Elapsed Key Window
-------------------------------------------------------------------------------------------------------------
5B 15B h d 1.88 LWin shortcuts.ahk - SciTE4AutoHotkey
07 000 i d 0.01 not found
07 000 i u 0.00 not found
A0 02A d 0.08 LShift
27 14D h d 0.11 Right
5B 15B i u 0.00 LWin
23 14F i d 0.00 End
23 14F i u 0.00 End
A2 01D i d 0.01 LControl
5B 15B i d 0.02 LWin
27 14D s u 0.06 Right
A0 02A u 0.05 LShift
5B 15B h u 0.05 LWin
A2 01D i u 0.03 LControl
25 14B d 0.61 Left
25 14B u 0.09 Left
5B 15B h d 0.30 LWin
07 000 i d 0.00 not found
07 000 i u 0.00 not found
A0 02A d 0.23 LShift
27 14D h d 0.16 Right
5B 15B i u 0.00 LWin
23 14F i d 0.00 End
23 14F i u 0.00 End
A2 01D i d 0.02 LControl
5B 15B i d 0.01 LWin
27 14D s u 0.06 Right
A0 02A u 0.08 LShift
5B 15B h u 0.03 LWin
A2 01D i u 0.03 LControl
5B 15B h d 1.41 LWin
07 000 i d 0.00 not found
07 000 i u 0.00 not found
A0 02A d 0.06 LShift
5B 15B h u 0.14 LWin
A0 02A u 0.03 LShift Cortana
Code: Select all
<#+Right::Send, +{End}
~LWin::
~+LWin::Send {Blind}{vk07}
Code: Select all
<#+Right::Send, +{End}{Ctrl down}
~LWin up::
~+LWin up::Send, {Ctrl up} ; This two hotkeys fire each! time LWin is released, so I think it is right approach.
Users browsing this forum: mikeyww and 344 guests