Obviously I cannot export every piece of functionality from the IDE, as that would be way too much work so I will have to limit the exported features. I'd like to know what kind of features people want for this. So I am now interested in the following:
- What kind of actions would you like to carry out in the IDE from an external program?
- What kind of information would you like to query from the IDE.

Here is a short test example of what it will look like to load the library, connect to the IDE and have it open the Preferences window:
Code: Select all
If Automation_Initialize()
Debug "Library initialized"
If Automation_ConnectToProgram(#PB_Compiler_Home + "PureBasic.exe")
Debug "Connected to the IDE"
If Automation_MenuCommand("Preferences")
Debug "Preferences opened"
Else
Debug "Error: " + Automation_ErrorMessage()
EndIf
Automation_Disconnect()
Else
Debug "Error: " + Automation_ErrorMessage()
EndIf
Automation_Shutdown()
Else
Debug "Could not load Automation library"
EndIf