Hello.
I am using the latest EG and I was wondering if it's possible to automate a task of clicking a program's context menu that is hidden in systray.
What I want to do, is to enable a function of a program, that it isn't exposed as command line function, API or any other easy method.
The only way to do it, is to right-click on it's icon in system tray and choose the appropriate option from the context menu.
Is it possible to call that invisibly using windows API or something similar?
It is important to happen transparently, without actually showing the context menu on screen, as I want to do it after receiving a XBMC event, so the screen is going to be fully covered by XBMC playing a video.
Thanks in advance!
P.S. The program is called f.lux and what I want to do is to enable movie mode while playing something in XBMC and disable movie mode afterwards.
Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
Clicking a systray program's context menu
Re: Clicking a systray program's context menu
You can not?
Re: Clicking a systray program's context menu
I can not.dansafe wrote:You can not?
Re: Clicking a systray program's context menu
Just an idea...
If it supports command line parameters it could be quite simple...
Try running "pathtoprogram"/"programexecutable".exe -?
If it supports command line parameters it could be quite simple...
Try running "pathtoprogram"/"programexecutable".exe -?
Re: Clicking a systray program's context menu
It doesn't.TRIROG1 wrote:If it supports command line parameters it could be quite simple...
Re: Clicking a systray program's context menu
I don't use XBMC or f.lux, but you can still try using Winspector Spy to see which messages are sent to f.lux when you click the systray menu items.
Then you create macros with Window.FindWindow and Window.SendMessage to activate those particular commands.
Winspector Spy is not the friendliest program to use, but it is free, and gives you access to the innards of most programs.
I am not 100% sure if it works with something in the systray, but it might...
It is a good tool to use if you are interested in creating a plugin for some arbitrary program.
WharfRat.
Then you create macros with Window.FindWindow and Window.SendMessage to activate those particular commands.
Winspector Spy is not the friendliest program to use, but it is free, and gives you access to the innards of most programs.
I am not 100% sure if it works with something in the systray, but it might...
It is a good tool to use if you are interested in creating a plugin for some arbitrary program.
WharfRat.
EventGhost 0.4.1.r1640
PHX01RN plugin v3.0.1
Windows XP 32bit (v5.1 Build 2600 Service Pack 2)
Windows7 64bit (v6.1 Build 7601 Service Pack 1)
PHX01RN plugin v3.0.1
Windows XP 32bit (v5.1 Build 2600 Service Pack 2)
Windows7 64bit (v6.1 Build 7601 Service Pack 1)
Re: Clicking a systray program's context menu
That was the first thing I've tried.
But I've failed miserably...
Doesn't matter now, because I just chose to stop using f.lux.
Thank you for your input anyway.
But I've failed miserably...
Doesn't matter now, because I just chose to stop using f.lux.
Thank you for your input anyway.