Difference between KeyWait and keybinds for up/down

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
ima18h
Posts: 4
Joined: 18 Mar 2023, 10:42
Contact:

Difference between KeyWait and keybinds for up/down

Post by ima18h » 20 Mar 2023, 05:49

Is there a difference between using keywait and using something like this:

MButton::Send {Blind}{Ctrl Down}{Shift Down}
MButton Up::Send {Blind}{Shift Up}{Ctrl Up}

Does keywait use more resources or?

[Mod edit: Based on posted code, moved topic to AHK v1 help.]

off
Posts: 176
Joined: 18 Nov 2022, 21:54

Re: Difference between KeyWait and keybinds for up/down

Post by off » 20 Mar 2023, 06:03

After testing simple script like

Code: Select all

~LButton Up::ToolTip, Left Button Up ; 0.03

~LButton:: ; 0.03
KeyWait, LButton
ToolTip, Left Button Up
Return
both executing tooltip at 0.03s. Both are same.
My Creations
IMG2HotString - Send image file easily with your hotstring!
CtrlSend - A small solution for sending keys to window in background that doesn't accept ControlSend's key
ControlProcess

swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: Difference between KeyWait and keybinds for up/down

Post by swagfag » 20 Mar 2023, 07:00

read viewtopic.php?f=74&t=19745
the same problems apply to KeyWait
which is why i never use it

User avatar
mikeyww
Posts: 27324
Joined: 09 Sep 2014, 18:38

Re: Difference between KeyWait and keybinds for up/down

Post by mikeyww » 20 Mar 2023, 08:11

Yes, these can be problems when multiple keys are being pressed, but for many other situations, they are fine. In some situations, the key-up hotkey is not what is needed. It depends on the circumstance.

Post Reply

Return to “Ask for Help (v1)”