Search found 296 matches
- 10 Feb 2023, 17:05
- Forum: Ask for Help (v1)
- Topic: Distinguish between single and double click
- Replies: 3
- Views: 360
Re: Distinguish between single and double press
It wasn't really what I indented, sorry for the confusion. Currently, I use the following in order to detect a double key press: If (A_ThisHotkey = A_PriorHotkey and A_TimeSincePriorHotkey < 200) The problem with this, is that the script won't "wait" for the double press to happen or not happen, it ...
- 10 Feb 2023, 12:52
- Forum: Ask for Help (v1)
- Topic: Distinguish between single and double click
- Replies: 3
- Views: 360
Distinguish between single and double click
Hey!
How can I do something like:
- If single click: do A
- If double click: do B and don't do A
I guess the script has to wait the time before deciding if it's double or single, but I can't figure out how to stop it there and then do the detection later.
Thanks!
How can I do something like:
- If single click: do A
- If double click: do B and don't do A
I guess the script has to wait the time before deciding if it's double or single, but I can't figure out how to stop it there and then do the detection later.
Thanks!
- 06 Jan 2023, 15:09
- Forum: Ask for Help (v1)
- Topic: Mouse movement to action script bug
- Replies: 16
- Views: 735
Re: Mouse movement to action script bug
So how can I fix that?
- 06 Jan 2023, 13:44
- Forum: Ask for Help (v1)
- Topic: Mouse movement to action script bug
- Replies: 16
- Views: 735
Re: Mouse movement to action script bug
If I leave MButton, keep Alt + Ctrl down and re-press MButton, the hotkey wont execute again. Any idea why?
- 06 Jan 2023, 13:28
- Forum: Ask for Help (v1)
- Topic: Mouse movement to action script bug
- Replies: 16
- Views: 735
Re: Mouse movement to action script bug
It should turn Ctrl + Alt + MButton + Mouse movement to !wheelup and down.
- 06 Jan 2023, 12:20
- Forum: Ask for Help (v1)
- Topic: Mouse movement to action script bug
- Replies: 16
- Views: 735
Re: Mouse movement to action script bug
Full script here, it just doesn't work as expected. It starts fine but then you have to release and re-press the hotkey in order for it to work again. I have no idea why. It works fine with MButton alone. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn...
- 06 Jan 2023, 12:00
- Forum: Ask for Help (v1)
- Topic: Mouse movement to action script bug
- Replies: 16
- Views: 735
Re: Mouse movement to action script bug
Using the hotkey as ^!MButton worked fine for you?
- 06 Jan 2023, 11:25
- Forum: Ask for Help (v1)
- Topic: Mouse movement to action script bug
- Replies: 16
- Views: 735
Re: Mouse movement to action script bug
SendMode Input ^!mbutton:: current := 0 MouseGetPos,, y1 while (GetKeyState("MButton", "P")) { MouseGetPos,, y2 offset := (y2-y1)//10 ; set scroll per pixel if (current != offset) { count := offset-current loop % Abs(count) Send % count > 0 ? "!{WheelUp}" : "!{WheelDown}" current := Offset } Sleep ...
- 06 Jan 2023, 11:19
- Forum: Ask for Help (v1)
- Topic: Mouse movement to action script bug
- Replies: 16
- Views: 735
Re: Mouse movement to action script bug
The mode is already input.
- 05 Jan 2023, 22:57
- Forum: Ask for Help (v1)
- Topic: Mouse movement to action script bug
- Replies: 16
- Views: 735
- 05 Jan 2023, 20:49
- Forum: Ask for Help (v1)
- Topic: Mouse movement to action script bug
- Replies: 16
- Views: 735
Mouse movement to action script bug
The following script it not working properly when the hotkey ^!mbutton is being used. Any other hotkey that doesn't include ctrl or alt works fine. Any idea how to fix this without changing it to a different hotkey? ^!mbutton:: current := 0 MouseGetPos,, y1 while (GetKeyState("MButton", "P")) { Mous...
- 05 Jan 2023, 12:52
- Forum: Ask for Help (v1)
- Topic: Turn one of 2 monitors off
- Replies: 2
- Views: 218
Turn one of 2 monitors off
Hey
I'm using 2 monitors and I'd like to turn only one of them off before I turn off my computer.
Could you please help me with a code for that?
P.S I will need to be able to distinguish between the 2 monitors.
I'm using 2 monitors and I'd like to turn only one of them off before I turn off my computer.
Could you please help me with a code for that?
P.S I will need to be able to distinguish between the 2 monitors.
- 20 Dec 2022, 11:36
- Forum: Ask for Help (v1)
- Topic: Slow cursor down on one monitor Topic is solved
- Replies: 3
- Views: 300
Re: Slow cursor down on one monitor Topic is solved
Thanks so much!
Sorry I forgot to mention that it's a vertical setup, so the change should be in the Y axis. Could you alter the code with that in mind?
Sorry I forgot to mention that it's a vertical setup, so the change should be in the Y axis. Could you alter the code with that in mind?
- 20 Dec 2022, 00:21
- Forum: Ask for Help (v1)
- Topic: Slow cursor down on one monitor Topic is solved
- Replies: 3
- Views: 300
Slow cursor down on one monitor Topic is solved
Hey
I'm using a couple of monitors and since only one of them is scaled, the cursor is moving much faster on this monitor than the others.
Is it possible to alter that with a script? So each time the cursor moves to the scaled monitor, it's speed will be slowed down a little.
Thanks!
I'm using a couple of monitors and since only one of them is scaled, the cursor is moving much faster on this monitor than the others.
Is it possible to alter that with a script? So each time the cursor moves to the scaled monitor, it's speed will be slowed down a little.
Thanks!
- 19 Dec 2022, 20:16
- Forum: Ask for Help (v1)
- Topic: If LButton was pressed in the last () seconds
- Replies: 6
- Views: 385
Re: If LButton was pressed in the last () seconds
You are right, but I would like to prevent remapping LButton completely like you did, even if it's still working normally.
On the other hand - if I could "catch" the left button while a certain subroutine is running, it could solve my problem too.
On the other hand - if I could "catch" the left button while a certain subroutine is running, it could solve my problem too.
- 19 Dec 2022, 20:10
- Forum: Ask for Help (v1)
- Topic: If LButton was pressed in the last () seconds
- Replies: 6
- Views: 385
Re: If LButton was pressed in the last () seconds
Interesting..
I use the following method but it tends to not be reliable (it doesn't respond fast enough sometimes) for some reason:
What do you think?
I use the following method but it tends to not be reliable (it doesn't respond fast enough sometimes) for some reason:
Code: Select all
Clicker := True
msgbox, test
Clicker := False
#If Clicker
LButton::
Click := True
Return
#If
- 19 Dec 2022, 19:20
- Forum: Ask for Help (v1)
- Topic: If LButton was pressed in the last () seconds
- Replies: 6
- Views: 385
If LButton was pressed in the last () seconds
Hey, how can I choose a specific button like LButton and then do something like:
If LButton was pressed in the last 5 second
do 1 2 3..
Hopefully as 1 routine with no timers or subroutines.
Thanks
If LButton was pressed in the last 5 second
do 1 2 3..
Hopefully as 1 routine with no timers or subroutines.
Thanks
- 19 Dec 2022, 18:27
- Forum: Ask for Help (v1)
- Topic: Expression + Function ifs in Hotkey Topic is solved
- Replies: 16
- Views: 710
Re: Expression + Function ifs in Hotkey Topic is solved
Oh yes, I think that is it.
Could you explain how it's done?
What is the effect of " ` "?
Could you explain how it's done?
What is the effect of " ` "?
- 19 Dec 2022, 18:05
- Forum: Ask for Help (v1)
- Topic: Expression + Function ifs in Hotkey Topic is solved
- Replies: 16
- Views: 710
- 19 Dec 2022, 17:38
- Forum: Ask for Help (v1)
- Topic: Expression + Function ifs in Hotkey Topic is solved
- Replies: 16
- Views: 710
Re: Expression + Function ifs in Hotkey Topic is solved
Let's say this function returns the right numbers:
Now this works:
Where do I add the statement ?
Code: Select all
TEST := Func("Rolls").Bind(CX1, Y1, X2, Y2)
Code: Select all
Hotkey, If, % TEST