Print Thread
Selected text position in plugin
#66751 04/26/25 12:04 PM
Joined: Nov 2016
Posts: 115
F
fabrice Offline OP
Member
OP Offline
Member
F
Joined: Nov 2016
Posts: 115
Hello,
is there a way to obtain selected text position start and end in SQL windows, into a plugin?
I searched in plugin doc, but couldn't find anything.
i could use getText and GetSelectText to try to calculate, but not sure to obtain each time a good result.


Any idéa?

thanks

Last edited by fabrice; 04/26/25 03:44 PM.
Re: Selected text position in plugin
fabrice #66753 04/27/25 02:27 PM
Joined: Nov 2016
Posts: 115
F
fabrice Offline OP
Member
OP Offline
Member
F
Joined: Nov 2016
Posts: 115
Did some research, found a solution.
I do some SendMessageX to obtain necessary data.

Re: Selected text position in plugin
fabrice #66754 04/28/25 02:34 AM
Joined: Dec 2024
Posts: 6
M
Member
Offline
Member
M
Joined: Dec 2024
Posts: 6
IDE_GetCursorX
IDE_GetCursorY
may help.

Re: Selected text position in plugin
fabrice #66756 04/28/25 03:12 PM
Joined: Nov 2016
Posts: 115
F
fabrice Offline OP
Member
OP Offline
Member
F
Joined: Nov 2016
Posts: 115
thanks, but IDE_GetCursorX and IDE_GetCursorY give cursor position not, text position.
i needed to access charactere before and after selected text, to obtain complete line.

Re: Selected text position in plugin
fabrice #66761 04/29/25 10:44 AM
Joined: Jun 2015
Posts: 73
Russia
L
Member
Offline
Member
L
Joined: Jun 2015
Posts: 73
Russia

Re: Selected text position in plugin
fabrice #66764 04/30/25 07:46 AM
Joined: Nov 2016
Posts: 115
F
fabrice Offline OP
Member
OP Offline
Member
F
Joined: Nov 2016
Posts: 115
Yes, i useed :
EM_GETSEL
EM_SETSEL
EM_LINEINDEX
EM_LINELENGTH
EM_LINEFROMCHAR

Thanks

Re: Selected text position in plugin
fabrice #66771 05/01/25 08:57 AM
Joined: May 2025
Posts: 1
usa
M
mia Offline
Member
Offline
Member
M
Joined: May 2025
Posts: 1
usa
Hi, Are there any plugins available that help you position instruments in their own space? e.g, something that will allow me to push brass ...In computing, a plug-in (or plugin, add-in, addin, add-on, or addon) is a software component that extends the Spacebar clicker Spacebar clicker functionality of an existing software system without requiring the system to be re-built. A plug-in feature is one way that a system can be customizable.Plugins are add-ons or extensions that can be installed on a website to extend its functionality and add new features. These components are designed to seamlessly integrate with existing website platforms and provide customized solutions, such as a content management system (CMS) plugin for a website.


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.188s Queries: 14 (0.097s) Memory: 2.5223 MB (Peak: 3.0397 MB) Data Comp: Off Server Time: 2025-06-14 14:44:57 UTC
Valid HTML 5 and Valid CSS