Skocz do zawartoś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] z kodem, samo wszystko sie pobiera...


Rekomendowane odpowiedzi

Opublikowano

Mam problem z tym kodem chce żeby sie pobierało po wcisnieciu guzika

 

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=C:\Users\Adam\Desktop\Gui Minecraft.kxf
$Form2 = GUICreate("Form2", 243, 268, 605, 174)
$Tab1 = GUICtrlCreateTab(1, 0, 241, 267)
$TabSheet1 = GUICtrlCreateTabItem("Bukkit")
$Button15 = GUICtrlCreateButton("Ostatnia Stabilna Wersja", 8, 40, 225, 49)
$Button16 = GUICtrlCreateButton("Ostatnia Beta Wersja", 8, 104, 225, 49)
$Button17 = GUICtrlCreateButton("Ostatnia Dev Wersja", 8, 176, 225, 49)
$Progress1 = GUICtrlCreateProgress(8, 232, 225, 25)
$TabSheet2 = GUICtrlCreateTabItem("Pluginy")
$Button1 = GUICtrlCreateButton("Essentials", 8, 32, 227, 17)
$Button2 = GUICtrlCreateButton("CraftBook", 8, 48, 227, 17)
$Button3 = GUICtrlCreateButton("CraftBukkit Automatic Installer", 8, 64, 227, 17)
$Button4 = GUICtrlCreateButton("LagMeter", 8, 80, 227, 17)
$Button5 = GUICtrlCreateButton("LWC", 8, 96, 227, 17)
$Button6 = GUICtrlCreateButton("MobDisguise", 8, 112, 227, 17)
$Button7 = GUICtrlCreateButton("Multiverse-Core", 8, 128, 227, 17)
$Button8 = GUICtrlCreateButton("Multiverse-Portals", 8, 144, 227, 17)
$Button9 = GUICtrlCreateButton("Orebfuscator", 8, 160, 227, 17)
$Button10 = GUICtrlCreateButton("PermissionsEx", 8, 176, 227, 17)
$Button11 = GUICtrlCreateButton("Seats", 8, 192, 227, 17)
$Button12 = GUICtrlCreateButton("WorldEdit", 8, 208, 227, 17)
$Button13 = GUICtrlCreateButton("WorldGuard", 8, 224, 227, 17)
$Progress2 = GUICtrlCreateProgress(8, 243, 227, 14)
$dl1 = InetGet("http://dl.bukkit.org/latest-rb/craftbukkit.jar","craftbukkit.jar", @DesktopDir)
$dl2 = InetGet("http://dl.bukkit.org/latest-beta/craftbukkit.jar","craftbukkit_beta.jar", @DesktopDir)
$dl3 = InetGet("http://dl.bukkit.org/latest-dev/craftbukkit.jar","craftbukkit_dev.jar", @DesktopDir)
GUICtrlCreateTabItem("")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
 Case $GUI_EVENT_CLOSE
  Exit
  Case $Button15
  $dl1
  Case $Button16
  $dl2
  Case $Button17
  $dl3
EndSwitch
WEnd

PS.Mam małe doświatczenie

Opublikowano

musisz wrzucić te komendy pod button

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=C:\Users\Adam\Desktop\Gui Minecraft.kxf
$Form2 = GUICreate("Form2", 243, 268, 605, 174)
$Tab1 = GUICtrlCreateTab(1, 0, 241, 267)
$TabSheet1 = GUICtrlCreateTabItem("Bukkit")
$Button15 = GUICtrlCreateButton("Ostatnia Stabilna Wersja", 8, 40, 225, 49)
$Button16 = GUICtrlCreateButton("Ostatnia Beta Wersja", 8, 104, 225, 49)
$Button17 = GUICtrlCreateButton("Ostatnia Dev Wersja", 8, 176, 225, 49)
$Progress1 = GUICtrlCreateProgress(8, 232, 225, 25)
$TabSheet2 = GUICtrlCreateTabItem("Pluginy")
$Button1 = GUICtrlCreateButton("Essentials", 8, 32, 227, 17)
$Button2 = GUICtrlCreateButton("CraftBook", 8, 48, 227, 17)
$Button3 = GUICtrlCreateButton("CraftBukkit Automatic Installer", 8, 64, 227, 17)
$Button4 = GUICtrlCreateButton("LagMeter", 8, 80, 227, 17)
$Button5 = GUICtrlCreateButton("LWC", 8, 96, 227, 17)
$Button6 = GUICtrlCreateButton("MobDisguise", 8, 112, 227, 17)
$Button7 = GUICtrlCreateButton("Multiverse-Core", 8, 128, 227, 17)
$Button8 = GUICtrlCreateButton("Multiverse-Portals", 8, 144, 227, 17)
$Button9 = GUICtrlCreateButton("Orebfuscator", 8, 160, 227, 17)
$Button10 = GUICtrlCreateButton("PermissionsEx", 8, 176, 227, 17)
$Button11 = GUICtrlCreateButton("Seats", 8, 192, 227, 17)
$Button12 = GUICtrlCreateButton("WorldEdit", 8, 208, 227, 17)
$Button13 = GUICtrlCreateButton("WorldGuard", 8, 224, 227, 17)
$Progress2 = GUICtrlCreateProgress(8, 243, 227, 14)

GUICtrlCreateTabItem("")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
 Case $GUI_EVENT_CLOSE
  Exit
  Case $Button15
  $dl1 = InetGet("http://dl.bukkit.org/latest-rb/craftbukkit.jar","craftbukkit.jar", @DesktopDir)

  Case $Button16
$dl2 = InetGet("http://dl.bukkit.org/latest-beta/craftbukkit.jar","craftbukkit_beta.jar", @DesktopDir)

  Case $Button17
$dl3 = InetGet("http://dl.bukkit.org/latest-dev/craftbukkit.jar","craftbukkit_dev.jar", @DesktopDir)
EndSwitch
WEnd

Opublikowano

Mam jeszcze jedno pytanie jak dodać $progress1 tak aby po naciśnięciu któregoś z tych $Button15 $Button16 $Button17 oraz $progress2 do $Button1 - $Button13 pokazywało ile się pobrało(bez procent tylko pasek)

 

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=C:\Users\Adam\Desktop\Gui Minecraft.kxf
$Form2 = GUICreate("Form2", 243, 268, 605, 174)
$Tab1 = GUICtrlCreateTab(1, 0, 241, 267)
$TabSheet1 = GUICtrlCreateTabItem("Bukkit")
$Button15 = GUICtrlCreateButton("Ostatnia Stabilna Wersja", 8, 40, 225, 49)
$Button16 = GUICtrlCreateButton("Ostatnia Beta Wersja", 8, 104, 225, 49)
$Button17 = GUICtrlCreateButton("Ostatnia Dev Wersja", 8, 176, 225, 49)
$Progress1 = GUICtrlCreateProgress(8, 232, 225, 25)
$TabSheet2 = GUICtrlCreateTabItem("Pluginy")
$Button1 = GUICtrlCreateButton("Essentials", 8, 32, 227, 17)
$Button2 = GUICtrlCreateButton("CraftBook", 8, 48, 227, 17)
$Button3 = GUICtrlCreateButton("CraftBukkit Automatic Installer", 8, 64, 227, 17)
$Button4 = GUICtrlCreateButton("LagMeter", 8, 80, 227, 17)
$Button5 = GUICtrlCreateButton("LWC", 8, 96, 227, 17)
$Button6 = GUICtrlCreateButton("MobDisguise", 8, 112, 227, 17)
$Button7 = GUICtrlCreateButton("Multiverse-Core", 8, 128, 227, 17)
$Button8 = GUICtrlCreateButton("Multiverse-Portals", 8, 144, 227, 17)
$Button9 = GUICtrlCreateButton("Orebfuscator", 8, 160, 227, 17)
$Button10 = GUICtrlCreateButton("PermissionsEx", 8, 176, 227, 17)
$Button11 = GUICtrlCreateButton("Seats", 8, 192, 227, 17)
$Button12 = GUICtrlCreateButton("WorldEdit", 8, 208, 227, 17)
$Button13 = GUICtrlCreateButton("WorldGuard", 8, 224, 227, 17)
$Progress2 = GUICtrlCreateProgress(8, 243, 227, 14)
GUICtrlCreateTabItem("")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
 Case $GUI_EVENT_CLOSE
  Exit
  Case $Button15
  $dl1 = InetGet("http://dl.bukkit.org/latest-rb/craftbukkit.jar","craftbukkit.jar", @DesktopDir)
  Case $Button16
  $dl2 = InetGet("http://dl.bukkit.org/latest-beta/craftbukkit.jar","craftbukkit_beta.jar", @DesktopDir)
  Case $Button17
  $dl3 = InetGet("http://dl.bukkit.org/latest-dev/craftbukkit.jar","craftbukkit_dev.jar", @DesktopDir)
EndSwitch
WEnd

Opublikowano

Zobacz InetGetSize(), w Helpie jest wszystko inne z Inet, myślę, że tyle starczy.

1352970251-U713459.png

By Maxiu
"Because limits, like fears, are often just an illusion"

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...