Search found 12 matches

by busymind
21 May 2024, 10:02
Forum: Ask for Help (v1)
Topic: Need a double click script Topic is solved
Replies: 11
Views: 684

Re: Need a double click script Topic is solved

Then: #InstallMouseHook #IF GetKeyState("XButton1","P") *XButton2:: #IF GetKeyState("XButton2","P") *XButton1:: #IF Send, {Blind}{XButton1 Up}{XButton2 Up} SetTimer, double_clicking, 200 double_clicking: If GetKeyState("XButton1","P") And GetKeyState("XButton2","P") Click 2 Else SetTimer, double_cl...
by busymind
21 May 2024, 07:15
Forum: Ask for Help (v1)
Topic: Need a double click script Topic is solved
Replies: 11
Views: 684

Re: Need a double click script Topic is solved

Rohwedder wrote:
21 May 2024, 04:14
I don't know the behavior of a physical double-click mouse button, but I assume it doesn't continuously send double-clicks when held down.
It does continuously send double-clicks. At least my previous mouse worked like that, which is what I need...
by busymind
21 May 2024, 06:54
Forum: Ask for Help (v1)
Topic: Need a double click script Topic is solved
Replies: 11
Views: 684

Re: Need a double click script Topic is solved

I don't know the behavior of a physical double-click mouse button, but I assume it doesn't continuously send double-clicks when held down: Try: #Persistent #InstallMouseHook #IF GetKeyState("XButton1","P") *XButton2::Send, {Blind}{XButton1 Up}{LButton 2} #IF GetKeyState("XButton2","P") *XButton1::S...
by busymind
21 May 2024, 01:25
Forum: Ask for Help (v1)
Topic: Need a double click script Topic is solved
Replies: 11
Views: 684

Re: Need a double click script Topic is solved

Maybe this the other app doesn't like that the XButton1+2 are pressed? Try: #Persistent #InstallMouseHook SetTimer, double_clicking, 200 double_clicking: If GetKeyState("XButton1","P") And GetKeyState("XButton2","P") { Send, {Blind}{XButton1 Up}{XButton2 Up} Click 2 } Return Yep, this one works in ...
by busymind
20 May 2024, 22:52
Forum: Ask for Help (v1)
Topic: Need a double click script Topic is solved
Replies: 11
Views: 684

Re: Need a double click script Topic is solved

CoffeeChaton wrote:
20 May 2024, 19:10
Try running the script with administrator rights?
Didn't work.
by busymind
20 May 2024, 11:59
Forum: Ask for Help (v1)
Topic: Need a double click script Topic is solved
Replies: 11
Views: 684

Re: Need a double click script Topic is solved

Hallo, perhaps?: #Persistent #InstallMouseHook SetTimer, double_clicking, 200 double_clicking: If GetKeyState("XButton1","P") And GetKeyState("XButton2","P") Click 2 Return I actually did mix up some pieces of code and made a script really similar to what you posted, and it works fine, BUT not ever...
by busymind
20 May 2024, 06:54
Forum: Ask for Help (v1)
Topic: Need a double click script Topic is solved
Replies: 11
Views: 684

Need a double click script Topic is solved

Hi. I need a script that keeps double-clicking as long as I'm holding down the Mouse's forward AND backward buttons at the same time. Can anyone please give me a script that does that? I really need that and I couldn't put more time into making it, it kept not working the way I wanted, I gave up cau...
by busymind
14 Apr 2024, 16:43
Forum: Ask for Help (v1)
Topic: Lock mouse movement to only allow horizontal movement (vertical too if you want) Topic is solved
Replies: 25
Views: 3986

Re: Lock mouse movement to only allow horizontal movement (vertical too if you want) Topic is solved

Try this: #Requires AutoHotkey v1 ~LShift:: ~LCtrl:: BlockInput, MouseMove ToolTip mouse movement restricted. ClipCursor(A_ThisHotkey) BlockInput, MouseMoveOff KeyWait, % SubStr(A_ThisHotkey, 2) ClipCursor() ToolTip Return ClipCursor(hk := "") { if !hk DllCall("ClipCursor", "Ptr", 0) else { CoordMo...
by busymind
14 Apr 2024, 15:17
Forum: Ask for Help (v1)
Topic: Lock mouse movement to only allow horizontal movement (vertical too if you want) Topic is solved
Replies: 25
Views: 3986

Re: Lock mouse movement to only allow horizontal movement (vertical too if you want) Topic is solved

Fixed: #Requires AutoHotkey v1 ~LShift:: ~LCtrl:: ToolTip mouse movement restricted. ClipCursor(A_ThisHotkey) KeyWait, % SubStr(A_ThisHotkey, 2) ClipCursor() ToolTip Return ClipCursor(hk := "") { if !hk DllCall("ClipCursor", "Ptr", 0) else { CoordMode, Mouse MouseGetPos, X, Y VarSetCapacity(RECT, 1...
by busymind
13 Apr 2024, 18:38
Forum: Ask for Help (v1)
Topic: Lock mouse movement to only allow horizontal movement (vertical too if you want) Topic is solved
Replies: 25
Views: 3986

Re: Lock mouse movement to only allow horizontal movement (vertical too if you want) Topic is solved

Fixed: #Requires AutoHotkey v1 ~LShift:: ~LCtrl:: ToolTip mouse movement restricted. ClipCursor(A_ThisHotkey) KeyWait, % SubStr(A_ThisHotkey, 2) ClipCursor() ToolTip Return ClipCursor(hk := "") { if !hk DllCall("ClipCursor", "Ptr", 0) else { CoordMode, Mouse MouseGetPos, X, Y VarSetCapacity(RECT, 1...
by busymind
13 Apr 2024, 14:47
Forum: Ask for Help (v1)
Topic: Lock mouse movement to only allow horizontal movement (vertical too if you want) Topic is solved
Replies: 25
Views: 3986

Re: Lock mouse movement to only allow horizontal movement (vertical too if you want) Topic is solved

I tested the script with hotkeys XButton1, XButton2, indeed with these keys the script does not work correctly, I don't know why. Try this one: ~LShift:: ~LCtrl:: ToolTip mouse movement restricted. ClipCursor(A_ThisHotkey) KeyWait, % SubStr(A_ThisHotkey, 2) ClipCursor() ToolTip Return ClipCursor(hk...
by busymind
12 Apr 2024, 12:09
Forum: Ask for Help (v1)
Topic: Lock mouse movement to only allow horizontal movement (vertical too if you want) Topic is solved
Replies: 25
Views: 3986

Re: Lock mouse movement to only allow horizontal movement (vertical too if you want) Topic is solved

Try this: CoordMode, Mouse SetMouseDelay, -1 ~LShift:: ; horizontal moving ~LCtrl:: ; vertical moving key := SubStr(A_ThisHotkey, 2) MouseGetPos, X_Mouse, Y_Mouse Hook := new WindowsHook(WH_MOUSE_LL := 14, "LowLevelMouseProc", key = "LCtrl" ? X_Mouse : 65536 | Y_Mouse) KeyWait, % key Hook := "" Ret...

Go to advanced search