Page 1 of 1

Scintilla and IDE tools on Mac

Posted: Thu Mar 28, 2024 2:32 pm
by Piero
Did any of you find a way to successfully use "scintilla commands" on IDE tools?

Re: Scintilla and IDE tools on Mac

Posted: Thu Mar 28, 2024 4:13 pm
by AZJIO

Re: Scintilla and IDE tools on Mac

Posted: Thu Mar 28, 2024 4:31 pm
by Piero
Well AZJIO, thanks for the answer, but I'm not born yesterday (as we say here in Italy) and can do almost anything with time, patience, and a source code file… :mrgreen:
This was mostly to "report a problem to Fred"…

…but Thanks anyway :?
Piero

PS: :x

Re: Scintilla and IDE tools on Mac

Posted: Thu Mar 28, 2024 5:26 pm
by AZJIO
http://purebasic.mybb.ru/viewtopic.php?id=1121#p11071
If it is a different process, this method will not work.
I was unable to get full access on Linux and Window using the Scintilla module. The SendMessage_() functions have a limited effect, and in Linux they don't exist at all or I don't know about them. I used xdotool to call the hotkey Ctrl+G to open the "line jump" window and Ctrl+V to paste the number. But I couldn’t press the “OK” button because the “Enter” hotkey didn’t work.

Re: Scintilla and IDE tools on Mac

Posted: Thu Mar 28, 2024 6:02 pm
by Piero
AZJIO wrote: Thu Mar 28, 2024 5:26 pmScintilla module
Please see (a very small example of) what I did LONG time ago to help coders, with TextMate as "IDE":

https://digilander.libero.it/usemac/lsl.mov

Re: Scintilla and IDE tools on Mac

Posted: Thu Mar 28, 2024 6:22 pm
by AZJIO
I also did different ways of auto-completion using a third-party editor. Here's an example
And also I made the AutoCompletionIDE tool

Re: Scintilla and IDE tools on Mac

Posted: Thu Mar 28, 2024 6:30 pm
by Piero
That's not just auto completion, and just a small example…………………………

But here we are talking about Fred; WTF Fred?!?!? (I'm a fan of Fred; don't take me wrong)

Re: Scintilla and IDE tools on Mac

Posted: Thu Mar 28, 2024 6:32 pm
by Piero
AZJIO wrote: Thu Mar 28, 2024 6:22 pmAnd also I made the AutoCompletionIDE tool
Does it work on Mac? :wink:

Re: Scintilla and IDE tools on Mac

Posted: Thu Mar 28, 2024 7:31 pm
by AZJIO
Piero wrote: Thu Mar 28, 2024 6:32 pm Does it work on Mac? :wink:
You need to compile on MacOS and test. Since you don't have xdotool you need to use the clipboard to grab text and paste. There are flags to control this. I have now recorded a video, if you are satisfied with the appearance, then you can try it and I will tell you how to set it up.

One person assembled my program on MacOS and everything worked for him, since then I became confident that all my programs with Linux support will work on MacOS

Re: Scintilla and IDE tools on Mac

Posted: Thu Mar 28, 2024 7:44 pm
by Piero
AZJIO wrote: Thu Mar 28, 2024 7:31 pmOne person assembled my program on MacOS
I admire your work with PB, and I'm very curious to know IF/HOW that person was able to send "scintilla commands" to the PB IDE

Re: Scintilla and IDE tools on Mac

Posted: Thu Mar 28, 2024 7:57 pm
by Piero
PS: I can access the PB IDE with AppleScript to get some info, but almost only GET…

Code: Select all

tell application "System Events" to tell UI element 1 of scroll area 1 of group 1 of group 1 of splitter group 1 of splitter group 1 of window 1 of process "PureBasic" to get value of attribute "AXSelectedText"