Jump to content


Photo

Obfuscated AutoHotkey code


  • Please log in to reply
3 replies to this topic

#1 fincs

fincs
  • Fellows
  • 1532 posts

Posted 13 September 2010 - 04:50 PM

So today I was thinking about writing AutoHotkey code in the least sane way possible :lol:
Here's my entry, it's a function to tell apart Chris' official build from forks. The logic behind it is actually simple.
IsVanillaAutoHotkey() ; easily callable wrapper
{
	return ؘÆ()
}

; Keywords used in this function:
; if, loop, parse, chr, A_LoopField, return, A_ThisFunc

ؘÆ(ªšÎ="")
{iF ªšÎ
{LoOP,pArSe,ªšÎ
{ÒÆÞ:=cHr(Chr(54)cHR(55))CHR(chr(49)ChR(48)cHr(52))cHR(CHr(56)ChR(50))
,Ίè:=%ÒÆÞ%(%ÒÆÞ%(57)%ÒÆÞ%(55))%ÒÆÞ%(%ÒÆÞ%(56)%ÒÆÞ%(51))%ÒÆÞ%(%ÒÆÞ%(54)%ÒÆÞ%(55))
,’ܨ.=%ÒÆÞ%(%Ίè%(a_LooPfIELd)/2)                   ;;;
,ÒÆÞ:="",Ίè:=""                                    ;;; Written by fincs
}REtuRn ’ܨ                                         ;;; v1 - 13/09/2010
}ÒÆÞ:=A_tHIsFuNc,ªšÎ:="ÐqB"                         ;;;
,ÂØŒ:=%ÒÆÞ%("¤ÊÎ’¦èŠäÆ‚ØØ„‚†Ö"),’ܨ:=%ÒÆÞ%("ܪšÎŠè"),Ò¦ê:=%ÒÆÞ%("ˆØ˜Æ‚˜Ø")
,ä†Â:=%ÒÆÞ%("ê’ܨ"),ØØÄ:=%ÒÆÞ%("Òœ¨lh"),ˆØØ:=%ÒÆÞ%("Θž„ÂØŒäŠÊ"),¨lh:=%ÂØŒ%(ÒÆÞ)
,‚˜Ø:=%’ܨ%(¨lh+12,0,ä†Â),ÐqB:=%’ܨ%(‚˜Ø+0,0,ØØÄ),%Ò¦ê%(ˆØØ,ä†Â,¨lh),ÐqB:=(ÐqB=%’ܨ%(ªšÎ,0,ä†Â))
,ÒÆÞ:="",ªšÎ:="",ÂØŒ:="",’ܨ:="",Ò¦ê:="",ä†Â:="",ØØÄ:="",ˆØØ:=""
rEtUrN ÐqB
}

Post your insane AHK scripts here :)

#2 Zaelia

Zaelia
  • Members
  • 707 posts

Posted 13 September 2010 - 05:25 PM

hehe :) look like Regex

Something like this can be very horrible (static, global, var=value, % %var%, ...)
ø:="Ø" , Ø:="ø"

Ø(ø="ø"){
return ø
}

ø(Ø="Ø"){
return Ø
}

msgbox % Ø "|" %Ø% "|" Ø() "`n" ø "|" %ø% "|" ø()


#3 Eedis

Eedis
  • Members
  • 1591 posts

Posted 13 September 2010 - 10:38 PM

:shock:

#4 SKAN

SKAN
  • Administrators
  • 9062 posts

Posted 14 September 2010 - 02:52 AM

Actually, I was attempting at short-code in the following topic :
AxC : <!-- m -->http://www.autohotke...pic.php?t=29593<!-- m -->