Sign in to follow this  
Followers 0
BALA

Minimize Notepad to system tray

8 posts in this topic

Is it possible to minimize a program to the system tray without editing that program's code? I'm using NotePad as an example.


[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

Share this post


Link to post
Share on other sites



Hi,

Run("notepad.exe")
Sleep(200)
$t =WinGetTitle("")
WinSetState($t, "", @SW_MINIMIZE)
Sleep(3000)
WinSetState($t, "", @SW_RESTORE)

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Will this work with pretty much all programs?

EDIT: I was hoping for something that would minimize it to the right bottom of the screen (where all the program's icons are), sorry if I used the wrong term.

Edited by BALA

[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

Share this post


Link to post
Share on other sites

Hi,

give it a try. Why not?

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

This does go to the system tray, but it still stays in the task bar, as well as minimizing back to the task bar and not the system tray when you open it from the system tray and try to minimize it.

Share this post


Link to post
Share on other sites

This does go to the system tray, but it still stays in the task bar, as well as minimizing back to the task bar and not the system tray when you open it from the system tray and try to minimize it.

Sorry can't understand that :)

On my computer, it just minimizes it, doesn't seem to go to the system tray.


[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Here this will help.

use F11 to hide active windows, then use tray icon to unhide them

hide_to_tray.au3

Reply: Just add the variable at the top of the script where it says Global

Edited by sheckandar

Live and Learn, 'cause Knowledge is Super Power.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0