Hi:)
Following lines are not working:
^+5::
Send {Alt}
Return
^!5::
Send {Alt}
Return
Any combination of ^, ! and + do not send {Alt}, but Send Hello does work with these combinations, only the {Alt} command will do not! {Ctrl} and {Shift} do not work either....
5::
Send {Alt}
Return
or
a::
Send {Alt}
Return
for example do send {Alt}
Means, the Alt is not send, if I use "shifted" commands.....
Why?? What is wrong?
Bassman.
^!5:: or ^+5:: not working, a:: or 5:: do!!
Re: ^!5:: or ^+5:: not working, a:: or 5:: do!!
It probably is sending Alt, but since you're holding Ctrl, Shift or Alt, the system sees as if you were sending the combination of those keys instead.
Re: ^!5:: or ^+5:: not working, a:: or 5:: do!!
I did some experimentation earlier and it does not appear to be sending Alt.
@Ohnitiel - bear in mind that ^a:: Send !{b} will NOT send Ctrl+Alt+B, it will release Ctrl, Send Alt+B, then re-hold Ctrl
^a:: Send {Blind}!{b} would send Ctrl+Alt+B
So if things are consistent, his syntax should be good.
@Ohnitiel - bear in mind that ^a:: Send !{b} will NOT send Ctrl+Alt+B, it will release Ctrl, Send Alt+B, then re-hold Ctrl
^a:: Send {Blind}!{b} would send Ctrl+Alt+B
So if things are consistent, his syntax should be good.
Re: ^!5:: or ^+5:: not working, a:: or 5:: do!!
Yeah i had forgotten... So long since I used it like that. It's probably a system thing. It blocks sending Alt through a Ctrl + key hotkey.
Re: ^!5:: or ^+5:: not working, a:: or 5:: do!!
You made me curious but I'm getting different results. While releasing the modifiers key is intended behavior as you described, it's not happening for me when sending {Alt} (which the hotkey does send in my case) as if sending a modifier key has an implicit {Blind} associated with it. Because Control and Alt are still logically down, it just doesn't have any noticeable effect.evilC wrote:I did some experimentation earlier and it does not appear to be sending Alt.
@Ohnitiel - bear in mind that ^a:: Send !{b} will NOT send Ctrl+Alt+B, it will release Ctrl, Send Alt+B, then re-hold Ctrl
^a:: Send {Blind}!{b} would send Ctrl+Alt+B
Code: Select all
• Sending {Alt}
A2 01D d 0.51 LControl
A4 038 d 0.16 LAlt
35 006 d 0.19 5
A4 038 i d 0.05 LAlt
A4 038 i u 0.01 LAlt
A4 038 i d 0.03 LAlt
35 006 u 0.00 5
A2 01D u 0.17 LControl
A4 038 u 0.00 LAlt
• Sending a
A2 01D d 0.14 LControl
A4 038 d 0.14 LAlt
35 006 d 0.41 5
A4 038 i u 0.00 LAlt
A2 01D i u 0.00 LControl
41 01E i d 0.01 a
41 01E i u 0.02 a
A4 038 i d 0.03 LAlt
A2 01D i d 0.00 LControl
35 006 u 0.05 5
A4 038 u 0.50 LAlt
A2 01D u 0.13 LControl
Re: ^!5:: or ^+5:: not working, a:: or 5:: do!!
Hi:)
I'm a bit confused!
What I want AHK to do, is send {Alt} to open the menubar and then "m" for to open the menu "Modificate" with the Keystroke Ctrl+Alt+5 or any other key with Ctrl+Alt.......
Now what's the correct Syntax to get it work??
Again:
7::
Send {Alt}m{Enter}g{Tab}-3{Tab 7}-3{Tab 2}{Enter}
Enter
works perfectly but I would need Ctrl+Alt+(7,8,9,0) to send these commands...
The problem I think is, cause I hold down Ctrl+Alt+7 and I release first the 7 and then later Ctrl and Alt, but for AHK instead send Alt it would send Ctrl+7, Alt is still pressed.....
I've tried:
^!5::
Send {Blind}!{d}
Return
and it sends indeed Ctrl+Alt+d, opens my digicheck window in windows. Exactly how @evilC told!
^!5::
Send {Ctrl UP}{Blind}!{m}
Return
sends Alt+m, not what I want!
^!5::
Send {Ctrl UP}!{m}
Return
does send Alt+m too
^!5::
Send {Ctrl UP}!{Alt UP}{m}
Return
only sends m
^!5::
Send {Ctrl UP}!{Alt UP}{Alt}{m}
Return
does send Alt and then m but it does not stay in the menu
Can't find out:(
Thank you;)
Bassman.
I'm a bit confused!
What I want AHK to do, is send {Alt} to open the menubar and then "m" for to open the menu "Modificate" with the Keystroke Ctrl+Alt+5 or any other key with Ctrl+Alt.......
Now what's the correct Syntax to get it work??
Again:
7::
Send {Alt}m{Enter}g{Tab}-3{Tab 7}-3{Tab 2}{Enter}
Enter
works perfectly but I would need Ctrl+Alt+(7,8,9,0) to send these commands...
The problem I think is, cause I hold down Ctrl+Alt+7 and I release first the 7 and then later Ctrl and Alt, but for AHK instead send Alt it would send Ctrl+7, Alt is still pressed.....
I've tried:
^!5::
Send {Blind}!{d}
Return
and it sends indeed Ctrl+Alt+d, opens my digicheck window in windows. Exactly how @evilC told!
^!5::
Send {Ctrl UP}{Blind}!{m}
Return
sends Alt+m, not what I want!
^!5::
Send {Ctrl UP}!{m}
Return
does send Alt+m too
^!5::
Send {Ctrl UP}!{Alt UP}{m}
Return
only sends m
^!5::
Send {Ctrl UP}!{Alt UP}{Alt}{m}
Return
does send Alt and then m but it does not stay in the menu
Can't find out:(
Thank you;)
Bassman.
Re: ^!5:: or ^+5:: not working, a:: or 5:: do!!
Post your key history like I have.
What the other posters and I are saying is that the command is correct, but the result is not what's expected. So we're either all overlooking something or there's a bug (with a crude workaround in my previous post), but that would have to be confirmed by posting someone else's key history.
What the other posters and I are saying is that the command is correct, but the result is not what's expected. So we're either all overlooking something or there's a bug (with a crude workaround in my previous post), but that would have to be confirmed by posting someone else's key history.
Re: ^!5:: or ^+5:: not working, a:: or 5:: do!!
I am getting the same results as Nextron. If we are doing a Send {Alt} or Send {Ctrl}, the modifiers used to activate the hotkey are not artificially released. But they are if you do something like Send a{Ctrl}. I experimented a little bit with #MenuMaskKey to see if that made a difference; it did not, but it did show which key events were the MaskKey (vk07 as per example) and which were the Send command.
Re: ^!5:: or ^+5:: not working, a:: or 5:: do!!
@Nextron @Exaskryz
The result must be as expected, but it's not!
I've tried a lot,......there must be a solution!!!!
Friends:) Please let me know that there is some!!!
I'm drunk, doesn't help overall:)
*gg* Bassman.
P.S. 'Sorry it was Sylvester
The result must be as expected, but it's not!
I've tried a lot,......there must be a solution!!!!
Friends:) Please let me know that there is some!!!
I'm drunk, doesn't help overall:)
*gg* Bassman.
P.S. 'Sorry it was Sylvester
Re: ^!5:: or ^+5:: not working, a:: or 5:: do!!
I would recommend my workaround with manually sending the modifier up event, the key and then the down events of the modifier keys because it doesn't account for the actual state of the modifier keys that you may have already released, causing keys to get stuck. You can check for that but that's just wasted effort, because Exaskryz makes two good points:
• AHK does logically release the modifier key if another key besides Alt is sent.
• {vk07} which is sort of a non-defined key is used to mask the physical input of Alt/Win.
Combining those does give an acceptable result: ^!5::Send {vk07}{LAlt}.
• AHK does logically release the modifier key if another key besides Alt is sent.
• {vk07} which is sort of a non-defined key is used to mask the physical input of Alt/Win.
Combining those does give an acceptable result: ^!5::Send {vk07}{LAlt}.
Re: ^!5:: or ^+5:: not working, a:: or 5:: do!!
This is intentional.Exaskryz wrote:If we are doing a Send {Alt} or Send {Ctrl}, the modifiers used to activate the hotkey are not artificially released.
keyboard_mouse.cpp wrote: // Update: If this key is itself a modifier, don't change the state of the other
// modifier keys just for it, since most of the time that is unnecessary and in
// some cases, the extra generated keystrokes would cause complications/side-effects.
Re: ^!5:: or ^+5:: not working, a:: or 5:: do!!
@Nextron
^!5::Send {vk07}{LAlt}m
does not work, the Modify Menu blinks shortly, but does not open it.....
But thanks....
Bassman.
^!5::Send {vk07}{LAlt}m
does not work, the Modify Menu blinks shortly, but does not open it.....
But thanks....
Bassman.
Re: ^!5:: or ^+5:: not working, a:: or 5:: do!!
That's probably because although it now releases the modifiers, it also reapplies them; dismissing the menu. Change the timing by preceding the Send with KeyWait Alt.
Re: ^!5:: or ^+5:: not working, a:: or 5:: do!!
@Nextron
>>Change the timing by preceding the Send with KeyWait Alt
WOW:) I was so fascinated see it working;)
That's the solution!!
For all others:
^!5::
KeyWait Alt
Send {vk07}{LAlt}m
Return
for opening the Menu beginning with "m". This works!!
Thank you very much, Nextron!!
Bassman.
>>Change the timing by preceding the Send with KeyWait Alt
WOW:) I was so fascinated see it working;)
That's the solution!!
For all others:
^!5::
KeyWait Alt
Send {vk07}{LAlt}m
Return
for opening the Menu beginning with "m". This works!!
Thank you very much, Nextron!!
Bassman.
Who is online
Users browsing this forum: tank and 14 guests