Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macro recording problem when copying and pasting text #9247

Open
rodrigoeggea opened this issue Dec 10, 2020 · 3 comments
Open

Macro recording problem when copying and pasting text #9247

rodrigoeggea opened this issue Dec 10, 2020 · 3 comments

Comments

@rodrigoeggea
Copy link

Description of the Issue

Macro recording/playback is not copying/pasting text properly.

Steps to Reproduce the Issue

  1. Open a document
  2. Write some text "The quick brown fox jumps over the lazy dog"
  3. Macro -> Start recording
  4. Select the word "fox" with mouse
  5. Copy to clipboard with CTRL + C
  6. Paste in the above line with CTRL + V
  7. Macro -> Stop recording
  8. Now select the word "dog" with mouse
  9. Copy the word "dog" to clipboard with CTRL + C
  10. Run Macro -> Playback
  11. Macro will paste dog, and not fox.

Expected Behavior

Macro should copy and paste the correct word "fox" during playback.

Actual Behavior

Macro Playback is pasting the content from clipboard, is not copying the correct word during playback.

Debug Information

Notepad++ v7.9 (64-bit)
Build time : Sep 22 2020 - 03:19:04
Path : C:\Program Files\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS Name : Windows 10 Home Single Language (64-bit)
OS Version : 1909
OS Build : 18363.1198
Current ANSI codepage : 1252
Plugins : ComparePlugin.dll mimeTools.dll NppConverter.dll NppExec.dll NppExport.dll NppFTP.dll NPPJSONViewer.dll

@123dev
Copy link

123dev commented Jun 9, 2022

Almost two years later and this has never been looked at?
Kind of defeats the points of the macros when copy and paste does not work.

@alankilborn
Copy link
Contributor

Step 4 does nothing macro-wise (try recording just that step and see that nothing is available for playback -- means that no action was noted), so "fox" can't possibly be pasted in step 11.

@TechDad2018
Copy link

TechDad2018 commented Oct 5, 2022

The problem is, you are actually recording "Ctrl+V" as the macro, thus whenever you run the macro it is just perfoming a standard "paste" command and putting in whatever is copied in the windows clipboard.

You need to start recording the macro and actually type what you want it to do, then save the macro. Do not use keyboard commands to paste.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants