Rank: Advanced Member
Groups: Approved
Joined: 2/16/2021(UTC) Posts: 39 Location: Fier Thanks: 25 times Was thanked: 1 time(s) in 1 post(s)
|
Is there a way to make software to Copy Past with Mouse X1 and X2 button? ex: x1 mouse button to send ctrl+c command x2 mouse button to send ctrl+v command I try this way but not work. Thanks in Advance
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,349 Location: Tampa, FL Thanks: 28 times Was thanked: 416 time(s) in 354 post(s)
|
Have you tried checking Consume Click Event?
Windows may see the entire sequence together, meaning CTRL+C+X1 and not treat it as CTRL+C.
|
1 user thanked Rob for this useful post.
|
|
|
Rank: Advanced Member
Groups: Approved
Joined: 2/16/2021(UTC) Posts: 39 Location: Fier Thanks: 25 times Was thanked: 1 time(s) in 1 post(s)
|
Originally Posted by: Rob Have you tried checking Consume Click Event?
Windows may see the entire sequence together, meaning CTRL+C+X1 and not treat it as CTRL+C. Yes, I that case it will past 2 times Any other idea?
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,349 Location: Tampa, FL Thanks: 28 times Was thanked: 416 time(s) in 354 post(s)
|
Oh yeah, that's because you need to only execute once during the click cycle. Two events happen on click, mouse button down, then mouse button up. Code://Copy
if(click.Down) {
sp.SendModifiedVKeys([vk.LCONTROL], [vk.VK_C]);
}
Code://Paste
if(click.Down) {
sp.SendModifiedVKeys([vk.LCONTROL], [vk.VK_V]);
}
|
1 user thanked Rob for this useful post.
|
|
|
Rank: Advanced Member
Groups: Approved
Joined: 2/16/2021(UTC) Posts: 39 Location: Fier Thanks: 25 times Was thanked: 1 time(s) in 1 post(s)
|
Originally Posted by: Rob Oh yeah, that's because you need to only execute once during the click cycle. Two events happen on click, mouse button down, then mouse button up. Code://Copy
if(click.Down) {
sp.SendModifiedVKeys([vk.LCONTROL], [vk.VK_C]);
}
Code://Paste
if(click.Down) {
sp.SendModifiedVKeys([vk.LCONTROL], [vk.VK_V]);
}
Thanks, those commands did the job (i mean the } at end ) with consume event active... Edited by user Monday, February 22, 2021 11:47:07 AM(UTC)
| Reason: Not specified
|
|
|
|
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