APPACTIVATE |
APPACTIVATE(title [,wait]) |
Activates an application or window currently running on Windows. |
title | The title that appears in the title bar of the application (String). |
wait | (Optional) The number indicating if the application has the focus: 0 = the application is activated immediately (default) 1 = the application waits until it has the focus |
REMARKS |
* The "title" can also be the task id of the application (returned from the Shell function). * If "wait" = 1, then the calling application waits until it has the focus before activating the specific application. * If "wait" = True, then 1 is used. * This subroutine cannot change whether the application or window is maximised or minimised, it only changes focus. * You can use the Shell function to change the status of the window (maximised or minimised). * The equivalent .NET function is [[Microsoft.VisualBasic.Interaction.AppActivate]] * For the Microsoft documentation refer to learn.microsoft.com |
AppActivate "Microsoft Word"
Call AppActivate("Microsoft Word")
Dim dbAppID as Double
dbAppID = Shell("C:\Word\Winword.exe", 1)
AppActivate dbAppID
Call AppActivate(dbAppID)
© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited Top