 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
AEN007
Joined: 04 Apr 2009 Posts: 129
|
Posted: Sun Jan 10, 2010 12:39 pm Post subject: Menu Tray Icon in scripts with Functions |
|
|
10January2010
Greetings.
I have found that scripts with the TrayIcons() & TaskButtons() functions
will not display TrayIcons. I would like it better if that was not the case.
Any helpful replies/insights appreciated.
Thank you.
Regards,
AEN
Æ |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4652 Location: AHK Forum
|
|
| Back to top |
|
 |
AEN007
Joined: 04 Apr 2009 Posts: 129
|
Posted: Sat Jan 16, 2010 9:58 am Post subject: |
|
|
16January2010
Greetings.
Thanks for the reply.
Example?
This is too simple to test.
Doesn't require an example.
Add
TIEE := TrayIcons("explorer.exe")
to any script that runs with
MENU, Tray, Icon, *.ico
and the script will lose the TrayIcon display.
At least that is what I find.
Any helpful replies/insights appreciated.
Thank you.
Regards,
AEN
Æ |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4652 Location: AHK Forum
|
|
| Back to top |
|
 |
AEN007
Joined: 04 Apr 2009 Posts: 129
|
Posted: Fri Mar 05, 2010 9:31 pm Post subject: |
|
|
5March2010
What's your point?
| Code: | DetectHiddenWindows On
TIWLT := TrayIcons("WLTRAY.exe")
If (TIWLT <> "")
{
StringSplit, TBV, TIWLT,|
; ahkcl := RegExReplace(TBV7, "class: ")
; StringTrimRight, WLTcl, ahkcl, 1
hWnd := RegExReplace(TBV6, "hWnd: ")
StringTrimRight, WLThWnd, hWnd, 1
}
else ExitApp
PostMessage, 1024, 3, 0x204, , ahk_id %WLThWnd%
PostMessage, 1024, 3, 0x205, , ahk_id %WLThWnd%
DetectHiddenWindows Off
WinWait, ahk_class #32768, , %Slmw%
If (ErrorLevel <> 0)
Goto, ReStart |
How would one use your code in a subroutine like above? |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|