Python Forum

Full Version: Paste text with caret already positioned inside a placeholder;
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys, I have a text: "This is a test, %cursor%, got it?

Without explicit moving the caret after paste it inside a plain text editor, like notepad, is there a way to paste it with the caret already positioned in side the paceholder %cursor%? Or do I need a low level code no send messages to the input element?


Example: "This os a test, |, got it?"

Thanks in advance.
Not really sure this is a python question.
Plain text editors like Notepad don’t support caret positioning via paste. You’ll need low-level code (e.g., Windows API) to move the caret after pasting.