![]() |
|
Simple Icon Changer - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Coding (https://sinister.li/Forum-Coding--71) +--- Thread: Simple Icon Changer (/Thread-Simple-Icon-Changer) |
Simple Icon Changer - M3 ™ - 10-11-2012 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 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 , "")
EndFuncRE: Simple Icon Changer - passager - 09-02-2013 This Icon Changer don't work for me bro :/ You have not give us the sData() function RE: Simple Icon Changer - chmod - 09-02-2013 Don't bring up old posts, besides this user has been inactive for a while /closed |