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
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
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.
- Yakshongas
- Posts: 590
- Joined: 21 Jan 2020, 08:41
Re: Need a code with alt+x to turn on and off. When I right-click or left-click it make them double clicks.
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 🕹
Need a little more help? Discord : Yakshongas#9893 🕹
Re: Need a code with alt+x to turn on and off. When I right-click or left-click it make them double clicks.
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
- Yakshongas
- Posts: 590
- Joined: 21 Jan 2020, 08:41
Re: Need a code with alt+x to turn on and off. When I right-click or left-click it make them double clicks.
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 🕹
Need a little more help? Discord : Yakshongas#9893 🕹
Who is online
Users browsing this forum: Bing [Bot] and 56 guests