0
私はAutoIt forを使用しています。コンソールアプリケーションとして次のコードを実行しています。AutoIt - WinExistsは、ユーザーがコンピュータにログインしていない間は正しく動作しません
public static class CustomerManager
{
public static bool IsCustomerInSession()
{
AutoItX3 au3 = new AutoItX3();
if (au3.WinExists("Request Desktop Control", "There are no customers in the session. Please invite or wait for customer to join the session.") == 0)
return true;
else
return false;
}
}
しかし、私の問題は、どのユーザーがマシンにして au3.WinExists()から正しい答えを得ることができないプロセスを記録していないとされている場合、それは常にウィンドウが存在しないと言うことです。
はユーザーがこれはVmのある
マシンにログインしていない場合、このコードはまた、どのように機能するか任意のアイデア。
[リモートデスクトップセッションを有効にする](https://stackoverflow.com/questions/5528412/keeping-remote-desktop-session-alive)の可能な複製 – user4157124