The script on the left mouse button

Forum to discuss the scripts, configs and connection of XIM with the Titan devices.

Moderator: antithesis

The script on the left mouse button

Postby npo100a4ok » Tue Dec 13, 2016 1:26 pm

Hello.
I just bought a Titan one and I'm a noob)))).
Is it possible to create such a script:
When pressed and held down the left mouse button (R2), it runs 1 second.
Next, automatically interrupted for 0.5 seconds (as if the left mouse button is released - is lifted up, but I did not let go of the left mouse button and keep it held down).
I still continue to hold the left mouse button pressed.
After this break of 0.5 seconds restarts the action of pressing the left mouse button down on all the time that I'm holding down the left mouse button.
Thank you all.
Sorry for my bad English.
But I hope you understand what I wrote.
User avatar
npo100a4ok
Private First Class
Private First Class
 
Posts: 2
Joined: Tue Dec 13, 2016 1:06 pm

Re: The script on the left mouse button

Postby J2Kbr » Fri Dec 23, 2016 11:29 am

Welcome to our forums. the script below should do what you described.

Code: Select all
 
main {
    if(get_val(PS4_R2)) {
        combo_run(AutoR2);
    }
}
 
combo AutoR2 {
    // When pressed and held down the left mouse button (R2), it runs 1 second.
    set_val(PS4_R2, 100);
    wait(1000);
 
    // Next, automatically interrupted for 0.5 seconds
    set_val(PS4_R2, 0);
    wait(500);
}
 
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm


Return to XIM Apex, XIM4, XIM Edge with Titan devices

Who is online

Users browsing this forum: Google [Bot] and 53 guests