Skocz do zawartości

Dołącz do społeczności!

👋 Witaj na MPCForum!

Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

  • ✅ Pełny dostęp do działów i ukrytych treści
  • ✅ Możliwość pisania i odpowiadania w tematach
  • ✅ System prywatnych wiadomości
  • ✅ Zbieranie reputacji i rozwijanie swojego profilu
  • ✅ Członkostwo w jednej z największych społeczności graczy

👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

Zarejestruj się teraz

[Problem]Jak Wstawić Tło Do Autoit3

Rekomendowane odpowiedzi

Opublikowano
  • Autor

Zrobiłem tak.

 

FileInstall("D:\grafika\main.png", @Tempdir&"main.png",1)
GUICtrlCreatePic("D:\grafika\main.png", 650, 400, 297, 297)

 

Tak to wygląda i dalej nie działa.

2ivh0ly.jpg

 

Opublikowano

Zrobiłem tak.

 

FileInstall("D:\grafika\main.png", @Tempdir&"main.png",1)
GUICtrlCreatePic("D:\grafika\main.png", 650, 400, 297, 297)

 

Tak to wygląda i dalej nie działa.

.....................

 

 

 

 

OBSŁUGUJE ABY BITMAPĘ

I TO ZE STYLEM

przykład

$Pic55 = GUICtrlCreatePic(@TempDir & "\x\hex.bmp", 0, 0, 373, 541, $BS_BITMAP)

+ zły format fileinstall

FileInstall("D:\grafika\main.png", @Tempdir&"\main.png",1)

 

 

Nie myśl, że się wkurwiłem na Ciebie, nie na Cb, na Je**** compilator..

I jeszcze pytanie.....

Masz Ty w ogóle GUI?....

 

 

 

(Pokaż cały kod jak nie wiesz oc kaman)

za duża sygnatura

Opublikowano

Zrobiłem tak jak mi napisałeś i dalej mi to nie działa.

"I jeszcze pytanie.....

Masz Ty w ogóle GUI?....

 

 

 

(Pokaż cały kod jak nie wiesz oc kaman) "

Czytanie ze zrozumieniem???

za duża sygnatura

Opublikowano
  • Autor

To mój kod

#Include <GuiConstants.au3>
#include <IE.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
Global $name = FileReadLine("patch.cfg",1)
Global $url = FileReadLine("patch.cfg", 2)
Global $start = FileReadLine("patch.cfg", 3)
Global $config = FileReadLine("patch.cfg", 4)
FileInstall("D:\grafika\main.png", @Tempdir&"\main.png",1)
$Pic55 = GUICtrlCreatePic(@TempDir & "D:\grafika\main.png", 0, 0, 373, 541, $BS_BITMAP)

$szerokosc = 650
$wysokosc = 400
$Przyklad = GUICreate($name, $szerokosc, $wysokosc, 300, 300)
$Button1 = GUICtrlCreateButton("Start", 480, 50, 120, 40, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Sieć", 480, 120, 120, 30, $WS_GROUP)
$Button3 = GUICtrlCreateButton("Opcje Gry", 480, 190, 120, 30, $WS_GROUP)
$Button4 = GUICtrlCreateButton("Wyjście", 480, 260, 120, 30, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
       $nMsg = GUIGetMsg()
       Switch $nMsg
               Case $GUI_EVENT_CLOSE
                                       MsgBox(64,"Siriusz","Zapraszamy ponownie") 
                       Exit     
                               Case $Button1
                                       run($start) 
                                               Exit
               Case $Button2
                      _IECreate($url)
               Case $Button3
                   run($config)
                               case $Button4
                                               MsgBox(64,"Siriusz","Zapraszamy ponownie") 
															Exit
       EndSwitch
WEnd

2ivh0ly.jpg

 

Opublikowano

To mój kod

#Include <GuiConstants.au3>
#include <IE.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
Global $name = FileReadLine("patch.cfg",1)
Global $url = FileReadLine("patch.cfg", 2)
Global $start = FileReadLine("patch.cfg", 3)
Global $config = FileReadLine("patch.cfg", 4)
FileInstall("D:\grafika\main.png", @Tempdir&"\main.png",1)
$Pic55 = GUICtrlCreatePic(@TempDir & "D:\grafika\main.png", 0, 0, 373, 541, $BS_BITMAP)

$szerokosc = 650
$wysokosc = 400
$Przyklad = GUICreate($name, $szerokosc, $wysokosc, 300, 300)
$Button1 = GUICtrlCreateButton("Start", 480, 50, 120, 40, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Sieć", 480, 120, 120, 30, $WS_GROUP)
$Button3 = GUICtrlCreateButton("Opcje Gry", 480, 190, 120, 30, $WS_GROUP)
$Button4 = GUICtrlCreateButton("Wyjście", 480, 260, 120, 30, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
       $nMsg = GUIGetMsg()
       Switch $nMsg
               Case $GUI_EVENT_CLOSE
                                       MsgBox(64,"Siriusz","Zapraszamy ponownie") 
                       Exit     
                               Case $Button1
                                       run($start) 
                                               Exit
               Case $Button2
                      _IECreate($url)
               Case $Button3
                   run($config)
                               case $Button4
                                               MsgBox(64,"Siriusz","Zapraszamy ponownie") 
															Exit
       EndSwitch
WEnd

 

 

#Include <File.au3>
#Include <GuiConstants.au3>
#include <IE.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#NoTrayIcon
Global $m2ordner = @ScriptDir
Global $ScriptDir = @ScriptDir
Global $TempDir = @TempDir
Global $url = "strona z patchem"
Global $adurl = "www.google.pl"
Global $fensterurl = "www.google.pl"
Global $buttonurl = "www.google.pl"
FileInstall("E:\Nowy folder (3)\main.bmp", @Tempdir&"\main.bmp",1)
FileInstall("E:\Nowy folder (3)\btn_startgame_up.bmp", @Tempdir&"\btn_startgame_up.bmp",1)
FileInstall("E:\Nowy folder (3)\btn_settings_up.bmp", @Tempdir&"\btn_settings_up.bmp",1)
FileInstall("E:\Nowy folder (3)\btn_newaccount_up.bmp", @Tempdir&"\btn_newaccount_up.bmp",1)
FileInstall("E:\Nowy folder (3)\btn_idpwd_up.bmp", @Tempdir&"\btn_idpwd_up.bmp",1)
FileInstall("E:\Nowy folder (3)\btn_quit_up.bmp", @Tempdir&"\btn_quit_up.bmp",1)

Opt("GUIOnEventMode", 1)
$Form1 = GUICreate("Isara - Patcher [ by P.R. ]", 373, 541, 193, 125)
GUISetOnEvent($GUI_EVENT_CLOSE, "_close")
$stat = GUICtrlCreateEdit("", 16, 8, 337, 281)
GUICtrlSetData(-1, "[ Patcher by P.R. ]"&@CRLF&"Rozpoczynanie pobierania...")
$cancel = GUICtrlCreateButton("Anuluj", 288, 496, 75, 25, 0)
GUICtrlSetOnEvent($cancel, "_close")

$Progress1 = GUICtrlCreateProgress(16, 464, 334, 17)
;16, 312, 340, 13
$oIE = _IECreateEmbedded()
$oIE_ctrl = GUICtrlCreateObj($oIE, 16, 312, 336, 136)
GUISetState(@SW_SHOW)
_IENavigate($oIE, $adurl)
$Form2 = GUICreate("Isara - Patcher [ by P.R. ]", 595, 385, 328, 160)
GUISetOnEvent($GUI_EVENT_CLOSE, "_close")
$Pic1 = GUICtrlCreatePic(@Tempdir&"\main.bmp", 0, 0, 593, 382, $BS_BITMAP)
$ende = GUICtrlCreateButton("(Not allowed)", 464, 352, 127, 25, $BS_BITMAP)
GUICtrlSetImage(-1,  @Tempdir&"\btn_quit_up.bmp", 1)
GUICtrlSetOnEvent($ende, "_close")
$oIE1 = _IECreateEmbedded()
$oIE_ctrl1 = GUICtrlCreateObj($oIE1, 8, 8, 456, 376)
_IENavigate($oIE1, $fensterurl)

GUISetState(@SW_HIDE)

Func seite ()
   _IECreate($buttonurl)
EndFunc

func start ()
   run($Scriptdir&"\metin2.bin")
   Exit
EndFunc

Func config ()
   Run($ScriptDir&"\config.exe")
EndFunc


func _close ()
   Exit
EndFunc
Sleep (500)
patch ()


func patch ()
   $file = @TempDir&"\pliki.txt"
    InetGet( $url&"\pliki.txt" , $file)
   $lines = _FileCountLines($file)
   If $lines = 0 Then
       MsgBox(48,"Uwaga!","Niewykryto downloadu na serwerze!")
       Exit
   EndIf
   DirCreate("pobrane")
   While ($lines >= 1)
       $datei = FileReadLine($file,$lines)
       GUICtrlSetData($stat,"Sprawdzanie pliku: "& $datei & @CRLF & GUICtrlRead($stat))
               $size_inet = InetGetSize($url&"\"&$datei)
       If FileExists($ScriptDir&"\"&$datei) Then
		If @error Then
               MsgBox(16 , "Fehler", @error)
           EndIf
           $size_ordner = FileGetSize( $ScriptDir&"\"&$datei)
           If $size_inet <> $size_ordner Then
               GUICtrlSetData($stat,"Pobieranie pliku: "& $datei & @CRLF & GUICtrlRead($stat))
               InetGet($url&$datei , $ScriptDir& "\" & $datei , 1 , 1)
               while 1
                   $hFileSize = FileGetSize($ScriptDir & "\" & $datei)
                   $iPercent = round ( @InetGetBytesRead  /  $size_inet   *100)
                   GUICtrlSetData($Progress1, $iPercent)
               If $hFileSize = $size_inet Then
               GUICtrlSetData($Progress1, 100)
               ExitLoop
           EndIf
           sleep (50)
       WEnd
       Else
           GUICtrlSetData($stat,"Sprawdzono plik: "& $datei & @CRLF & GUICtrlRead($stat))
           EndIf
       Else
           InetGet($url&$datei,$ScriptDir&"\"&$datei,1,1)
           GUICtrlSetData($stat, "Pobieranie pliku: "& $datei& @CRLF & GUICtrlRead($stat))
           while 1
               $hFileSize = FileGetSize($ScriptDir & "\" & $datei)

               $iPercent = round ( $InetGetBytesRead / $size_inet *100)

               GUICtrlSetData($Progress1, $iPercent)

           If $hFileSize = $size_inet Then
               GUICtrlSetData($Progress1, 100)
               ExitLoop
           EndIf
           sleep (50)
       WEnd
       EndIf
       sleep (500)
       $lines = $lines-1
   WEnd
   FileDelete($TempDir&"\pliki.txt")
MsgBox(64, "Gotowe! ", "W folderze pobrane znajdują się pliki które Ci wysłałem !")
Exit
   GUISetState(@SW_HIDE,$Form1)
   GUISetState(@SW_SHOW,$Form2)
while 1
   Sleep(100)
WEnd
EndFunc

 

Wygooglałem chujowego "paczera" do m2.

za duża sygnatura

Opublikowano

To mój kod

#Include <GuiConstants.au3>
#include <IE.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
Global $name = FileReadLine("patch.cfg",1)
Global $url = FileReadLine("patch.cfg", 2)
Global $start = FileReadLine("patch.cfg", 3)
Global $config = FileReadLine("patch.cfg", 4)
FileInstall("D:\grafika\main.png", @Tempdir&"\main.png",1)
$Pic55 = GUICtrlCreatePic(@TempDir & "D:\grafika\main.png", 0, 0, 373, 541, $BS_BITMAP)

$szerokosc = 650
$wysokosc = 400
$Przyklad = GUICreate($name, $szerokosc, $wysokosc, 300, 300)
$Button1 = GUICtrlCreateButton("Start", 480, 50, 120, 40, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Sieć", 480, 120, 120, 30, $WS_GROUP)
$Button3 = GUICtrlCreateButton("Opcje Gry", 480, 190, 120, 30, $WS_GROUP)
$Button4 = GUICtrlCreateButton("Wyjście", 480, 260, 120, 30, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
       $nMsg = GUIGetMsg()
       Switch $nMsg
               Case $GUI_EVENT_CLOSE
                                       MsgBox(64,"Siriusz","Zapraszamy ponownie") 
                       Exit     
                               Case $Button1
                                       run($start) 
                                               Exit
               Case $Button2
                      _IECreate($url)
               Case $Button3
                   run($config)
                               case $Button4
                                               MsgBox(64,"Siriusz","Zapraszamy ponownie") 
															Exit
       EndSwitch
WEnd

http://www.mpcforum.pl/topic/172897-tut-polski-patcher-na-twoj-serwer/

 

Look....

za duża sygnatura

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.

Ostatnio przeglądający 0

  • Brak zarejestrowanych użytkowników przeglądających tę stronę.

Konto

Nawigacja

Skonfiguruj powiadomienia push w przeglądarce

Chrome (Android)
  1. Stuknij ikonę kłódki obok paska adresu.
  2. Stuknij Uprawnienia → Powiadomienia.
  3. Dostosuj swoje ustawienie.
Chrome (Komputer)
  1. Kliknij ikonę kłódki na pasku adresu.
  2. Wybierz Ustawienia witryny.
  3. Znajdź Powiadomienia i dostosuj swoje ustawienie.