The following code example demonstrates how to determine whether code is being run in a user-interactive context. If
Example
| В | Copy Code |
|---|---|
// user_interactive.cpp
// compile with: /clr
using namespace System;
int main()
{
if ( Environment::UserInteractive )
Console::WriteLine("User interactive");
else
Console::WriteLine("Noninteractive");
return 0;
} | |
Dhtml editor
Free javascript download