Need a code with alt+x to turn on and off. When I right-click or left-click it make them double clicks. Topic is solved

Ask gaming related questions
wowman
Posts: 3
Joined: 23 Sep 2020, 04:52

Need a code with alt+x to turn on and off. When I right-click or left-click it make them double clicks.  Topic is solved

Post by wowman » 23 Sep 2020, 05:01

Need a code with alt+x to turn on and off. When I right-click or left-click it make them double clicks.
Last edited by wowman on 23 Sep 2020, 12:01, edited 1 time in total.

User avatar
Yakshongas
Posts: 591
Joined: 21 Jan 2020, 08:41
Facebook: Yakshongas

Re: Need a code with alt+x to turn on and off. When I right-click or left-click it make them double clicks.

Post by Yakshongas » 23 Sep 2020, 07:20

Code: Select all

SetMouseDelay, -1
SetBatchLines, -1

!x::Gosub, Func

#If, (Toggle = 1)
    ~$LButton::SendInput, {LButton}
    ~$RButton::SendInput, {RButton}
#If

Func:
    Toggle := !Toggle
    Switch Toggle
    {
        Case 1:
            Gui, InDc:New, -Caption +LastFound +AlwaysOnTop
            Gui, InDc:Color, 00FF00
            Gui, InDc:Add, Text,, Double Cliking Enabled
            Gui, InDc:Show, X0 Y0 NA
            Sleep, 2000
            Gui, InDc:Hide
        Return

        Case 0:
            Gui, InDc:New, -Caption +LastFound +AlwaysOnTop
            Gui, InDc:Color, FF0000
            Gui, InDc:Add, Text,, Double Clicking Disabled
            Gui, InDc:Show, X0 Y0 NA
            Sleep, 2000
            Gui, InDc:Hide
        Return
    }
Return
Please mark your topics as solved if you don't need any further help. ✅

Need a little more help? Discord : Yakshongas#9893 🕹

wowman
Posts: 3
Joined: 23 Sep 2020, 04:52

Re: Need a code with alt+x to turn on and off. When I right-click or left-click it make them double clicks.

Post by wowman » 23 Sep 2020, 11:56

Bro its cool but I need double click as I click once i have 1 CPS, with script i click 1 I get 2 CPS if you can do that, it will be awsome please :)

User avatar
Yakshongas
Posts: 591
Joined: 21 Jan 2020, 08:41
Facebook: Yakshongas

Re: Need a code with alt+x to turn on and off. When I right-click or left-click it make them double clicks.

Post by Yakshongas » 23 Sep 2020, 12:58

Code: Select all

!x::Gosub, Func

#If, (Toggle = 1)
    LButton::Click, 2
    RButton::Click, Right, 2
#If

Func:
    Toggle := !Toggle
    Switch Toggle
    {
        Case 1:
            Gui, InDc:New, -Caption +LastFound +AlwaysOnTop
            Gui, InDc:Color, 00FF00
            Gui, InDc:Add, Text,, Double Cliking Enabled
            Gui, InDc:Show, X0 Y0 NA
            Sleep, 2000
            Gui, InDc:Hide
        Return

        Case 0:
            Gui, InDc:New, -Caption +LastFound +AlwaysOnTop
            Gui, InDc:Color, FF0000
            Gui, InDc:Add, Text,, Double Clicking Disabled
            Gui, InDc:Show, X0 Y0 NA
            Sleep, 2000
            Gui, InDc:Hide
        Return
    }
Return
Please mark your topics as solved if you don't need any further help. ✅

Need a little more help? Discord : Yakshongas#9893 🕹

Post Reply

Return to “Gaming”