Lbutton command ruins regular click

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Lbutton command ruins regular click

Re: Lbutton command ruins regular click

Post by evilC » 22 Jan 2018, 08:42

It does not recognize lbutton as a click because you blocked lbutton.
lbutton:: will fire the code and block lbutton.
~lbutton:: will fire the code and NOT block lbutton.

Also I doubt you want this code

Code: [Select all] [Expand]GeSHi © Codebox Plus


On the 3rd press of lbutton, no key will be sent. All it will do is set lbutton_count to 0.
Also, the code is CPU inefficient, as you do not use if/else. If lbutton_count is 1, it cannot also be 2, so no point in repeating the if check.

I think you probably want:

Code: [Select all] [Expand]GeSHi © Codebox Plus



Hell, you do not even need the if blocks anyway, just do

Code: [Select all]GeSHi © Codebox Plus

lbutton::	
lbutton_count++
If (lbutton_count > 2) {
lbutton_count := 1
}
Send % 4 - lbutton_count
Return

Re: Lbutton command ruins regular click

Post by BoBo » 22 Jan 2018, 03:29

Code: [Select all] [Expand]GeSHi © Codebox Plus

Not tested.

Lbutton command ruins regular click

Post by Eros » 22 Jan 2018, 03:15

Hello, I'm wondering why when I use the following script windows no longer recognizes my left mouse button down as a click. Why?

Code: [Select all] [Expand]GeSHi © Codebox Plus



Also, this pause doesn't work and I'd like to know why as well. I'm trying to make one keybind to turn it on or off on middle mouse wheel down. Main problem is the click though. Ty in advance!

Top