Auto Key pressing every few seconds
6 posts
• Page 1 of 1
Auto Key pressing every few seconds
Hello guys,
The description says it all, i need a simple script for my titan one on ps4 that presses the circle button every 20 or 30 seconds.
Easy to activate and deactivate, like pressing L3 for on/off
Thank you very much
The description says it all, i need a simple script for my titan one on ps4 that presses the circle button every 20 or 30 seconds.
Easy to activate and deactivate, like pressing L3 for on/off
Thank you very much
-
K240X - Sergeant First Class
- Posts: 20
- Joined: Fri May 12, 2017 9:00 pm
Re: Auto Key pressing every few seconds
This script will do what you described.
- Code: Select all
int toggle;
main {
if(event_press(PS4_L3)) {
toggle = !toggle;
}
if(toggle) {
combo_run(PressCircleEvery20seconds);
}
}
combo PressCircleEvery20seconds {
set_val(PS4_CIRCLE, 100);
wait(100);
wait(4000);
wait(4000);
wait(4000);
wait(4000);
wait(4000);
}
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: Auto Key pressing every few seconds
Thank you so much my friend
-
K240X - Sergeant First Class
- Posts: 20
- Joined: Fri May 12, 2017 9:00 pm
Re: Auto Key pressing every few seconds
J2Kbr,
The script works perfectly, can i ask you to add a led on/off function?
Like: ON turns green, and OFF turns it red colour.
Thank you again
The script works perfectly, can i ask you to add a led on/off function?
Like: ON turns green, and OFF turns it red colour.
Thank you again
-
K240X - Sergeant First Class
- Posts: 20
- Joined: Fri May 12, 2017 9:00 pm
Re: Auto Key pressing every few seconds
- Code: Select all
int toggle;
main {
if(event_press(PS4_L3)) {
toggle = !toggle;
if(toggle) set_ledx(LED_3, 0);
else set_ledx(LED_2, 0);
}
if(toggle) {
combo_run(PressCircleEvery20seconds);
}
}
combo PressCircleEvery20seconds {
set_val(PS4_CIRCLE, 100);
wait(100);
wait(4000);
wait(4000);
wait(4000);
wait(4000);
wait(4000);
}
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: Auto Key pressing every few seconds
Thank you J2.
-
K240X - Sergeant First Class
- Posts: 20
- Joined: Fri May 12, 2017 9:00 pm
6 posts
• Page 1 of 1
Return to GPC1 Script Programming
Who is online
Users browsing this forum: No registered users and 113 guests