SETEVENT - Set signaled state on named Win32 event
<< Click to Display Table of Contents >> Navigation: Robo-FTP User's Guide > Script Programming > Script Commands > All Script Commands > SETEVENT - Set signaled state on named Win32 event |
Syntax: |
SETEVENT |
[ named event ] |
Arguments: |
[ named event ] |
An existing event in the format "<namespace>\<event name>" |
Options: |
none |
|
This script command sets the signaled state of an existing Windows event object. This is useful for developers of external applications that need to communicate or otherwise synchronize with Robo-FTP.
Suppose your external application used the CreateObject Windows API function to make an object named Job01 in the Global namespace. The SETEVENT command changes the object's state to signaled like this:
SETEVENT "Global\Job01"
If your external application was paused using a Windows API function like WaitForSingleObject it could resume its activity when Robo-FTP sets the Job01 event object's state to signaled.
Other techniques for communicating with an external process include controlling Robo-FTP via its COM interface, modifying a text file with the WRITEFILE command, updating a database table with DBQUERY and setting an errorlevel number with the EXIT command's /exitcode option.
See also: Using COM to Control Robo-FTP