Scintilla and IDE tools on Mac
Posted: Thu Mar 28, 2024 2:32 pm
Did any of you find a way to successfully use "scintilla commands" on IDE tools?
http://www.purebasic.com
https://www.purebasic.fr/english/
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…AZJIO wrote: Thu Mar 28, 2024 4:13 pm Alternatives to xdotool for MacOS
https://alternativeto.net/software/xdot ... atform=mac
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.If it is a different process, this method will not work.
Please see (a very small example of) what I did LONG time ago to help coders, with TextMate as "IDE":
Does it work on Mac?
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.
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
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"