#Cookie Clicker

28 messages · Page 1 of 1 (latest)

languid crag
#

Keybinding issue

languid crag
#

This code works

#

but if you click the auto clicker starts (then turns off really click because it only checks if it clicks)

#

I need it to check if LMB is being held down

#

not just tapped

#

any ideas?

languid crag
#

If someone can fix this bug I'll cashapp you $20

#

I'm just very annonyed I've been trying to fix it for hours

devout sparrow
#

this community doesn't accept payment for help

#
    // Check if the left mouse button is pressed and the previous state was released
    if ret == KEY_PRESSED && !mouseButtonState {
#

is this what you want?

languid crag
devout sparrow
#

that is your current code

#

don't you specifically want it to return true when it is held down?

languid crag
#

Crap I sent the wrong code

languid crag
#

This is the code I meant to send

#

It works when you hold down L

#

but no matter what I do if I hold down LMB the best outcome is it'll just double click

devout sparrow
#

and what behavior do you want exactly?

languid crag
#

If LMB is held down. it auto clicks (Around 12 clicks per second. But that function is already taken care of)

#

Problem is it only works when the "L" key is held down

#

I can't change it to LMB no matter what method I tried

#

(f4 toggles it on and off)

devout sparrow
#

are you using the right key code for LMB?

#

i thought lmb was 0x01