Activate vb


















You can follow the question or vote as helpful, but you cannot reply to this thread. I have the same question Report abuse. Details required :.

Cancel Submit. Halima S. Hi SheilaBest, 1. Download Microsoft Edge More info. Contents Exit focus mode. Activate Method Reference Is this page helpful? Please rate your experience Yes No. Any additional feedback?

If you use the Title parameter, AppActivate uses a case-insensitive comparison but otherwise requires an exact match with the contents of the title bar. It first looks through the top-level windows and then through the child windows. If it cannot find a match, it throws an ArgumentException. You can use AppActivate only with processes that own windows.

Most console applications do not own windows, which means that they do not appear in the list of processes that AppActivate searches.

When running from a console application, the system creates a separate process to run the application and returns the output to the console process. Consequently, when you request the current process ID, you get the process ID of this separate process, rather than the console application's process ID. At run time, the AppActivate function activates any running application with a title that matches Title or with a process ID that matches ProcessId.

If there is no exact match, it activates any application whose title string ends with Title. If there is more than one application named Title , the AppActivate function arbitrarily chooses one to activate. Paging Zefram Cochrane: Humans have figured out how to make a warp bubble. Show Comments. Hide Comments. My Profile Log out.



0コメント

  • 1000 / 1000