Recent

Author Topic: Signaling to an other process to minimize it's window  (Read 2698 times)

CC

  • Full Member
  • ***
  • Posts: 124
Signaling to an other process to minimize it's window
« on: December 14, 2015, 02:02:50 pm »
Hi,

Since I could not find any  I am trying to create  a launcher  similar to the  Windows7 tray to be  used with LXDE/ Lubuntu. If anyone knows an exisitng solution please point me to the right direction.


TProcess provides the functionality to start and close processes, but I also need a way to have them perform the basic window commands like minimize, restore ... close, possibly kill the process.

Any help is appreciated.

CC

CC

  • Full Member
  • ***
  • Posts: 124
Re: Signaling to an other process to minimize it's window
« Reply #1 on: December 14, 2015, 05:08:03 pm »
The core of the problem is that we have the process handle and we need to get the window handle, which is the  message target.

Basile-B

  • Sr. Member
  • ****
  • Posts: 457
    • GH...
Re: Signaling to an other process to minimize it's window
« Reply #2 on: December 14, 2015, 09:01:46 pm »
« Last Edit: December 15, 2015, 11:01:12 am by BBasile »

CC

  • Full Member
  • ***
  • Posts: 124
Re: Signaling to an other process to minimize it's window
« Reply #3 on: December 15, 2015, 08:35:51 am »
BBasile

This seems to be the solution. :) Your help is greatly appreciated.

Now I need to figure out how to call this  from  the pascal code, which I have no experience with when it comes to C. I can think of a few ways though, like

 - compling a .so with a c compliler
 - fpgui might have  what is needed to migrate the  C code to pascal
 ...

CC
« Last Edit: December 15, 2015, 08:39:04 am by CC »

avra

  • Hero Member
  • *****
  • Posts: 1717
    • Additional info
Re: Signaling to an other process to minimize it's window
« Reply #4 on: December 15, 2015, 09:45:53 am »
Since I could not find any  I am trying to create  a launcher  similar to the  Windows7 tray to be  used with LXDE/ Lubuntu. If anyone knows an exisitng solution please point me to the right direction.
There is a full windows manager that you might want to look at:
http://wiki.freepascal.org/Free_Pascal_Window_Manager
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib