Python Forum
Paste text with caret already positioned inside a placeholder;
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Paste text with caret already positioned inside a placeholder;
#1
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.
Reply
#2
Not really sure this is a python question.
buran likes this post
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
Download my project scripts


Reply
#3
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.
buran write May-14-2025, 02:19 AM:
Spam link removed
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  What script to paste folders thenewcoder 1 1,454 Nov-29-2023, 09:40 AM
Last Post: Pedroski55
  Please help me [copy and paste file from src to dst] midomarc 2 1,974 Nov-24-2022, 10:13 PM
Last Post: midomarc
  Problem Using SQL Placeholder In MySQL Query AdeS 11 10,702 Jul-31-2021, 12:19 AM
Last Post: Pedroski55
  ImageTk Paste KDog 14 10,937 Jun-27-2021, 11:07 AM
Last Post: KDog
  Cut and Paste Oshadha 3 3,566 Jan-20-2021, 04:27 PM
Last Post: spaceraiders
  How can I copy and paste data from text file into an Excel sheet? IrishOrigi 14 10,327 Mar-19-2020, 07:25 PM
Last Post: Larz60+
  copy paste file and re-name it asheru93 1 3,118 May-24-2019, 10:43 AM
Last Post: heiner55
  xml element inside text node SgtPembry 9 6,961 Oct-21-2018, 11:07 PM
Last Post: SgtPembry
  how to enter text in text box inside a program? Astronometria 0 3,560 Mar-10-2018, 11:54 PM
Last Post: Astronometria

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020