-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if A_GuiEvent = K #261
Comments
Just a hint on how to post code in GitHub comments to make sure it's formatted correctly - |
Based off such a small snippet I can't convert, can you send the full script? |
@Banaanae Thank you!
I found in the AHK forum (I forgot the link) how to translate it, maybe it
can be put into the converter:
LVN_FIRST := 0 - 100
LVN_KEYDOWN := LVN_FIRST - 55
LV.OnNotify(LVN_KEYDOWN, LV_OnKeyDown)
LV_OnKeyDown(LV, lParam)
{
LVKEYDOWN_wVKey := NumGet(lParam, 3 * A_PtrSize, 'UShort')
IF LVKEYDOWN_wVKey=46 ; Del Key
{
}
}
I don't know exactly how it works, but it actually works great for me!
בתאריך יום ה׳, 18 ביולי 2024 ב-6:22 מאת Banaanae <
***@***.***>:
… Based off such a small snippet I can't convert, can you send the full
script?
—
Reply to this email directly, view it on GitHub
<#261 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZFMFTATCALTXGVBSDPQTODZM4YHDAVCNFSM6AAAAABLBBY6NSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZVGIZTOMZSGQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
This code is different to the code in the original post, and is written in v2 Could you please share your v1 script? |
Looks like it may have come from this thread ... https://www.autohotkey.com/boards/viewtopic.php?style=19&f=82&t=114432 |
Indeed this is the link, thanks!
In V2 there is probably a bug that they forgot the command "if A_GuiEvent =
K" that is in V1, and did not give it any replacement in V2.
What I brought is code in V2 that bypasses this problem, and actually does
exactly the same thing, (I wrote this about the DEL key I use in my
script), and as I said, works great for me.
בתאריך יום ו׳, 19 ביולי 2024 ב-12:49 מאת fade2gray <
***@***.***>:
… Looks like it may have come from this thread ...
https://www.autohotkey.com/boards/viewtopic.php?style=19&f=82&t=114432
—
Reply to this email directly, view it on GitHub
<#261 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZFMFTFY6BH6SGZNMLJW2PLZNDOMBAVCNFSM6AAAAABLBBY6NSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZYG44TMMBWGQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I have an AHK V1 script I use there, for the ListView GUI ,if the user pressed the DEL key:
if A_GuiEvent = K
{
IF A_EventInfo=46 ;DEL key
{
}
I don't know how to translate it to V2, nor does the converter translate it in a way that works. Can someone please help me with it?
The text was updated successfully, but these errors were encountered: