Is the cursor in CudaText custom-drawn? #5706
Replies: 3 comments 7 replies
-
Do you need to read caret coord from Python API? or other way? it is possible only from Py API. App don't use Win32 API to paint the caret. |
Beta Was this translation helpful? Give feedback.
-
@dinkumoil Hello. My editor misses some SendMessage API to help other apps to read the caret postion from AHK scripts. I am not on Windows PC so cannot add it in the near month. Can you help? |
Beta Was this translation helpful? Give feedback.
-
@Alexey-T Sorry, I'm not able to help in coding, but I can provide some knowledge to solve the task.
In order to be able to process
The parameter
The message handler method IMPORTANT (from the docs):
That's because the receiving process cannot access memory that is in the address space of the sending process. Windows marshalls the buffer whose pointer is provided in Follow >> this link << for an example in C++ that shows how to use |
Beta Was this translation helpful? Give feedback.
-
Hello, I am developing software that displays some information at the cursor position (not the mouse pointer, but the text cursor). Therefore, I need to be able to get the exact coordinates of the cursor in the editor relative to the entire system interface. My software works well in many other editors, but it does not work in the CudaText editor. I am wondering if the cursor in CudaText is custom-drawn? If so, is there a way to access the coordinates of the editor's cursor relative to the system interface?
Beta Was this translation helpful? Give feedback.
All reactions