AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Menu Tray Icon in scripts with Functions

 
Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
AEN007



Joined: 04 Apr 2009
Posts: 129

PostPosted: Sun Jan 10, 2010 12:39 pm    Post subject: Menu Tray Icon in scripts with Functions Reply with quote

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
View user's profile Send private message
HotKeyIt



Joined: 18 Jun 2008
Posts: 4652
Location: AHK Forum

PostPosted: Fri Jan 15, 2010 4:48 pm    Post subject: Reply with quote

Example Question
_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun Wink
Back to top
View user's profile Send private message
AEN007



Joined: 04 Apr 2009
Posts: 129

PostPosted: Sat Jan 16, 2010 9:58 am    Post subject: Reply with quote

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
View user's profile Send private message
HotKeyIt



Joined: 18 Jun 2008
Posts: 4652
Location: AHK Forum

PostPosted: Sat Jan 16, 2010 9:44 pm    Post subject: Reply with quote

So here you lose TrayIcon for your script?
Code:
DetectHiddenWindows, On
Menu,Tray,Icon,Shell32.dll,44
MsgBox % TrayIcons("explorer.exe")
Return

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun Wink
Back to top
View user's profile Send private message
AEN007



Joined: 04 Apr 2009
Posts: 129

PostPosted: Fri Mar 05, 2010 9:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group