Jump to content

Bring App window to Front using VBScript?


Recommended Posts

I have a set of users who for some of their job functions must go out to a Terminal Server environment, we have obtained a third party tool bar that will slide in from the side of the monitor so that they can launch the fat applications that we don't allow on the Term Server locally on their PC.

The problem that we are encountering is that the apps run behind the RDP window - which must run maximized.

We already have a VBSCript that is running in the background on the devices and it would be easy for us to add code to that, what we're hoping for is a way to essentially simulate the "switch to" or "bring to front" functionality of the task manager. We've tried using appactivate and using send keys to maximize the page, but it just doesn't work.

Granted the users can minimize the RDP window, but we're not talking about the swiftest group of users here.

Any thoughts from anyone?

Link to comment
Share on other sites


Since you tried appactivate and send keys have you thought of just minimize all windows,

then run your code then undo the minimize all windows.

Dim Shl :Set Shl = CreateObject("Shell.Application")
Shl.MinimizeAll
'-> Place Code That You Need Here
WScript.Sleep 1000
Shl.UndoMinimizeAll

Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...