IDE Tool programing

Just starting out? Need help? Post your questions and find answers here.
Wolfram
Enthusiast
Enthusiast
Posts: 567
Joined: Thu May 30, 2013 4:39 pm

IDE Tool programing

Post by Wolfram »

Hello,

I want to write an tool to change the selected code.
It's easy to send the selected code to my tool, but how can I return the result of my tool to the PB Editor?

I'm working on OSX
macOS Catalina 10.15.7
User avatar
Lunasole
Addict
Addict
Posts: 1091
Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:

Re: IDE Tool programing

Post by Lunasole »

Hi.
On Windows you can use API like SendMessage() to send commands to Scintilla control used by IDE.
Probably there is similar way on that OSX.

Scintilla commands already present in PB as those "#SCI_" constants, also can look Scintilla docs for details.
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
User avatar
Bisonte
Addict
Addict
Posts: 1226
Joined: Tue Oct 09, 2007 2:15 am

Re: IDE Tool programing

Post by Bisonte »

He wants to send text to the open scintilla control of the purebasic-ide.
All tips & tricks to send it directly are windows only.

But another way was to load the sourcecode of the actual tab , change it, and reload the new one.
PureBasic 6.04 LTS (Windows x86/x64) | Windows10 Pro x64 | Asus TUF X570 Gaming Plus | R9 5900X | 64GB RAM | GeForce RTX 3080 TI iChill X4 | HAF XF Evo | build by vannicom​​
English is not my native language... (I often use DeepL to translate my texts.)
Post Reply