Page 1 of 1

minimize to tray

Posted: Tue Jan 20, 2009 3:31 am
by DraBS
What do you think about "minimize to tray" action for windows?

minimize to tray

Posted: Tue Jan 20, 2009 3:50 am
by Oleg
Most applications can't be minimized into system tray.
This feature must be implemented within application.

minimize to tray

Posted: Tue Jan 20, 2009 8:53 am
by DraBS
Hm, there's an application called MKey (http://soft.softodrom.ru/ap/p4997.shtml => MKey 0.9.7.2). It has the option to set a key on your keyboard to minimize, when clicked, the currently active window (whichever it is) to the system tray:I don't know how they have achieved it but it has worked with any application I have tried so far.

minimize to tray

Posted: Tue Jan 20, 2009 9:22 am
by Oleg
You may do this right now
See two sample tasks below. These tasks work with Notepad.exe

First task hides notepad and enables the second task
Second task unhides Notepad and disables itself.

Second task have "Tray icon" with notepad icon. So you see illusion that notepad has been minimized to tray.

First task:
;*******************************
;* RoboTask Task file         &n bsp;*
;* Do not edit in text editor! *
;*******************************

[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|1380072790
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task761"
Hide=INTEGER|0
ID=INTEGER|1264386552
LogOnAsUser=INTEGER|1
Name=STRING|"Hide Notepad to tray"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
WriteGeneralLog=INTEGER|0

[Actions]
Action1=FOLDER
Action2=FOLDER

[Actions\Action1]
ActionID=STRING|"A_WINDOW_COMMAND"
Enabled=INTEGER|-1
Name=STRING|"Hide window ""- Notepad"""
Params=FOLDER

[Actions\Action1\Params]
action=STRING|"5"
caption=STRING|"1"
child=STRING|"0"
class=STRING|"1"
classexact=STRING|"0"
exact=STRING|"0"
findmode=STRING|"0"
hidden=STRING|"0"
processall=STRING|"1"
wincaption=STRING|"- Notepad"
winclass=STRING|"Notepad"

[Actions\Action2]
ActionID=STRING|"A_TASKS_ENABLE"
Enabled=INTEGER|-1
Name=STRING|"Enable Task ""UnHide Notepad from tray"""
Params=FOLDER

[Actions\Action2\Params]
taskid=STRING|"1537830626"

Second task:
;*******************************
;* RoboTask Task file         &n bsp;*
;* Do not edit in text editor! *
;*******************************

[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|0
CatID=INTEGER|1380072790
ContinueOnError=INTEGER|0
Events=FOLDER
ExternalName=STRING|"Task762"
Hide=INTEGER|0
ID=INTEGER|1537830626
LogOnAsUser=INTEGER|1
Name=STRING|"UnHide Notepad from tray"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
WriteGeneralLog=INTEGER|0

[Actions]
Action1=FOLDER
Action2=FOLDER

[Actions\Action1]
ActionID=STRING|"A_WINDOW_COMMAND"
Enabled=INTEGER|-1
Name=STRING|"Unhide window ""- Notepad"""
Params=FOLDER

[Actions\Action1\Params]
action=STRING|"6"
caption=STRING|"1"
child=STRING|"0"
class=STRING|"1"
classexact=STRING|"0"
exact=STRING|"0"
findmode=STRING|"0"
hidden=STRING|"1"
processall=STRING|"1"
wincaption=STRING|"- Notepad"
winclass=STRING|"Notepad"

[Actions\Action2]
ActionID=STRING|"A_TASKS_DISABLE"
Enabled=INTEGER|-1
Name=STRING|"Disable Task ""UnHide Notepad from tray"""
Params=FOLDER

[Actions\Action2\Params]
taskid=STRING|"1537830626"

[Events]
Event1=FOLDER

[Events\Event1]
Enabled=INTEGER|-1
EventID=STRING|"E_GENERAL_TRAYICON"
Params=FOLDER

[Events\Event1\Params]
filename=STRING|"{SYSTEMDIR}\notepad.exe"
iconindex=STRING|"0"


minimize to tray

Posted: Thu Jan 22, 2009 10:23 pm
by DraBS
Thanks!