Re:Open Systray Menu, Is it possible to open the systray menu without clicking o

"valery_vi" <[email protected]>
Newsgroups gmane.comp.windows.autoit.user
Message-ID <[email protected]>
Hi,

There is one didactic topic from AutoItScript forum:
http://www.autoitscript.com/forum/index.php?showtopic=39545

>Is it possible to open a systray menu without clicking it? i.e. I 
> made a systray /w menu in autoit and want it to automatically open 
> every once in a while, I am not trying to open a systray menu from 
> another program.

It seems to have direct solution like ControlClick (...) but my 
trials failed and this method doesn't work in this case, I think.

Result of my exploring
Shell_TrayWnd (parent window) contains controls - Button, 
TrayNotifyWnd, TrayClockWClass, ReBarWindow32, ToolbarWindow32 (three 
controls) and other ones. First ToolbarWindow32 (ControlId - 
ToolbarWindow321) has icons of AutoIt script icons which were created 
by TrayCreateMenu and TrayCreateItem. The last controls are childs of 
ToolbarWindow321. Shortly speaking you have following tree of windows

Shell_TrayWnd (parent)
---Button1 (child)
---TrayNotifyWnd1 (child)
---TrayClockWClass1 (child) - here is clock icon
---ToolbarWindow321  (child)
------"AutoIt Icon in Tray" (child of child) - that control!

Thus this control can't be hooked by explicit AutoIt functions, I 
think. And you should use MouseClick function.

Valery
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.