Hallo,
zurzeitiger Code:
Code
Window 0,0-800,800
WindowStyle 16
WindowTitle "Updatechecker by Gary12345"
PopUp "&Programm"
AppendMenu 102, "&Englisch"
AppendMenu 103, "&Zusatzfunktionen"
AppendMenu 104, "&Informationen"
PopUp "&Programmupdates"
AppendMenu 105, "&Die aktuellsten Versionen"
AppendMenu 106, "&Programme updaten"
PopUp "&Sonstiges"
AppendMenu 107, "&Informationen über den Autor"
AppendMenu 108, "&Version des Programms"
Separator
AppendMenu 109, "&Programm beenden"
Declare button1%, button2%, button3%, button4%, button5%, button6%, button7%
Declare button1e%, button2e%, button3e%, button4e%, button5e%, button6e%, button7e%
Declare Window%, Window2%, Window3%, Window4%, Window5%, Window6%
Declare nurso%, button8%, button9%, button10%, button11%, button12%, button13%
Declare rtfdatei$, richedit&
Declare start$, Adobe$, Skype$, ServicePack$, Produktname$, Owner$
Declare SoftwareType$, SytsemRoot$, FireFox$, Java$, Autostart$
Declare Datei1$, x%, y%, WinV$, WinP$, SysP$, Java32$, FlashPlayer$
Declare Reader$, Version!, Version$, AdobeVersion$
Declare Datei1$
rtfdatei$ = $ProgDir + "Info.rtf"
Datei1$ = $ProgDir + "Updatelog.txt"
x% = %MaxX
y% = %MaxY
WinV$ = $WinVer
WinP$ = $WinPath
SysP$ = $SysPath
Set("Errorlevel", -1)
start$ = ReadIni$("HKEY_2","SOFTWARE\Microsoft\Internet Explorer","Version")
ServicePack$ = ReadIni$("HKEY_2","SOFTWARE\Microsoft\Windows NT\CurrentVersion","CSDVersion")
Skype$ = ReadIni$("HKEY_1","Software\Skype\Phone\UI","StatsSentVersion")
Produktname$ = ReadIni$("HKEY_2","SOFTWARE\Microsoft\Windows NT\CurrentVersion","Productname")
Owner$ = ReadIni$("HKEY_2","SOFTWARE\Microsoft\Windows NT\CurrentVersion","RegisteredOwner")
SoftwareType$ = ReadIni$("HKEY_2","SOFTWARE\Microsoft\Windows NT\CurrentVersion","SoftwareType")
FireFox$ = ReadIni$("HKEY_2","Software\Mozilla\Mozilla Firefox", "CurrentVersion")
Java32$ = ReadIni$("HKEY_2","SOFTWARE\JavaSoft\Java Runtime Environment","Java7FamilyVersion")
FlashPlayer$ = ReadIni$("HKEY_2","SOFTWARE\Macromedia\FlashPlayer","CurrentVersion")
Set("Errorlevel", 0)
button1% = Create("Button", %hwnd, "Versionen ermitteln", 264, 64, 264, 80)
Create("Tooltip", %hwnd, button1%, "Versionen ermitteln")
button2% = Create("Button", %hwnd, "Aktuellste Versionen", 264, 168, 264, 72)
Create("Tooltip", %hwnd, button2%, "Aktuellste Versionen")
button3% = Create("Button", %hwnd, "Programme updaten", 264, 264, 264, 72)
Create("Tooltip", %hwnd, button3%, "Programme updaten")
button4% = Create("Button", %hwnd, "Zusatzfunktionen", 264, 360, 264, 72)
Create("Tooltip", %hwnd, button4%, "Zusatzfunktionen")
button5% = Create("Button", %hwnd, "Informationen über den Autor", 264, 456, 264, 72)
Create("Tooltip", %hwnd, button5%, "Informationen über den Autor")
button6% = Create("Button", %hwnd, "Programmversion", 264, 552, 264, 72)
Create("Tooltip", %hwnd, button6%, "Programmversion")
button7% = Create("Button", %hwnd, "Programm beenden", 264, 648, 264, 72)
Create("Tooltip", %hwnd, button7%, "Programm beenden")
While 1
WaitInput
If MenuItem(102)
SetText button1%, "Version identification"
SetText button2%, "Latest Versions"
SetText button3%, "Programupdates"
SetText button4%, "Additional Functions"
SetText button5%, "About the author"
SetText button6%, "Programversion"
SetText button7%, "Exit"
SetText button8%, "Close"
SetText button9%, "Close"
SetText button10%, "Close"
SetText button11%, "Close"
EndIf
If MenuItem(116) Or MenuItem(109) Or (Clicked(Button7%) And GetFocus(Button7%)) Or (Clicked(Button7e%) And GetFocus(button7e%))
MessageBox("Das Programm wird jetzt beendet","INFO",48)
End
EndIf
If MenuItem(105) Or Clicked(button2%)
Window2% = Create("Window",%hwnd, "Updatechecker",0,0,1800,800)
ShowWindow(Window2%,1)
StartPaint Window2%
cls
Usefont "Arial", 0, 14, 1, 1, 0, 0
TextColor 0, -1
DrawText 0, 0, "Willkommen zu diesem Bereich / Welcome to this Point"
DrawText 0,30, "Hier werden sie die aktuellsten Versionen kennenlernen / Here you will meet the latest Versions of all programs"
DrawText 0,60, "Google Chrome Version: 21.0.1180.89"
DrawText 0,90, "Firefox Version: 15.0.1"
DrawText 0,120, "Skype Version: 5.10.0.116"
DrawText 0,150, "Adobe Reader Version: 10.1.4"
DrawText 0,180, "Adobe Flash Player Version: 11.4.402.278"
DrawText 0,210, "InternetExplorer Version: 9.0.8112.16421"
DrawText 0,240, "Java Version: Java7 Update 7"
DrawText 0,300, "Wenn Sie updaten möchten, gehen sie zum Menüpunkt Programme updaten!"
DrawText 0,330, "If you like to update any programs, go to the point calles Programupdates!"
DrawText 0,400, "Updates sind wichtig und ich bitte Sie alle Programme upzudaten!"
DrawText 0,430, "Making Updates is a importan point, please make all Updates of any Programs!"
DrawText 0,500, "Was sind Updates?"
DrawText 0,530, "What is a Update?"
DrawText 0,600, "Schauen Sie hier/Look here: http://windows.microsoft.com/en-MY/windows-vista/What-are-updates"
EndPaint
Def GetStockObject(1) !"GDI32","GetStockObject"
Def GetSysColor(1) !"USER32","GetSysColor"
Def GetParent(1) !"USER32","GetParent"
Def &COLOR_BTNFACE $F
Def &DEFAULT_GUI_FONT $11
WindowStyle 26 | 512 | 2048
WindowTitle "Updatechecker"
Window 280, 0 - 1806, 828
Cls GetSysColor(&COLOR_BTNFACE)
SetDialogFont GetStockObject(&DEFAULT_GUI_FONT)
button8% = Create("Button", Window2%, "Fenster schließen", 32, 720, 224, 48)
EndIf
If Clicked(button8%)
DestroyWindow(Window2%)
EndIf
If Clicked(button6%) Or MenuItem(108)
Window3% = Create("Window",%hwnd, "Updatechecker",0,0,500,500)
Def GetStockObject(1) !"GDI32","GetStockObject"
Def GetSysColor(1) !"USER32","GetSysColor"
Def GetParent(1) !"USER32","GetParent"
Def &COLOR_BTNFACE $F
Def &DEFAULT_GUI_FONT $11
button9% = Create("Button", Window3%, "Schließen", 16, 380, 128, 40)
Create("Tooltip", %hwnd, button9%, "Fenster schließen")
ShowWindow(Window3%,1)
StartPaint Window3%
Usefont "Arial", 0, 14, 1, 1, 0, 0
TextColor 0, -1
DrawText 0, 0, " Updatechecker by Gary12345"
DrawText 0,50, " Version 2.0.1."
DrawText 0,90, " made on 23.09.2012"
DrawText 0,150, " made for Paules-PC-Forum.de"
DrawText 0,200, " ***************************"
DrawText 0,280,"################################"
EndPaint
EndIf
If Clicked(button9%)
DestroyWindow(Window3%)
EndIf
If Clicked(Button5%) Or MenuItem(107)
Window4% = Create("Window",%hwnd, "Updatechecker",0,0,500,500)
Def GetStockObject(1) !"GDI32","GetStockObject"
Def GetSysColor(1) !"USER32","GetSysColor"
Def GetParent(1) !"USER32","GetParent"
Def &COLOR_BTNFACE $F
Def &DEFAULT_GUI_FONT $11
button10% = Create("Button", Window4%, "Schließen", 16, 420, 128, 40)
Create("Tooltip", %hwnd, button10%, "Fenster schließen")
ShowWindow(Window4%,1)
StartPaint Window4%
Usefont "Arial", 0, 14, 1, 1, 0, 0
TextColor 0, -1
DrawText 0, 0, " Name: Gerrit Wolf"
DrawText 0,50, " Benutzername: Gary12345"
DrawText 0,90, " Alter: 15 (13.07.1997)"
DrawText 0,150, " Wohnort: Landkreis Altötting"
DrawText 0,200, " Foren: Paules-PC-Forum,"
DrawText 0,280," Programming in Xprofan"
EndPaint
EndIf
If Clicked(button10%)
DestroyWindow(Window4%)
EndIf
If MenuItem(104)
Window5% = Create("Window",%hwnd, "Updatechecker",0,0,1000,1000)
richedit& = Create("RichEdit",Window5%,"",0,0,800,800)
Def GetStockObject(1) !"GDI32","GetStockObject"
Def GetSysColor(1) !"USER32","GetSysColor"
Def GetParent(1) !"USER32","GetParent"
button11% = Create("Button", Window5%, "Schließen", 24, 908, 160, 48)
Create("Tooltip", %hwnd, button11%, "Fenster schließen")
Ifnot FileExists(rtfdatei$)
MessageBox("Datei nicht gefunden","Hinweis",48)
Else
RTF("LoadRTF",richedit&,rtfdatei$)
EndIf
EndIf
If Clicked(button11%)
DestroyWindow(Window5%)
EndIf
If Clicked(button1%)
Window6% = Create("Window",%hwnd, "Updatechecker",0,0,1000,1000)
button12% = Create("Button", Window6%, "Schließen", 64, 880, 152, 56)
Create("Tooltip", %hwnd, button12%, "Fenster schließen")
button13% = Create("Button", Window6%, "Speichern", 400, 880, 152, 56)
Create("Tooltip", %hwnd, button13%, "Als Textdatei speichern")
StartPaint Window6%
Decimals 1
Repeat
Version! = Version! + 0.1
Locate 0,0
Reader$ = "SOFTWARE\Adobe\Acrobat Reader\" + Str$(Version!)
SET("ErrorLevel", -1)
Version$ = ReadINI$("HKEY_2", Reader$, "")
IF %Error = 0 'wenn der Schlüssel vorhanden ist...
AdobeVersion$ = "Adobe Reader Version: " + Str$(Version!)
endif
Until Version! >= 100
DrawText 0,0, AdobeVersion$
DrawText 0,30, "Horizontale Bildschirmauflösung:" + Str$(x%)
DrawText 0,60, "Vertikale Bildschirmauflösung:" + Str$(y%)
DrawText 0,90, "WindowsVersion:" + WinV$
DrawText 0,120, "Windowsverzeichnis:" + WinP$
DrawText 0,150, "Windows-Systemverzeichnis:" + SysP$
DrawText 0,180, "Windows:" + Produktname$
DrawText 0,210, "ServicePack:" + ServicePack$
DrawText 0,150, "Besitzername:" + Owner$
DrawText 0,180, "Softwaretyp:" + SoftwareType$
DrawText 0,210, "Skype-Version:" + Skype$
DrawText 0,240, "InternetExplorer-Version:" + start$
DrawText 0,270, "Firefox-Version:" + FireFox$
DrawText 0,310, "Java-Version:" + Java$ + Java32$
DrawText 0,340, "FlashPlayer-Version:" + FlashPlayer$
DrawText 0,440, "Jetzt können Sie diese Informationen in ein Textdokument darstellen lassen, dazu klicken Sie auf den Button Speichern"
EndIf
If Clicked(button12%)
DestroyWindow(Window6%)
EndIf
If Clicked(Button13%)
Assign #1,Datei1$
Rewrite #1
print #1, "**************************************************************"
print #1, "Updatechecker by Gary12345 Version 2.0.1."
print #1, "**************************************************************"
print #1, ""
print #1, "Windows:" + Produktname$
print #1, ""
print #1,"Service Pack:" + ServicePack$
print #1, ""
print #1, "Besitzername:" + Owner$
print #1, ""
print #1, "Softwaretyp:" + SoftwareType$
print #1, ""
print #1, "Skype-Version:" + Skype$
print #1, ""
print #1, "InternetExplorerVersion:" + start$
print #1, ""
print #1, "Firefoxversion:" + FireFox$
print #1, ""
print #1, "Java Version 32bit:" + Java32$
print #1, ""
print #1, "Adobe Flashplayer:" + FlashPlayer$
print #1, ""
print #1, "Adobe Reader Version" + AdobeVersion$
print #1, ""'
print #1, "Horizontale Bildschirmauflösung: " + str$(x%) + " Pixel"
print #1, ""
print #1, "Vertikale Bildschirmauflösung: " + str$(y%) + " Pixel"
print #1, ""
print #1, "Windowsversion: " + WinV$
print #1, ""
print #1, "Windowsverzeichnis: " + WinP$
print #1, ""
print #1, "Windows-Systemverzeichnis: " + SysP$
print #1, ""
print #1, "*****************************************************************"
print #1, ""
print #1, "***** Made by Gary12345 *****"
close #1
ShellExec(Datei1$,"open",1)
EndIf
EndWhile
Alles anzeigen
Ich find einfach den Fehler nicht - Wäre einer so nett und würde diesen langen Code durchschauen?