ISInterface:ExecuteTimedCommand

From Lavish Software Wiki
Revision as of 23:54, 1 September 2005 by Beefalo (talk | contribs)
Jump to navigation Jump to search

Syntax

  • void ExecuteTimedCommand(unsigned long DelayMS, const char *Command)

Purpose

To execute a command after a given time.

Usage

Parameters

  • unsigned long DelayMS
Delay, in milliseconds to wait before executing Command
  • const char *Command
Name of the Command and arguments to be run

Examples

Example Code
void ISXTest::RegisterCommands()
{
       pISInterface->AddCommand("ISXTest",CMD_ISXTest,true,false);
}

int __cdecl CMD_ISXTest(int argc, char *argv[])
{
       printf("ISXTest Sample Command");
       pISInterface->ExecuteCommand("Display");
       pISInterface->ExecuteCommand("Wireframe on");
       pISInterface->ExecuteTimedCommand(10000,"Wireframe off");
       pISInterface->ExecuteTimedCommand(10500,"echo weeee"); 

       return 1;
}
This command makes use of ExecuteTimedCommand

See Also