Help with Autoclicker

GPC2 script programming for Titan Two. Code examples, questions, requests.

Help with Autoclicker

Postby brendan26016 » Thu Jun 20, 2019 10:54 pm

Im pretty new to all of this and got a titan 2 last week for my Xbox one

I was looking around for a auto clicker that toggles so when i turn it on it clicks LT every second but i cant find any, I found a few but they were extremely complicated to understand.

I was wondering if anyone could help me with a script that could do this???
User avatar
brendan26016
Private First Class
Private First Class
 
Posts: 2
Joined: Thu Jun 20, 2019 10:49 pm

Re: Help with Autoclicker

Postby Mad » Fri Jun 21, 2019 2:39 am

Not sure what button you wanted to activate the toggle so i put it as Dpad left (BUTTON_12) you can press F1 in Gtuner to get a list of buttons and change it if needed.

Code: Select all
bool toggle;
 
main {
    if(event_active(BUTTON_12)) toggle = !toggle;
 
    if(toggle) combo_run(LT);
}
 
combo LT {
  set_val(BUTTON_8, 100);
  wait(100);
  set_val(BUTTON_8, 0);
  wait(900);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am

Re: Help with Autoclicker

Postby brendan26016 » Sun Jun 23, 2019 3:59 pm

Thankyou i appreciate the help!!
User avatar
brendan26016
Private First Class
Private First Class
 
Posts: 2
Joined: Thu Jun 20, 2019 10:49 pm

Re: Help with Autoclicker

Postby SloppyChicken » Tue Aug 13, 2019 8:43 am

Would this work for the TItan One as well? I just bought one and i'm also new to coding. This is the first Xbox One auto clicker that I found, but then I realized it was for the Titan 2.
User avatar
SloppyChicken
Private
Private
 
Posts: 1
Joined: Tue Aug 13, 2019 8:41 am

Re: Help with Autoclicker

Postby Mad » Tue Aug 13, 2019 9:28 am

SloppyChicken wrote:Would this work for the TItan One as well? I just bought one and i'm also new to coding. This is the first Xbox One auto clicker that I found, but then I realized it was for the Titan 2.


Welcome, I have modified it below for the T1, But please post in the T1 sub forum next time. :smile0201:

Code: Select all
// Titan one version
 
int toggle;
 
main {
  if(event_press(XB1_LEFT)) toggle = !toggle;
  if(toggle) combo_run(LT);
}
 
combo LT {
  set_val(XB1_LT, 100);
  wait(100);
  set_val(XB1_LT, 0);
  wait(900);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am


Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 125 guests