You don't get 48 hrs for 3rd party programs unless the GM made a mistake. It should be 72hrs Final Warning.
As far as I know, AHK & HKN do not edit game files thus would not come in to the 3rd party programs that would get caught by Warden.
They would however have the ability to make your character run around by itself, I'd imagine massive scripting, but possible. Not that script you pasted there for sure.
Getting actioned for third party programs at the moment and NOT getting a 72 hr, 6 months or perma ban definitely means a game master did you IF it was infact for third party programs, which I still doubt.
So I will flat out say it, you were not suspended for HKN. You have either gotten lucky and were given 48 instead of 72 for using a proper bot or you got 48 hrs for some serious bad behaviour/language.