PRograms in system tray
Moderators: JRL, Dorian (MJT support)
PRograms in system tray
Some programs are "minimized" in the system tray.
How can I maximize it with M Scheduler?
The WindowAction seems not to work.
Regards.
How can I maximize it with M Scheduler?
The WindowAction seems not to work.
Regards.
Hi,
It depends. Some of these programs are actually just hidden and 'SetFocus' is often sufficient to unhide them. Use Tools/View System Windows to see a list of windows.
Others have modified OnMinimize and OnRestore handlers, so restoring them with WindowAction may work.
Others may launch other executables when you click on the tray icon, so finding out the executable in question and using Run Program may work.
Others may be stubbornly more complicated and only the simulating of mouse clicks upon the icon will work.
It depends. Some of these programs are actually just hidden and 'SetFocus' is often sufficient to unhide them. Use Tools/View System Windows to see a list of windows.
Others have modified OnMinimize and OnRestore handlers, so restoring them with WindowAction may work.
Others may launch other executables when you click on the tray icon, so finding out the executable in question and using Run Program may work.
Others may be stubbornly more complicated and only the simulating of mouse clicks upon the icon will work.
MJT Net Support
[email protected]
[email protected]
If mouse clicking the icon is the only way it will open, is there any way to move the cursor to a particular tray icon, other than x,y position?support wrote: Others may launch other executables when you click on the tray icon, so finding out the executable in question and using Run Program may work.
Others may be stubbornly more complicated and only the simulating of mouse clicks upon the icon will work.
I need to open and capture the window of a tray item, but the icon may not always be in the same position.
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
-
- Newbie
- Posts: 2
- Joined: Thu Apr 15, 2004 12:50 pm
- Location: London
- Contact:
Hello All.
Registered as I have a problem and trying to use the same functionality but trying not to use an X,Y reference to locate the program.
I wish to bring up my dial up networking status screen backup so I can disconnect it after checking my mail and other items but I cannot trace what the window could be called.
I am not versed with DDE as there are a few windows which run there with this in the title.
Specifically what I am trying to achieve is to open my DUN connection, check my mail, then disconnect that DUN connection but the part which is causing me problems is bringing the window back up to disconnect.
I would be most grateful for any help you can provide.
Thanks in advance
Pummy
Registered as I have a problem and trying to use the same functionality but trying not to use an X,Y reference to locate the program.
I wish to bring up my dial up networking status screen backup so I can disconnect it after checking my mail and other items but I cannot trace what the window could be called.
I am not versed with DDE as there are a few windows which run there with this in the title.
Specifically what I am trying to achieve is to open my DUN connection, check my mail, then disconnect that DUN connection but the part which is causing me problems is bringing the window back up to disconnect.
I would be most grateful for any help you can provide.
Thanks in advance
Pummy
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
You could use a utility like PrcView that will Kill a particular process. This is freeware.
===============================
Introduction
PrcView is a process viewer utility that displays detailed information about processes running under Windows. For each process it displays memory, threads and module usage. For each DLL it shows full path and version information. PrcView comes with a command line version that allows you to write scripts to check if a process is running, kill it, etc.
What’s new
Bug fixes
UI improvements
What’s new in 3.0
DLL usage summary - displays all DLL’s currently in use, shows processes which use selected DLL
Displays complete task tree – parent/child relationships for all processes in the system
Displays Task list like the standard task manager
PrcView distribution now includes PV.EXE - a new utility that provides PrcView functionality from the command-line. Use pv –h for more information about available options.
What’s new in 2.0
Get the full list of DLL’s for each running process including FULL PATH for each loaded module - discover what DLL’s your process really uses and where they are located.
Double click on any module or process to get the full version information
Save any view as a tab-separated text file by just pressing F2
Process Finder Tool - just drag the finder icon and drop it to the process Window to select the desired process
Smooth update - you don’t need to press the refresh "button" to get the updated list of all processes, PrcView periodically updates the process list for you
New look and nice icons
Installation
No special installation is required on Windows 95/98. Create a new, empty folder and place the files PRCVIEW.EXE and PRCVIEW.HLP there. For Windows NT4 you may also need a PSAPI.DLL.
Main Window
The main window shows you a list of running processes including information process Id, priority, and full path to the process module. You can sort columns by clicking on the column header.
Note that although you don’t need to have administrative privilege on Windows NT to run PrcView, list of task PrcView can access depends on your set of privileges.
Show modules
Information about each loaded module including the module name, the module base address in process space, the module size and full to the loaded module path.
Show version
You can display comprehensive version information by double-clicking the appropriate line in the main or module window
Show threads
Information about all process threads including threads Id and priority. Note that if PrcView uses Performance Data Helper to enumerate threads under Windows NT, it can take a few seconds at the first time to open the list of threads while Windows is loading all necessary libraries.
Show Memory
Information about all memory blocks belonging to the selected process. Contains information about base address, protection, size and state for each memory block.
Show Heaps
Information about all heaps allocated by the selected process. You can display heap memory blocks by double clicking on the appropriate heap in the list box
Show Version
Displays version information about selected module. You can display version information by double-clicking the appropriate line in the main or module window
Kill process
Just another way to kill a selected process. Note that killing a process can cause undesired results including loss of data and system instability. The process will not be given a chance to save its state or data before it is terminated. It is advisable to try the "Notify" button in the "Kill" dialog to close a GUI-based application first (via WM_SYSCOMMAND)
Debug process
Nice way to attach a debugger to a running application. PrcView reads the "AeDebug" key and starts a registered debug application. PrcView allows you not only to select a process to debug but also to associate a particular project with it. This is especially useful while debugging an DLL that has a separate project. Associations are stored in the registry.
Set priority class
Allows you to specify a new priority class for the selected process.
The Process Finder Tool
With the Process Finder Tool you can find the process corresponding to a selected window. To find a process:
Arrange your windows so that PrcView and the window of the desired process are visible.
Press the Find Process button on the toolbar.
Keep left mouse button pressed while dragging the Finder Tool to the desired window.
Release mouse button. PrcView will select the corresponding process in the main view.
Process Tree
Shows you the process hierarchy for all running processes. You can select the desired task by clicking on the process item in the Process Tree window.
Module Usage
Information about all loaded modules in the system including the module name, the module base address in process space, the module size and full to the loaded module path. Selecting a module from the module list shows only processes witch use a selected module. Selecting "Module Usage" again returns the main window to the original process list. You can display comprehensive version information by double-clicking the appropriate line in the window.
Show Application
Shows all top-level window titles. You can select the desired task by clicking on the process item in this window. Double-click sends the selected application to the front.
Configuration option
Start Minimized – PrcView starts minimized. This option is useful in combination with the "Use System Tray" option if you plan to place PrcView in the "Startup" folder
Use System Tray – PrcView places a small icon In the System Tray, hiding itself when minimized
Allow Multiply Instances – If turned "on", PrcView allows to start more than one instance of the program. If turned "off" the instance of PrcView that is already running will be activated.
Set Refresh Times – Allows to specify refresh times for main/thread/module windows. If specified time is greater than zero, PrcView will refresh windows cyclically.
Refreshing Information
Use Menu/Toolbar in the main view or F5 in any view to refresh information in the corresponding window
Save Current View
Use Menu/Toolbar in the main view or F2 in any view to save information in the corresponding window
===============================
Introduction
PrcView is a process viewer utility that displays detailed information about processes running under Windows. For each process it displays memory, threads and module usage. For each DLL it shows full path and version information. PrcView comes with a command line version that allows you to write scripts to check if a process is running, kill it, etc.
What’s new
Bug fixes
UI improvements
What’s new in 3.0
DLL usage summary - displays all DLL’s currently in use, shows processes which use selected DLL
Displays complete task tree – parent/child relationships for all processes in the system
Displays Task list like the standard task manager
PrcView distribution now includes PV.EXE - a new utility that provides PrcView functionality from the command-line. Use pv –h for more information about available options.
What’s new in 2.0
Get the full list of DLL’s for each running process including FULL PATH for each loaded module - discover what DLL’s your process really uses and where they are located.
Double click on any module or process to get the full version information
Save any view as a tab-separated text file by just pressing F2
Process Finder Tool - just drag the finder icon and drop it to the process Window to select the desired process
Smooth update - you don’t need to press the refresh "button" to get the updated list of all processes, PrcView periodically updates the process list for you
New look and nice icons
Installation
No special installation is required on Windows 95/98. Create a new, empty folder and place the files PRCVIEW.EXE and PRCVIEW.HLP there. For Windows NT4 you may also need a PSAPI.DLL.
Main Window
The main window shows you a list of running processes including information process Id, priority, and full path to the process module. You can sort columns by clicking on the column header.
Note that although you don’t need to have administrative privilege on Windows NT to run PrcView, list of task PrcView can access depends on your set of privileges.
Show modules
Information about each loaded module including the module name, the module base address in process space, the module size and full to the loaded module path.
Show version
You can display comprehensive version information by double-clicking the appropriate line in the main or module window
Show threads
Information about all process threads including threads Id and priority. Note that if PrcView uses Performance Data Helper to enumerate threads under Windows NT, it can take a few seconds at the first time to open the list of threads while Windows is loading all necessary libraries.
Show Memory
Information about all memory blocks belonging to the selected process. Contains information about base address, protection, size and state for each memory block.
Show Heaps
Information about all heaps allocated by the selected process. You can display heap memory blocks by double clicking on the appropriate heap in the list box
Show Version
Displays version information about selected module. You can display version information by double-clicking the appropriate line in the main or module window
Kill process
Just another way to kill a selected process. Note that killing a process can cause undesired results including loss of data and system instability. The process will not be given a chance to save its state or data before it is terminated. It is advisable to try the "Notify" button in the "Kill" dialog to close a GUI-based application first (via WM_SYSCOMMAND)
Debug process
Nice way to attach a debugger to a running application. PrcView reads the "AeDebug" key and starts a registered debug application. PrcView allows you not only to select a process to debug but also to associate a particular project with it. This is especially useful while debugging an DLL that has a separate project. Associations are stored in the registry.
Set priority class
Allows you to specify a new priority class for the selected process.
The Process Finder Tool
With the Process Finder Tool you can find the process corresponding to a selected window. To find a process:
Arrange your windows so that PrcView and the window of the desired process are visible.
Press the Find Process button on the toolbar.
Keep left mouse button pressed while dragging the Finder Tool to the desired window.
Release mouse button. PrcView will select the corresponding process in the main view.
Process Tree
Shows you the process hierarchy for all running processes. You can select the desired task by clicking on the process item in the Process Tree window.
Module Usage
Information about all loaded modules in the system including the module name, the module base address in process space, the module size and full to the loaded module path. Selecting a module from the module list shows only processes witch use a selected module. Selecting "Module Usage" again returns the main window to the original process list. You can display comprehensive version information by double-clicking the appropriate line in the window.
Show Application
Shows all top-level window titles. You can select the desired task by clicking on the process item in this window. Double-click sends the selected application to the front.
Configuration option
Start Minimized – PrcView starts minimized. This option is useful in combination with the "Use System Tray" option if you plan to place PrcView in the "Startup" folder
Use System Tray – PrcView places a small icon In the System Tray, hiding itself when minimized
Allow Multiply Instances – If turned "on", PrcView allows to start more than one instance of the program. If turned "off" the instance of PrcView that is already running will be activated.
Set Refresh Times – Allows to specify refresh times for main/thread/module windows. If specified time is greater than zero, PrcView will refresh windows cyclically.
Refreshing Information
Use Menu/Toolbar in the main view or F5 in any view to refresh information in the corresponding window
Save Current View
Use Menu/Toolbar in the main view or F2 in any view to save information in the corresponding window
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
I guess you can solve it this way: RasDial & RasPhone 
TBH: that's a perfect sample about questions & answers. The target is to close a DialUp connection not to identify tray icons. Reminds me on how men and women communicates

TBH: that's a perfect sample about questions & answers. The target is to close a DialUp connection not to identify tray icons. Reminds me on how men and women communicates

- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Commandline tool to dis/connect a DialUp connection under Win9x - cFos RNAHelp [Download]
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Thanks lumumba, but I already have a command line tool with PrcView. I was hoping for a built-in OS command string.http://www.teamcti.com/pview/prcview.htm. It appears that Win9x uses Run32.dll to do DUN.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
-
- Newbie
- Posts: 2
- Joined: Thu Apr 15, 2004 12:50 pm
- Location: London
- Contact:
Thanks for the helpguys.
The machine is Win2K running a Pegasus eMail client. The previous machine wasWindows 98 so when I went to launch the DUN connection it would bring up a window which I could easily pick up and then send the correct keystrokes to disconnect.
I will give it a go and post my results.
Once again thank you for your help.
The machine is Win2K running a Pegasus eMail client. The previous machine wasWindows 98 so when I went to launch the DUN connection it would bring up a window which I could easily pick up and then send the correct keystrokes to disconnect.
I will give it a go and post my results.
Once again thank you for your help.
I have just read a realtedtopic on RASDIAL and it seems to work better than having to use the dialup method.
The steps I used were....
C:\>rasdial
This connects me in no problems.
To Disconnect...
C:\> rasdial /DISCONNECT
Would disconnect me easily too.
Obviously I would need to make sure there is some error trapping if there is a problem but I think that has solved my problem
Once again thanks very much.
Pummy Sachdev
The steps I used were....
C:\>rasdial
This connects me in no problems.
To Disconnect...
C:\> rasdial /DISCONNECT
Would disconnect me easily too.
Obviously I would need to make sure there is some error trapping if there is a problem but I think that has solved my problem
Once again thanks very much.
Pummy Sachdev