Rank: Newbie
Groups: Approved
Joined: 11/5/2020(UTC) Posts: 2 Location: Toronto Thanks: 1 times
|
Hi S+ skilled users, I've been using S+ basic functions for a while and there is something I can't get to work :
I would like to have [PAGE DOWN] virtual key continuously pressed while I keep the X1 mouse button down, for instance.
Some sort of :
While( sp.ConsumePhysicalInput(true); ) { sp.SendVKeyDown(vk.NEXT); sp.Sleep(87); sp.SendVKeyUp(vk.NEXT); } } else { sp.ConsumePhysicalInput(false); }
Please, whoever answers, be clear (for all beginners !) about what to fill : Steps ? Script ? As I didn't quite clear things up...
Thank you !
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,359 Location: Tampa, FL Thanks: 28 times Was thanked: 419 time(s) in 356 post(s)
|
Try this. Code:// I have this under Global Actions > Mouse Events > X1 Click
// I also have the Consume Click Event box checked so the button
// doesn't get sent to applications
if(click.Down)
{
// If this is the X1 button down event (not up/release)
// 0 = start immediately
// 100 = execute the script (Page Down) every 100 milliseconds
sp.CreateTimer("PageDown", 0, 100, `sp.SendVKey(vk.NEXT);`);
}
else
{
//Release, stop timer
sp.DeleteTimer("PageDown");
}
|
1 user thanked Rob for this useful post.
|
|
|
Rank: Newbie
Groups: Approved
Joined: 11/5/2020(UTC) Posts: 2 Location: Toronto Thanks: 1 times
|
Oh man thank you !!! I dare not say for how long I've been trying...
A little note for Logitech users: we have to install the 'kind of mandatory' Logi Options software. => to have the scripts to work you must keep defaults settings. X1 and X2 to back / forward for instance.
Will keep fooling around scripts, hope I will publish something useful here someday.
Cheers
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The StrokesPlus.net Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close