Login | |
|
 |
Bring a window to front? - 7/11/2006 9:15:27 AM
|
|
 |
|
| |
coyotewrw
Posts: 5
Score: 0
Joined: 7/11/2006
Status: offline
|
Hi all, There is a desktop calendar program called Rainlendar, that I would occasionally like to bring to the front of other windows, to view my appointments, todo, etc. I'm looking for a vbscript to do this, that I could run via a shortcut in my taskbar's quicklaunch. Rainlendar resides on the desktop and does not display a button on the taskbar, as would a normal window. However, there is a config setting (ini) called UseWindowName that, according to the manual, "If set to 1 the window will have a name "Rainlendar". Useful feature e.g. with some virtual windows managers." The process in taskmanager is "rainlendar.exe". Rainlendar currently has a toggle command, but it will only show/hide the program entirely from the screen. I also don't want to set it always-on-top cuz it will get in the way. Is there a vbscript I can use to "pull" a particular program/window/process to the front, without changing its z-order? It would then hide naturally as other windows are activated. Thanks for any help! :)
< Message edited by coyotewrw -- 7/11/2006 9:19:10 AM >
|
|
| |
|
|
|
 |
RE: Bring a window to front? - 7/11/2006 2:08:14 PM
|
|
 |
|
| |
dm_4ever
Posts: 2640
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
|
Is the application visible in the "Applications" tab of the task manager? How do you normally bring it to the front? Is it an icon on the lower right hand corner?
|
|
| |
|
|
|
 |
RE: Bring a window to front? - 7/11/2006 4:59:47 PM
|
|
 |
|
| |
dm_4ever
Posts: 2640
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
|
if it can be started via the command line then you can do something like set objShell = createobject("wscript.shell") objShell.Run "your command" if you can have the window up you could bring it to the front by using objShell.AppActivate("TitleofApp") I'm not familiar with the app you're using so i'm not sure what method would work best for you.
|
|
| |
|
|
|
 |
RE: Bring a window to front? - 7/12/2006 1:30:35 AM
|
|
 |
|
| |
dm_4ever
Posts: 2640
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
|
in order for appactivate to work your apps windows should be visible. all appactivate does is give focus to it. try it with another program like notepad so you can see how it works.
|
|
| |
|
|
|
|
|