Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Business Applications Business Applications
Search Search
Search for:
Tech Support Guy > > >

Close the one note tray icon automatically when one note is closed


(!)

new tech guy's Avatar
new tech guy has a Photo Album
Computer Specs
Member with 5,178 posts.
THREAD STARTER
 
Join Date: Mar 2006
Location: NJ
Experience: Intermediate
21-Aug-2008, 04:31 PM #1
Close the one note tray icon automatically when one note is closed
Hello folks, simple question here,
I have one note 2007 installed on my pc and want to just make a small tweak to it that is a nuicannce in my opinion more than an atcual problem. What i want to do is when onenote closes (meaning the main application) i want to have its tray application close itself. Trust me, it is useful and i have been reviewing this application and like it for starting college but find it annoying how i have the tray application open even when the program is closed. If someone could tell me how to do this it would be appreciated. And i do know about disabling the icon but i dont want to do that as the tray application i find has plenty of usefull features.
Elvandil's Avatar
Computer Specs
Moderator with 51,993 posts.
 
Join Date: Aug 2003
Location: Vermont
Experience: "Been through the mill."
21-Aug-2008, 04:52 PM #2
Check its options. Usually applications that do that have a "Close to tray" setting.
Courtneyc's Avatar
Computer Specs
Member with 1,896 posts.
 
Join Date: Dec 2003
Location: South Central Kansas
Experience: Advanced
21-Aug-2008, 10:20 PM #3
Open OneNote, Tools, Options, Other. Uncheck the first checkbox.

Courtney
new tech guy's Avatar
new tech guy has a Photo Album
Computer Specs
Member with 5,178 posts.
THREAD STARTER
 
Join Date: Mar 2006
Location: NJ
Experience: Intermediate
21-Aug-2008, 10:34 PM #4
I really dont see anything in the options, just really want its service to stop when the application is closed so that i lose the tray. In other words, i want the icon in the tray when its there like it is but when i close onenote down i want the tray gone too. Is there anyway i can maybe make my own addon for it that will kill the tray process with say, a batch script?
new tech guy's Avatar
new tech guy has a Photo Album
Computer Specs
Member with 5,178 posts.
THREAD STARTER
 
Join Date: Mar 2006
Location: NJ
Experience: Intermediate
21-Aug-2008, 10:40 PM #5
Quote:
Originally Posted by Courtneyc View Post
Open OneNote, Tools, Options, Other. Uncheck the first checkbox.

Courtney
That works to remove it fine, but i want the icon there only when running though.
new tech guy's Avatar
new tech guy has a Photo Album
Computer Specs
Member with 5,178 posts.
THREAD STARTER
 
Join Date: Mar 2006
Location: NJ
Experience: Intermediate
21-Aug-2008, 10:44 PM #6
Maybe a way i could use a script to do this that will check and then i can tell the script that when the application closes to kill the process? That will eliminate the icon. If it helps the process is called ONENOTEM.EXE .
new tech guy's Avatar
new tech guy has a Photo Album
Computer Specs
Member with 5,178 posts.
THREAD STARTER
 
Join Date: Mar 2006
Location: NJ
Experience: Intermediate
22-Aug-2008, 01:17 AM #7
UPDATE: I think i figured this out, what i am doing is tieing a script to the exit button in microsoft onenote and making a custom launcher to force the application to do what i want it to. Once i work out the bugs in the code and have it written i will post the code and give setup instructions.
new tech guy's Avatar
new tech guy has a Photo Album
Computer Specs
Member with 5,178 posts.
THREAD STARTER
 
Join Date: Mar 2006
Location: NJ
Experience: Intermediate
22-Aug-2008, 02:29 AM #8
Ok folks, the code works, only problem (dont know if this is true in vista or not) but you get security warnings from the application, you atcually get two warnings. Both from office if anyone knows how to turn off the "hyperlink" alerts for customizing buttons please let me know.
new tech guy's Avatar
new tech guy has a Photo Album
Computer Specs
Member with 5,178 posts.
THREAD STARTER
 
Join Date: Mar 2006
Location: NJ
Experience: Intermediate
22-Aug-2008, 03:57 PM #9
bump...anyone?
caraewilton's Avatar
Computer Specs
Member with 1,347 posts.
 
Join Date: Nov 2007
Location: South Africa
Experience: Intermediate
22-Aug-2008, 07:53 PM #10
Hi. I have onenote 2007 on my vista pc. Somehow I managed to set things up so the tray option closes itself when I close the program. I definitely achieved this without writing any scripts but sadly I can not remember what I did I installed the program in December.
new tech guy's Avatar
new tech guy has a Photo Album
Computer Specs
Member with 5,178 posts.
THREAD STARTER
 
Join Date: Mar 2006
Location: NJ
Experience: Intermediate
22-Aug-2008, 10:57 PM #11
And the icon would reappear when onenote is started?
new tech guy's Avatar
new tech guy has a Photo Album
Computer Specs
Member with 5,178 posts.
THREAD STARTER
 
Join Date: Mar 2006
Location: NJ
Experience: Intermediate
23-Aug-2008, 02:22 PM #12
Code for starting/shutting down onenote
Ok folks, i have not figured out the security warning stuff yet but figure i could post the code so one could possibly try it and see what im talking about. So here is the code used to launch onenote (because when the process for the tray is killed it will not restart itself with onenote, therefore i had to build a custom launcher):

Code:
@echo off
cd "C:\Program Files\Microsoft Office\office12"
start ONENOTEM.EXE
ping -n 5 127.0.0.1 >nul
taskkill /im onenote.exe >nul
start ONENOTE.EXE
exit
This batch assumes you have onenote installed in its default location. You can place the file anywhere but if office is installed anywhere else but the default, go ahead and change the cd line accordingly. The ping line is acting as a delay timer to give the onenote tray a chance to start, it especially needs this after booting and running for the first time after the session start. Your mileage may vary again so if your system is a bit slower and needs more time, all you would need to do is change the number 5 in the 3rd line with whatever seems to work for you.

This is the achilles heel in the equation, shutting down one note. The code works flawlessly, just has the microsoft office security warnings because it somehow thinks its the end of the world because i link the exit button to a batch file. In any case, here is the code:
Code:
@echo off
echo Shutting down onenote...
taskkill /im onenotem.exe >nul
taskkill /im onenote.exe >nul
exit
To add the batch to the exit buttom instead of the standard exit command, open onenote and you go to tools>customize. Then click the rearrange commands button. Then scroll to your exit button (this is in the file menu, you will need to set the other exit buttons you have in other menus too) then click modify>edit hyperlink>open. Then select the shutdown batch (again can be anywhere in the system and is file location independent). Then if you click exit, ok through the security warnings (which are what im trying to eliminate and it will shut down onenote and take the tray with it.


In my batch, i went ahead for my startup and disguised it in the office folder to look like the real onenote icon using a shortcut to the batch.
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑