StrokesPlus.net
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Sherif Aliti  
#1 Posted : Sunday, February 21, 2021 3:56:37 AM(UTC)
Sherif Aliti

Rank: Member

Reputation:

Groups: Approved
Joined: 2/16/2021(UTC)
Posts: 10
Albania
Location: Fier

Thanks: 6 times
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.

Ctrl C

Ctrl V

Thanks in Advance






Rob  
#2 Posted : Sunday, February 21, 2021 10:42:50 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 865
United States
Location: Tampa, FL

Thanks: 20 times
Was thanked: 222 time(s) in 193 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.
thanks 1 user thanked Rob for this useful post.
Sherif Aliti on 2/22/2021(UTC)
Sherif Aliti  
#3 Posted : Monday, February 22, 2021 2:39:40 AM(UTC)
Sherif Aliti

Rank: Member

Reputation:

Groups: Approved
Joined: 2/16/2021(UTC)
Posts: 10
Albania
Location: Fier

Thanks: 6 times
Originally Posted by: Rob Go to Quoted Post
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?

Rob  
#4 Posted : Monday, February 22, 2021 3:56:08 AM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 865
United States
Location: Tampa, FL

Thanks: 20 times
Was thanked: 222 time(s) in 193 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]);
}

thanks 1 user thanked Rob for this useful post.
Sherif Aliti on 2/22/2021(UTC)
Sherif Aliti  
#5 Posted : Monday, February 22, 2021 4:46:01 AM(UTC)
Sherif Aliti

Rank: Member

Reputation:

Groups: Approved
Joined: 2/16/2021(UTC)
Posts: 10
Albania
Location: Fier

Thanks: 6 times
Originally Posted by: Rob Go to Quoted Post
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 4:47:07 AM(UTC)  | Reason: Not specified

Users browsing this topic
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.