Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

C/C++ API Documentation | 2026.1

# ClientUser::Finished()

Called after client commands finish.

Virtual? | Yes |
Class | `ClientUser` |
Arguments | None |
Returns | `void` |

## Notes

This function is called by the server at the end of every P4 Server command, but in its default implementation, it has no effect. The default implementation of this function is empty - it takes nothing, does nothing, and returns nothing.

## Example

To trigger an event after the completion of a command, create a subclass of `ClientUser` and provide a new implementation of `Finished()` that calls that event.

For example, if you want your application to beep after each command, put the command into `Finished()`, as follows.

    void MyClientUser::Finished()
    {
        printf( "Finished!\n%c", 7 );
    }

Your search for returned results