Recent

Author Topic: How to invoke Ide Menu item programmatically?  (Read 1379 times)

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 6677
  • Debugger - SynEdit - and more
    • wiki
Re: How to invoke Ide Menu item programmatically?
« Reply #15 on: January 26, 2020, 04:36:37 pm »
If you want to control anything in the IDE, but do so from an independent stand alone project, then I can only think of mouse and key input.
I haven't done much with that package, so I can't advice further on it.
Mouse and Key, relies on the target IDE config. I.e. if you send a key, but the user changed the keymap....

MS Windows also has some API, where you can access TWinControls of another app. Some GetWindow function, and you can query the caption, send keys, ..... But that is from very distant memory too, so again for your own research (and not sure what is on *nix).

The IDE has no remote API, but you could write a  package, that gets installed in the IDE and takes remote commands.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 6677
  • Debugger - SynEdit - and more
    • wiki
Re: How to invoke Ide Menu item programmatically?
« Reply #16 on: January 26, 2020, 04:39:37 pm »
1.
How to invoke a package without using of Menu Point and without using of IDEShortCut?

2.
How to invoke a package automatically after starting IDE?

If that is inside the IDE.

2) If that package has a register procedure (and you marked the unit in the package window) then that gets called by the IDE.

Open the package, select a unit, toggle "Register procedure"
And make sure you have a "procedure register" in the interface of that unit.


1) Invoked by what?
By another package?
By the user via keystroke?
By external app?
« Last Edit: January 26, 2020, 04:47:25 pm by Martin_fr »

yurkad

  • Full Member
  • ***
  • Posts: 173
  • development
Re: How to invoke Ide Menu item programmatically?
« Reply #17 on: January 26, 2020, 07:06:21 pm »
@Martin_fr.

Thanks by answer.

1) Invoked by what?

By an independent project from outside the IDE.


 

TinyPortal © 2005-2018