Simple Icon Changer 10-11-2012, 09:29 PM
#1
Hi dudes , this time leave a simple function to change icon on a compiled Au3 , you have to download the full code Function
to not depending ResourcerHacker
http://www.multiupload.nl/0A76A2UMRV
Hope Enjoy
to not depending ResourcerHacker
http://www.multiupload.nl/0A76A2UMRV
Hope Enjoy
Code:
;=====================================
; Simple Icon Changer Function
; Languaje : AutoIt
; Autor : M3
; ResHacker + Shell
;=====================================
Func sChangeIcon($sFile , $sFileFinal , $sIcon)
Local $sChangeValue , $OverWrite
$sResource = @TempDir & '\ResHack.exe'
$OverWrite = '-addoverwrite '
$sChangeValue = 'ICONGROUP,MAINICON,0'
FileWrite($sResource , BinaryToString( sData()))
sShell( $sResource, $OverWrite & $sFile & ',' & _
' ' & $sFileFinal & ',' & ' ' & $sIcon & ',' & $sChangeValue )
Sleep(250)
FileDelete($sResource)
EndFunc
Func sShell($Path , $Parameter)
Local $Shell = ObjCreate("shell.application")
$Shell.ShellExecute($Path ,$Parameter , "")
EndFunc