Press TAB and enter the following codes, then you need to press Enter:
Heroes of Might & Magic 4: cheatcodes Free Download
Code Description
 nwcAmbrosia – free materials 
 nwcGoSolo – auto play 
 nwcAres – Win a fight 
 nwcAchilles – lose a fight 
 nwcHephaestus – chain mail 
 nwcEtTuBrute – dagger of despair
 nwcExcalibur – ring of greater negation
 nwcNibelungenlied – sword of the gods
 nwcTristram – Crusaders 
 nwcLancelot – champions 
 nwcStMichael – Angels 
 nwcSevenLittleGuys – gnomes 
 nwcMerlin – magicians 
 nwcCronus – Titans
 nwcBlahBlah – vampires
 nwcHades – devils
 nwcUnderTheBridge – trolls
 nwcKingMinos – Minotaur 
 nwcXanthus – nightmares 
 nwcFafnir – black dragons
 nwcDoYouSmellBrownies – sprites
 nwcFenrir – wolves 
 nwcFixMyShoes – elves 
 nwcTheLast – unicorn
 nwcRa – phoenix
 nwcValkyries – Orc Mage
 nwcGrendel – behemoth 
 nwcPoseidon – sea monster
 nwcPrometheus – casing
 nwcAthena – gain skill
 nwcThoth – increase the level 
 nwcIsis – Learn Spells
 nwcRagnarok – play scenario
 nwcHermes – endless movement 
 nwcValhalla Win Scenario
 nwcSacrificeToTheGods – maximum “luck”
 nwcSphinx – open puzzle map
 nwcAphrodite – “tattooed white trash”
 nwcImAGod – enable cheat menu
 nwcPan – maximum “morale”
 nwcCityOfTroy – Build all buildings
 nwcOldMan – “Old Man Jack”
 Note: the building code does not build all buildings, but only one
 of development paths (not always the best).
 Bridges are added in some cases, only in
 empty seats, make sure they are.
 As a rule, in a campaign, codes for items either do not work
 either work strangely (instead of a sword – a ring)
 Only codes for winning / losing a battle are entered during the battle,
 the rest on the main screen (probably)
Remember, some codes cannot be canceled :))