Skip to content

melharfi/CheatCodeLite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CheatCodeLite

Cheat code keystrokes

MIT License Version GitHub Release Date GitHub Release PayPal Nuget GitHub language count

Hello, this is a library that allow you to trigger cheat codes events in your game/application using .NET.
The keystrokes handler is not included in this library cause it really depend on the context where this library is used, most of time games use a third party to catch keystrokes not the one in the .Net Framework.

Just add a reference to the library in the release https://github.com/melharfi/CheatCodeLite/releases or using nuget
Install-Package CheatCodeLite -Version 1.0.0

Once it's done you can then use this code to start on a Winform:



Pay attention that the value passed to the CheatCodeLite.CheatCodeLite(int keystrokesInterval) is the time allowed to keep chained cheat code, if this time is overwhelmed then the cheat code in progress is reseted.
To desable this timer just put a very long value like 100000000 :)

Pay attention to some scenarios that will raise some error. When a cheat code is registred like "HELLO" in the first hand, and another cheat code is registred like "HELL", in that case the second cheat code will hide the first one because cheat code will be reset as soon as it trigger the "HELL" event, so to avoid that an exception will be thrown to prevent and warn you about that.

Same scenarion when the revers happen, when you first add a cheat code like "HELL" and you just add another one like "HELLO", then the second one will be hidden by the first one.

Same thing when a duplication is found.

Hope it helps someone

About

Cheat code keyword handler

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages