minimize to tray

Post comments and suggestions for RoboTask here
Post Reply
DraBS
Posts: 29
Joined: Sat Apr 02, 2005 7:43 am
Location: Bulgaria
Contact:

minimize to tray

Post by DraBS »

What do you think about "minimize to tray" action for windows?
Last edited by DraBS on Tue Jan 20, 2009 12:44 pm, edited 1 time in total.
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

minimize to tray

Post by Oleg »

Most applications can't be minimized into system tray.
This feature must be implemented within application.
DraBS
Posts: 29
Joined: Sat Apr 02, 2005 7:43 am
Location: Bulgaria
Contact:

minimize to tray

Post 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.
Last edited by DraBS on Tue Jan 20, 2009 1:00 pm, edited 1 time in total.
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

minimize to tray

Post 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"

Last edited by Oleg on Tue Jan 20, 2009 1:22 pm, edited 1 time in total.
DraBS
Posts: 29
Joined: Sat Apr 02, 2005 7:43 am
Location: Bulgaria
Contact:

minimize to tray

Post by DraBS »

Thanks!
Post Reply