While each trainer has its specific instructions, the general process for using them is very similar. However, always check the trainer's documentation (usually a .txt or .nfo file) for game version requirements and key commands.
If you prefer not to use third-party software, Stronghold Crusader has built-in cheat codes that work on version 1.0: stronghold crusader 1.0 0.1 trainer