Ctrl + C / Ctrl + V not working

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Robstercraw
Posts: 14
Joined: 20 Apr 2021, 18:14

Ctrl + C / Ctrl + V not working

20 Apr 2021, 18:16

my ctrl c and v stopped working and I've tried everything I could find to fix it. Is it possible to run a script that would make it do the same thing?
User avatar
mikeyww
Posts: 26652
Joined: 09 Sep 2014, 18:38

Re: ctrl + c ctrl + v not working

20 Apr 2021, 18:28

That's unusual-- would probably investigate the cause such as conflicting software, global keyboard shortcuts set elsewhere, etc. Try closing all programs and non-Windows tray icons, and then trying again.

Code: Select all

F3::Send ^c
F4::Send ^v
Robstercraw
Posts: 14
Joined: 20 Apr 2021, 18:14

Re: ctrl + c ctrl + v not working

20 Apr 2021, 18:58

I've tried writing the script that way It doesn't work. I've also tried those suggestions. Doesn't work in safe mode either.
User avatar
mikeyww
Posts: 26652
Joined: 09 Sep 2014, 18:38

Re: ctrl + c ctrl + v not working

20 Apr 2021, 19:03

Did you test in Notepad?

Did you reboot your computer, exit all other scripts, close all clipboard managers, and use only this code in your current script?
Robstercraw
Posts: 14
Joined: 20 Apr 2021, 18:14

Re: ctrl + c ctrl + v not working

20 Apr 2021, 22:43

Yeah. did all that. It's just that ctrl c v doesn't work, period.
Robstercraw
Posts: 14
Joined: 20 Apr 2021, 18:14

Re: ctrl + c ctrl + v not working

21 Apr 2021, 11:37

I saw those already.
User avatar
mikeyww
Posts: 26652
Joined: 09 Sep 2014, 18:38

Re: ctrl + c ctrl + v not working

21 Apr 2021, 12:01

I imagine that you will need to investigate or apply the remedies that are described there.
Robstercraw
Posts: 14
Joined: 20 Apr 2021, 18:14

Re: ctrl + c ctrl + v not working

21 Apr 2021, 13:52

Let me rephrase. I tried those already.
User avatar
mikeyww
Posts: 26652
Joined: 09 Sep 2014, 18:38

Re: ctrl + c ctrl + v not working

21 Apr 2021, 14:33

OK. Perhaps others will know the fix.
Robstercraw
Posts: 14
Joined: 20 Apr 2021, 18:14

Re: ctrl + c ctrl + v not working

21 Apr 2021, 17:49

doubt it. looks like you are the only one here. lol thanks anyways.
User avatar
boiler
Posts: 16791
Joined: 21 Dec 2014, 02:44

Re: ctrl + c ctrl + v not working

21 Apr 2021, 18:16

Since the hotkeys aren't working, it sounds like it must not be a hardware problem. Have you tried a different keyboard just to eliminate that as a possibility (as was suggested in one of the linked sites)?
Robstercraw
Posts: 14
Joined: 20 Apr 2021, 18:14

Re: ctrl + c ctrl + v not working

21 Apr 2021, 22:45

Yeah, this is a new keyboard. It did it with the last as well.
User avatar
boiler
Posts: 16791
Joined: 21 Dec 2014, 02:44

Re: ctrl + c ctrl + v not working

21 Apr 2021, 23:26

Can you see if the keypresses are even being registered by Windows? Run the following script and follow the instructions:

Code: Select all

#UseHook
MsgBox, Press Ctrl+C and Ctrl+V then click OK to see key history.`n`nAfter viewing the key history, press Esc to exit script.
KeyHistory
return

Esc::ExitApp
...and see if it shows you something like this:

Code: Select all

VK  SC	Type	Up/Dn	Elapsed	Key		Window
-------------------------------------------------------------------------------------------------------------
A2  01D	 	d	1.47	LControl       	AHK_CQT_205649796
43  02E	 	d	0.31	c              	
43  02E	 	u	0.11	c              	
A2  01D	 	u	0.09	LControl       	
A2  01D	 	d	0.03	LControl       	
56  02F	 	d	0.36	v              	
56  02F	 	u	0.16	v              	
A2  01D	 	u	0.06	LControl       	
Press [F5] to refresh.
Robstercraw
Posts: 14
Joined: 20 Apr 2021, 18:14

Re: ctrl + c ctrl + v not working

22 Apr 2021, 12:01

I got this:
VK SC Type Up/Dn Elapsed Key Window
-------------------------------------------------------------------------------------------------------------
A2 01D d 10.67 LControl new 1.ahk
A2 01D d 0.50 LControl
43 02E d 0.01 c
43 02E u 0.27 c
A2 01D u 0.05 LControl
A2 01D d 0.61 LControl
A2 01D d 0.50 LControl
A2 01D d 0.06 LControl
A2 01D d 0.05 LControl
56 02F d 0.02 v
56 02F u 0.22 v
A2 01D u 0.03 LControl
User avatar
boiler
Posts: 16791
Joined: 21 Dec 2014, 02:44

Re: ctrl + c ctrl + v not working

22 Apr 2021, 12:38

OK, so that means that Windows is actually receiving and registering the correct keystrokes.

Do the alternate keystrokes Ctrl+Ins (copy) and Shift+Ins (paste) work? If so, try this code and see if you can copy/paste with Ctrl+C and Ctrl+V:

Code: Select all

^c::^Ins
^v::+Ins

Does right-clicking and selecting Copy and/or Paste work? I'm assuming they do since you were able to copy and paste the key history text.

How about Ctrl+X? Does that cut the highlighted text (assuming it's in a place where it can be cut like in a Notepad window)?
Robstercraw
Posts: 14
Joined: 20 Apr 2021, 18:14

Re: ctrl + c ctrl + v not working

22 Apr 2021, 15:39

ctrl+x doesn't do anything. The script didn't do anything but ctrl+Ins and shift+Ins works. I didn't know those combos existed lol I might be such using those.
User avatar
boiler
Posts: 16791
Joined: 21 Dec 2014, 02:44

Re: ctrl + c ctrl + v not working

22 Apr 2021, 17:50

Hmm, that's weird that the shortcuts using Ins work but the remappings don't since we saw that windows actually recognizes the keypresses. Now I'm curious: Do these hotkeys even bring up a MsgBox when you run the script below?

Code: Select all

^c::MsgBox, Ctrl+C was pressed
^v::MsgBox, Ctrl+V was pressed
If not, then see if this version works:

Code: Select all

#UseHook
^c::MsgBox, Ctrl+C was pressed
^v::MsgBox, Ctrl+V was pressed
Robstercraw
Posts: 14
Joined: 20 Apr 2021, 18:14

Re: ctrl + c ctrl + v not working

23 Apr 2021, 10:29

Yeah, it actually said ctrl+c / v was pressed.
User avatar
boiler
Posts: 16791
Joined: 21 Dec 2014, 02:44

Re: ctrl + c ctrl + v not working

23 Apr 2021, 11:08

Then that’s surprising that the remappings didn’t work. Maybe they’ll work like this:

Code: Select all

^c::Send, ^{Ins}
^v::Send, +{Ins}

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Descolada, Google [Bot], metallizer, mikeyww, Rohwedder and 247 guests