Overwatch Left Mouse Continuously Click Interrupts

  • Members
  • 31 posts
  • Last active: Sep 25 2008 11:17 PM
  • Joined: 28 May 2006

Hello, I'm new as you can see this is my first post. I wasnt sure what the title should be exactly. :oops:

My Objectives to this project:
Left mouse button down double clicks. A keyboard key to turn on and off the function of the script, with 1 key as interrupt, in which nulls the script from running and allows left mouse to function normally.

Example:
Key 6/^ is an interrupt (but not held) in which allow left mouse down to drag and drop with the ability of on release of left mouse script becomes active again. Key 1/! reinstates the script, if no drag and drop is performed.

So far I have been successful in the double click and the setting the on and off key, which was pretty straight forward. But I am not experienced enough to figure out how to set a interrupt that reinstates on left mouse release or pressing another key such as 1/!. I will continue to read the forums, help notes, tutorials in hope to have success.

Thank you for your time and I hope I gave a good enough description to get some assistance. I'm sorry if I did not use the proper format or terms.

AP

  • Back to top

Knightx

  • Members
  • 22 posts
  • Last active: Jun 03 2006 03:39 PM
  • Joined: 05 Apr 2006

id help if u tell me wat u wanna do in easy statements lol

  • Back to top

Knightx

  • Members
  • 22 posts
  • Last active: Jun 03 2006 03:39 PM
  • Joined: 05 Apr 2006

did u mean

script keeps Double Left MouseClicking continuously and u set a key to stop/start anytime?

if so..

D::Pause
Loop
{
MouseClick, Left
MouseClick, Left
}
return

will do doubleclicks and if u push D, it stops, push again and goes on

  • Back to top

AbsolutePressure

  • Members
  • 31 posts
  • Last active: Sep 25 2008 11:17 PM
  • Joined: 28 May 2006

Sort of. I'm trying to think of the better terms to describe. I want my left mouse to double click everytime it is pressed. But I want the ability to press and release number 6 (not numpad6) to interrupt the double click and make left mouse go back to single click for only one cycle then return back to a double click when the left mouse is released. I do not want to have to hold number 6 just push it one time. I also want number 1 to return it to double click if I do not single click after pressing 6 key.

I'm sorry I lack the terms.

  • Back to top

Eleria

  • Members
  • 98 posts
  • Last active: Jul 05 2007 02:51 AM
  • Joined: 09 May 2006
6:: Suspend, Toggle ;It is  a built-in function which toggles on/off all the hotkeys Return   Lbutton:: MouseClick, Left Sleep 100 MouseClick, Left Return

Something like that ?

Posted Image

  • Back to top

Knightx

  • Members
  • 22 posts
  • Last active: Jun 03 2006 03:39 PM
  • Joined: 05 Apr 2006
Loop { if UserInput = LButton    GoSub, DoubleClick else if UserInput = 6    GoSub, SingleClick return }  DoubleClick: MouseClick, left, , , 2 return  SingleClick: MouseClick, left, , ,1 return            

didnt try but it works? plz try

  • Back to top

AbsolutePressure

  • Members
  • 31 posts
  • Last active: Sep 25 2008 11:17 PM
  • Joined: 28 May 2006

Resolved, between the last post and PM sent. Thank you so much for helping me. :D

  • Back to top

corrupt

  • Members
  • 2558 posts
  • Last active: Nov 01 2014 03:23 PM
  • Joined: 29 Dec 2004

Here's another method that only sends the second click if the mouse is held down for less than 500ms (this value can be altered):

~LButton::  timedown = %A_TickCount%  Return    ~LButton Up::  If ((A_TickCount - timedown) < 500)  Click  Return

  • Back to top

AbsolutePressure

  • Members
  • 31 posts
  • Last active: Sep 25 2008 11:17 PM
  • Joined: 28 May 2006

Thanks also corrupt. I copied everyones suggestions, and made myself some notes for future projects. These post really help me grasp the whole concept. The help file is very useful, but some places lack examples which made it difficult for the newcomer like myself to grasp the code snip. Overall with help file and you experienced coders I'm learning quickly. Maybe one day I will be able to give back to this fine community.

  • Back to top

summerscrushe.blogspot.com

Source: https://www.autohotkey.com/board/topic/9190-mouse-clicks-with-keyboard-interrupts/

0 Response to "Overwatch Left Mouse Continuously Click Interrupts"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel