Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 03:02

  • Please register to post and access all features, it's quick, easy and FREE!


.ico in .jpg umwandeln

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2008
Posts: 99
Received Thanks: 19
.ico in .jpg umwandeln

Kann man mit Autoit *.ico "Bilder" in *.jpg Bilder umwandeln?
Ich brauche das nämlich für ein Programm.
Es soll Programme schnell starten. Dazu soll es den Icon eines Programms anzeigen.

So sieht der Code aus:
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$file "daten.ini"
#Region ### START Koda GUI section ### Form=C:\Dokumente und Einstellungen\Philipp Keil\Desktop\GameStarter\GameStarterGUI.kxf
$Form1 GUICreate("GameStarter"452596343113)
$Label1 GUICtrlCreateLabel("Game Starter"70029159)
GUICtrlSetFont(-1364000"Arial")
GUICtrlSetColor(-10x800000)
$Label2 GUICtrlCreateLabel("Game Path"224888524)
GUICtrlSetFont(-1124000"MS Sans Serif")
$Label3 GUICtrlCreateLabel("?.exe"360884224)
GUICtrlSetFont(-1124000"MS Sans Serif")
$Start_1 GUICtrlCreateButton(IniRead ($file,"exe","exe 1",".exe"), 881129941$WS_GROUP)
$Start_2 GUICtrlCreateButton(IniRead ($file,"exe","exe 2",".exe"), 881769941$WS_GROUP)
$Start_3 GUICtrlCreateButton(IniRead ($file,"exe","exe 3",".exe"), 882409941$WS_GROUP)
$Start_4 GUICtrlCreateButton(IniRead ($file,"exe","exe 4",".exe"), 883049941$WS_GROUP)
$Start_5 GUICtrlCreateButton(IniRead ($file,"exe","exe 5",".exe"), 883689941$WS_GROUP)
$Start_6 GUICtrlCreateButton(IniRead ($file,"exe","exe 6",".exe"), 884329941$WS_GROUP)
$Start_7 GUICtrlCreateButton(IniRead ($file,"exe","exe 7",".exe"), 884889941$WS_GROUP)
$Input1 GUICtrlCreateInput(IniRead ($file,"Path","Path 1","Path here"), 20812011321)
$Input2 GUICtrlCreateInput(IniRead ($file,"exe","exe 1",".exe"),336 1208921)
$Input3 GUICtrlCreateInput(IniRead ($file,"Path","Path 2","Path here"), 20818411321)
$Input4 GUICtrlCreateInput(IniRead ($file,"Path","Path 3","Path here"), 20824811321)
$Input5 GUICtrlCreateInput(IniRead ($file,"Path","Path 4","Path here"), 20831211321)
$Input6 GUICtrlCreateInput(IniRead ($file,"Path","Path 5","Path here"), 20837611321)
$Input7 GUICtrlCreateInput(IniRead ($file,"Path","Path 6","Path here"), 20844011321)
$Input8 GUICtrlCreateInput(IniRead ($file,"Path","Path 7","Path here"), 20849611321)
$Input9 GUICtrlCreateInput(IniRead ($file,"exe","exe 2",".exe"), 3361848921)
$Input10 GUICtrlCreateInput(IniRead ($file,"exe","exe 3",".exe"), 3362488921)
$Input11 GUICtrlCreateInput(IniRead ($file,"exe","exe 4",".exe"), 3363128921)
$Input12 GUICtrlCreateInput(IniRead ($file,"exe","exe 5",".exe"), 3363768921)
$Input13 GUICtrlCreateInput(IniRead ($file,"exe","exe 6",".exe"), 3364408921)
$Input14 GUICtrlCreateInput(IniRead ($file,"exe","exe 7",".exe"), 3364968921)
$SaveData GUICtrlCreateButton("Save Data"853643125$WS_GROUP)
$Button2 GUICtrlCreateButton("Advanced"856843125$WS_GROUP)
$Pic1 GUICtrlCreatePic(IniRead ($file,"Icons","Icon1","Icons Nr.1"), 0888468BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Pic2 GUICtrlCreatePic(IniRead ($file,"Icons","Icon2","Icons Nr.2"), 01528468BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Pic3 GUICtrlCreatePic(IniRead ($file,"Icons","Icon3","Icons Nr.3"), 02168468BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Pic4 GUICtrlCreatePic(IniRead ($file,"Icons","Icon4","Icons Nr.4"), 02808468BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Pic5 GUICtrlCreatePic(IniRead ($file,"Icons","Icon5","Icons Nr.5"), 03448468BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Pic6 GUICtrlCreatePic(IniRead ($file,"Icons","Icon6","Icons Nr.6"), 04088468BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Pic7 GUICtrlCreatePic(IniRead ($file,"Icons","Icon7","Icons Nr.7"), 04728468BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$SaveData
            Iniwrite 
($file,"Path","Path 1",GUICtrlRead($input1))
            
Iniwrite ($file,"exe","exe 1",GUICtrlRead($input2))
            
Iniwrite ($file,"Path","Path 2",GUICtrlRead($input3))
            
Iniwrite ($file,"Path","Path 3",GUICtrlRead($input4))
            
Iniwrite ($file,"Path","Path 4",GUICtrlRead($input5))
            
Iniwrite ($file,"Path","Path 5",GUICtrlRead($input6))
            
Iniwrite ($file,"Path","Path 6",GUICtrlRead($input7))
            
Iniwrite ($file,"Path","Path 7",GUICtrlRead($input8))
            
Iniwrite ($file,"exe","exe 2",GUICtrlRead($input9))
            
Iniwrite ($file,"exe","exe 3",GUICtrlRead($input10))
            
Iniwrite ($file,"exe","exe 4",GUICtrlRead($Input11))
            
Iniwrite ($file,"exe","exe 5",GUICtrlRead($Input12))
            
Iniwrite ($file,"exe","exe 6",GUICtrlRead($Input13))
            
Iniwrite ($file,"exe","exe 7",GUICtrlRead($Input14))
        Case 
$Start_1
            shellexecute 
((IniRead ($file,"exe","exe 1","without .exe")),"",(IniRead ($file,"Path","Path 1","Path here")))
        Case 
$Start_2
            shellexecute 
((IniRead ($file,"exe","exe 2","without .exe")),"",(IniRead ($file,"Path","Path 2","Path here")))
        Case 
$Start_3
            shellexecute 
((IniRead ($file,"exe","exe 2","without .exe")),"",(IniRead ($file,"Path","Path 2","Path here")))
        Case 
$Button2
            $Form1a 
GUICreate("Advanced"288296192124)
            
$Label1a GUICtrlCreateLabel("Advanced Options"40820131)
            
GUICtrlSetFont(-1184000"Arial")
            
GUICtrlSetColor(-10x800000)
            
$Label2a GUICtrlCreateLabel("Icons:"16403920)
            
GUICtrlSetFont(-1104000"MS Sans Serif")
            
$Label3a GUICtrlCreateLabel("1st "24642117)
            
$Label4a GUICtrlCreateLabel("2nd"24962217)
            
$Label5a GUICtrlCreateLabel("3rd"241281917)
            
$Label6a GUICtrlCreateLabel("4th"241601917)
            
$Label7a GUICtrlCreateLabel("5th"241921917)
            
$Label8a GUICtrlCreateLabel("6th"242241917)
            
$Label9a GUICtrlCreateLabel("7th"242561917)
            
$Input1a GUICtrlCreateInput(IniRead ($file,"Icons","Icon1","Icons Nr.1"), 566412121)
            
$Input2a GUICtrlCreateInput(IniRead ($file,"Icons","Icon2","Icons Nr.2"), 569612121)
            
$Input3a GUICtrlCreateInput(IniRead ($file,"Icons","Icon3","Icons Nr.3"), 5612812121)
            
$Input4a GUICtrlCreateInput(IniRead ($file,"Icons","Icon4","Icons Nr.4"), 5616012121)
            
$Input5a GUICtrlCreateInput(IniRead ($file,"Icons","Icon5","Icons Nr.5"), 5619212121)
            
$Input6a GUICtrlCreateInput(IniRead ($file,"Icons","Icon6","Icons Nr.6"), 5622412121)
            
$Input7a GUICtrlCreateInput(IniRead ($file,"Icons","Icon7","Icons Nr.7"), 5625612121)
            
$Button1a GUICtrlCreateButton("SaveData"1842329149$WS_GROUP)
            
GUISetState(@SW_SHOW)

While 
1
$nMsg 
GUIGetMsg()
Switch 
$nMsg
Case $GUI_EVENT_CLOSE
Exit
Case 
$Button1a
    Iniwrite 
($file,"Icons","Icon1",GUICtrlRead($input1a))
    
Iniwrite ($file,"Icons","Icon2",GUICtrlRead($Input2a))
    
Iniwrite ($file,"Icons","Icon3",GUICtrlRead($input3a))
    
Iniwrite ($file,"Icons","Icon4",GUICtrlRead($input4a))
    
Iniwrite ($file,"Icons","Icon5",GUICtrlRead($input5a))
    
Iniwrite ($file,"Icons","Icon6",GUICtrlRead($input6a))
    
Iniwrite ($file,"Icons","Icon7",GUICtrlRead($input7a))
EndSwitch
WEnd


EndSwitch
WEnd 
Er zeigt aber mit "GUICtrlCreatePic" kein Bild an, da nur .jpg, .png und .gif gehen. Kann man mit Autoit die Bildformate irgendwie umändern?



WieMeinen is offline  
Old 12/05/2009, 22:57   #2
 
elite*gold: 0
Join Date: Apr 2009
Posts: 793
Received Thanks: 365
GUICtrlCreateIcon...


Xereon is offline  
Old 12/05/2009, 23:52   #3
 
elite*gold: 0
Join Date: Jun 2008
Posts: 99
Received Thanks: 19
Aso k, danke wusste nicht, dass es sowas gibt.
Warum macht man nich einfach des Bild und den Icon in eine Funktion?
Hmm..
WieMeinen is offline  
Old 12/06/2009, 00:10   #4
 
elite*gold: 0
Join Date: Apr 2009
Posts: 793
Received Thanks: 365
Weil man mit GuiCtrlCreateIcon auch Icons aus DLLs abbilden kann(wusste auch nicht das man in eine DLL Icons speichern kann).


Xereon is offline  
Old 12/06/2009, 09:36   #5
 
elite*gold: 0
Join Date: Oct 2009
Posts: 83
Received Thanks: 12
jeder kennt doch wohl die shell32.dll und dass da die ganzen icos drin sind is ja allgemein bekannt, oder?
Proffni is offline  
Old 12/07/2009, 19:32   #6
 
elite*gold: 0
Join Date: Jun 2009
Posts: 911
Received Thanks: 200
Quote:
Originally Posted by Proffni View Post
jeder kennt doch wohl die shell32.dll und dass da die ganzen icos drin sind is ja allgemein bekannt, oder?
wenn du doch so schlau bist wieso postest du dann nicht die antwort ?


SCORNI is offline  
Reply



« [PROBLEM]Aimbot für CrossFire | Fragen zu GUI'S »

Similar Threads
[TuT]Win XP in Win 7 umwandeln.!!
05/19/2010 - Tutorials - 5 Replies
Ist eigentlich ganz simple...! 1. Ihr geht auf Google 2.Dann gibt ihr in der Suchleiste (Seven Transformation Pack 4.0) ein. 3.Downloadet euch es am besten bei Chip.de 4.Wenn der Download fertig ist einfach Entpacken 5.Die Exe starten und...
ZP IN GP UMWANDELN
04/06/2010 - CrossFire - 11 Replies
Hey Leute , Ist es irgendwie möglich ZP (also im itemshop) in GP umzuwndeln da ich eig nur GP und keine items brauch ;D. Währe nett wenn einer da eine lösung wüsste PLS KLICK *THANKS* (hab noch keins) :(
Umwandeln
02/26/2010 - Aion Main - Discussions / Questions - 7 Replies
Hallo, Ich spiele auf einen Aion Server dessen Name mir entfallen ist xD Und ich will Äther in Kirstallerz etc. Umwandeln aber wie mir fehlen die Rezepte wo bekomme ich die Her? BIn erst lvl 12 also.. Und ich hab grad ma 12k und das nur...
M16 zu K7 Umwandeln ?
02/01/2010 - Combat Arms - 5 Replies
Hallo Lieben /ElitePvPerser/ Ich hätte eine Frage kann mir einer einen Wunsch erfüllen ? Das eine M16 die mann am anfang hat, genau wie eine K7 aussieht und Schießt,Recoil,Accur....hat also genau das selbe Schuss verhalten wie eine K7 hat. ...
[HOW TO] exe umwandeln?
10/04/2009 - Metin2 PServer - Discussions / Questions - 0 Replies
wie wandelt man eine exe um?



All times are GMT +2. The time now is 03:02.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.