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

[Pytanie] Serwerinfo

Rekomendowane odpowiedzi

Opublikowano

Przepraszam ze taki pisze ale to wazne,

 

Jak zrobić program w AutoIt ktory po uruchomieniu ma miejsce do wpisania czegoś a pod spodem przycisk generuj

 

I teraz na jak wpisze w ta rubryke 1.2345.2345 i naciśnie generuj to pokazuje sie coś takiego

 

 

import locale

if locale.IsEUROPE():

STATE_NONE ="..."

 

STATE_DICT = {

0 :"...",

1 :"NORM",

2 :"BUSY",

3 :"FULL"

}

SERVER01_CHANNEL_DICT = {

1:{"key":11,"name":"CH1 ","ip":"----------------tu rzecz wpisana w oknie---------------","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},

}

REGION_NAME_DICT = {

0 : "POLAND",

}

REGION_AUTH_SERVER_DICT = {

0 : {

1 : { "ip":"--------------tu rzecz wpisana w oknie-----------------", "port":11002, },

}

}

REGION_DICT = {

0 : {

1 : { "name" :"Server 01", "channel" : SERVER01_CHANNEL_DICT, },

},

}

MARKADDR_DICT = {

10 : { "ip" :"------------tu rzecz wpisana w oknie-----------------", "tcp_port" : 13000, "mark" : "10.tga", "symbol_path" : "10", },

}

 

TESTADDR = { "ip" : "210.123.10.153", "tcp_port" : 50000, "udp_port" : 50000, }

 

 

 

 

z mozliwością skopiowania tego

 

 

Bardzo wazne dla mnie bo robie moda by Woj96 prosze o pomoc

4143_1.png

Opublikowano

da się zrobić tylko daj mi czas

liczylem na barce lecz ona niemogla wygrac.

Przez kibicow ktorzy przy rzutach roznych wolnych swiecili w messiego laserami

Opublikowano

nawet nie potrafisz nazwać że trzeba wpisać adres IP :/

format do wpisania ip jest liczba.liczba.liczba gdzie liczba nie moze być większa od 255

 

chyba był kiedyś taki skrypt do sprawdzania statusu serwera

If you = stupid then

insert(foot.in.your.ass)

end if

licznik-54-96732-stat.png

Opublikowano

Przepraszam ze taki pisze ale to wazne,

 

Jak zrobić program w AutoIt ktory po uruchomieniu ma miejsce do wpisania czegoś a pod spodem przycisk generuj

 

I teraz na jak wpisze w ta rubryke 1.2345.2345 i naciśnie generuj to pokazuje sie coś takiego

 

 

import locale

if locale.IsEUROPE():

STATE_NONE ="..."

 

STATE_DICT = {

0 :"...",

1 :"NORM",

2 :"BUSY",

3 :"FULL"

}

 

To chyba nie bedzie mod by woj96 jak ktoś odwali za ciebie większość roboty.B)8S

SERVER01_CHANNEL_DICT = {

1:{"key":11,"name":"CH1 ","ip":"----------------tu rzecz wpisana w oknie---------------","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},

}

REGION_NAME_DICT = {

0 : "POLAND",

}

REGION_AUTH_SERVER_DICT = {

0 : {

1 : { "ip":"--------------tu rzecz wpisana w oknie-----------------", "port":11002, },

}

}

REGION_DICT = {

0 : {

1 : { "name" :"Server 01", "channel" : SERVER01_CHANNEL_DICT, },

},

}

MARKADDR_DICT = {

10 : { "ip" :"------------tu rzecz wpisana w oknie-----------------", "tcp_port" : 13000, "mark" : "10.tga", "symbol_path" : "10", },

}

 

TESTADDR = { "ip" : "210.123.10.153", "tcp_port" : 50000, "udp_port" : 50000, }

 

 

 

 

z mozliwością skopiowania tego

 

 

Bardzo wazne dla mnie bo robie moda by Woj96 prosze o pomoc

Opublikowano

łap

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 318, 121, 192, 114)
$Input1 = GUICtrlCreateInput("", 28, 22, 242, 21, 0x2000)
$Button1 = GUICtrlCreateButton("Generuj !", 54, 64, 216, 41, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$Msg = GUIGetMsg()
Select
	Case $Msg = $GUI_EVENT_CLOSE
		Exit
	Case $Msg = $Button1
		$ip = GUICtrlRead($Input1)
		ip()
EndSelect
WEnd
Func ip()

$Form1 = GUICreate("Form1", 839, 758, 192, 114)
$Edit1 = GUICtrlCreateEdit("", 15, 3, 789, 720)
GUICtrlSetData(-1, StringFormat("import locale\r\nif locale.IsEUROPE():\r\nSTATE_NONE =" & Chr(34) & "..." & Chr(34) & "\r\n\r\nSTATE_DICT = {\r\n0 :" & Chr(34) & "..." & Chr(34) & ",\r\n1 :" & Chr(34) & "NORM" & Chr(34) & ",\r\n2 :" & Chr(34) & "BUSY" & Chr(34) & ",\r\n3 :" & Chr(34) & "FULL" & Chr(34) & "\r\n}\r\nSERVER01_CHANNEL_DICT = {\r\n1:{" & Chr(34) & "key" & Chr(34) & ":11," & Chr(34) & "name" & Chr(34) & ":" & Chr(34) & "CH1 " & Chr(34) & "," & Chr(34) & "ip" & Chr(34) & ":" & Chr(34) & $ip & Chr(34) & "," & Chr(34) & "tcp_port" & Chr(34) & ":13000," & Chr(34) & "udp_port" & Chr(34) & ":13000," & Chr(34) & "state" & Chr(34) & ":STATE_NONE,},\r\n}\r\nREGION_NAME_DICT = {\r\n0 : " & Chr(34) & "POLAND" & Chr(34) & ",\r\n}\r\nREGION_AUTH_SERVER_DICT = {\r\n0 : {\r\n1 : { " & Chr(34) & "ip" & Chr(34) & ":" & Chr(34) &$ip & Chr(34) & ", " & Chr(34) & "port" & Chr(34) & ":11002, },\r\n}\r\n}\r\nREGION_DICT = {\r\n0 : {\r\n1 : { " & Chr(34) & "name" & Chr(34) & " :" & Chr(34) & "Server 01" & Chr(34) & ", " & Chr(34) & "channel" & Chr(34) & " : SERVER01_CHANNEL_DICT, },\r\n},\r\n}\r\nMARKADDR_DICT = {\r\n10 : { " & Chr(34) & "ip" & Chr(34) & " :" & Chr(34) &$ip& Chr(34) & ", " & Chr(34) & "tcp_port" & Chr(34) & " : 13000, " & Chr(34) & "mark" & Chr(34) & " : " & Chr(34) & "10.tga" & Chr(34) & ", " & Chr(34) & "symbol_path" & Chr(34) & " : " & Chr(34) & "10" & Chr(34) & ", },\r\n}\r\n\r\nTESTADDR = { " & Chr(34) & "ip" & Chr(34) & " : " & Chr(34) & "210.123.10.153" & Chr(34) & ", " & Chr(34) & "tcp_port" & Chr(34) & " : 50000, " & Chr(34) & "udp_port" & Chr(34) & " : 50000, }"))

GUISetState(@SW_SHOW)
EndFunc   ;==>ip

liczylem na barce lecz ona niemogla wygrac.

Przez kibicow ktorzy przy rzutach roznych wolnych swiecili w messiego laserami

Opublikowano

błędy w kodzie już widać , napisałem wyraźnie, wprowadzana liczba musi być w określonym formacie

 

zresztą autoit ma coś takiego jak

_GUICtrlIpAddress_Set
_GUICtrlIpAddress_Create
_GUICtrlIpAddress_Get

a nawet coś takiego jak

_GUICtrlIpAddress_GetEx

If you = stupid then

insert(foot.in.your.ass)

end if

licznik-54-96732-stat.png

Opublikowano

robem spokój jakie błędy? wszystko śmiga

_GUICtrlIpAddress_Set tego nie mogę odczytać jako zmiennej

liczylem na barce lecz ona niemogla wygrac.

Przez kibicow ktorzy przy rzutach roznych wolnych swiecili w messiego laserami

Opublikowano

nadal nie zrozumiałe ? tam musi znajdować się adres IP we właściwym formacie inaczej będą błędy

 

okienko do wpisu : $IPAddress = _GUICtrlIpAddress_Create($gui, 10, 10)

 

to dla przykładu jak wprowadzić dane : _GUICtrlIpAddress_Set ($IPAddress, "11.11.11.11")

 

tym można odczyta wartość : _GUICtrlIpAddress_Get($IPAddress) = $IP

If you = stupid then

insert(foot.in.your.ass)

end if

licznik-54-96732-stat.png

Opublikowano

w kodzie będą błędy?

NIE MA BŁEDÓW JAK WPISZESZ W INPUT 255.250

to

wszystko działa

liczylem na barce lecz ona niemogla wygrac.

Przez kibicow ktorzy przy rzutach roznych wolnych swiecili w messiego laserami

Opublikowano

nadal nie zrozumiałeś ? to sobie wpisz jakikolwiek adres IP i wygeneruj

powodzenia

If you = stupid then

insert(foot.in.your.ass)

end if

licznik-54-96732-stat.png

Opublikowano

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 318, 121, 192, 114)
$Input1 = GUICtrlCreateInput("", 28, 22, 242, 21)
$Button1 = GUICtrlCreateButton("Generuj !", 54, 64, 216, 41, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$Msg = GUIGetMsg()
Select
	Case $Msg = $GUI_EVENT_CLOSE
		Exit
	Case $Msg = $Button1
		$ip = GUICtrlRead($Input1)
		ip()
EndSelect
WEnd
Func ip()

$Form1 = GUICreate("Form1", 839, 758, 192, 114)
$Edit1 = GUICtrlCreateEdit("", 15, 3, 789, 720)
GUICtrlSetData(-1, StringFormat("import locale\r\nif locale.IsEUROPE():\r\nSTATE_NONE =" & Chr(34) & "..." & Chr(34) & "\r\n\r\nSTATE_DICT = {\r\n0 :" & Chr(34) & "..." & Chr(34) & ",\r\n1 :" & Chr(34) & "NORM" & Chr(34) & ",\r\n2 :" & Chr(34) & "BUSY" & Chr(34) & ",\r\n3 :" & Chr(34) & "FULL" & Chr(34) & "\r\n}\r\nSERVER01_CHANNEL_DICT = {\r\n1:{" & Chr(34) & "key" & Chr(34) & ":11," & Chr(34) & "name" & Chr(34) & ":" & Chr(34) & "CH1 " & Chr(34) & "," & Chr(34) & "ip" & Chr(34) & ":" & Chr(34) & $ip & Chr(34) & "," & Chr(34) & "tcp_port" & Chr(34) & ":13000," & Chr(34) & "udp_port" & Chr(34) & ":13000," & Chr(34) & "state" & Chr(34) & ":STATE_NONE,},\r\n}\r\nREGION_NAME_DICT = {\r\n0 : " & Chr(34) & "POLAND" & Chr(34) & ",\r\n}\r\nREGION_AUTH_SERVER_DICT = {\r\n0 : {\r\n1 : { " & Chr(34) & "ip" & Chr(34) & ":" & Chr(34) &$ip & Chr(34) & ", " & Chr(34) & "port" & Chr(34) & ":11002, },\r\n}\r\n}\r\nREGION_DICT = {\r\n0 : {\r\n1 : { " & Chr(34) & "name" & Chr(34) & " :" & Chr(34) & "Server 01" & Chr(34) & ", " & Chr(34) & "channel" & Chr(34) & " : SERVER01_CHANNEL_DICT, },\r\n},\r\n}\r\nMARKADDR_DICT = {\r\n10 : { " & Chr(34) & "ip" & Chr(34) & " :" & Chr(34) &$ip& Chr(34) & ", " & Chr(34) & "tcp_port" & Chr(34) & " : 13000, " & Chr(34) & "mark" & Chr(34) & " : " & Chr(34) & "10.tga" & Chr(34) & ", " & Chr(34) & "symbol_path" & Chr(34) & " : " & Chr(34) & "10" & Chr(34) & ", },\r\n}\r\n\r\nTESTADDR = { " & Chr(34) & "ip" & Chr(34) & " : " & Chr(34) & "210.123.10.153" & Chr(34) & ", " & Chr(34) & "tcp_port" & Chr(34) & " : 50000, " & Chr(34) & "udp_port" & Chr(34) & " : 50000, }"))

GUISetState(@SW_SHOW)
EndFunc   ;==>ip

liczylem na barce lecz ona niemogla wygrac.

Przez kibicow ktorzy przy rzutach roznych wolnych swiecili w messiego laserami

Opublikowano

słabo nadal błędy bo można wpisać cokolwiek

 

 

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <GuiIPAddress.au3>

#region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 318, 121, 192, 114)
$IPAddress = _GUICtrlIpAddress_Create($Form1, 10, 10)
$Button1 = GUICtrlCreateButton("Generuj !", 54, 64, 216, 41, $WS_GROUP)
GUISetState(@SW_SHOW)
#endregion ### END Koda GUI section ###

While 1
$Msg = GUIGetMsg()
Select
	Case $Msg = $GUI_EVENT_CLOSE
		Exit
	Case $Msg = $Button1
		$ip = _GUICtrlIpAddress_Get($IPAddress)
		ip()
EndSelect
WEnd
Func ip()

$Form1 = GUICreate("Form1", 839, 758, 192, 114)
$Edit1 = GUICtrlCreateEdit("", 15, 3, 789, 720)
GUICtrlSetData(-1, StringFormat("import locale\r\nif locale.IsEUROPE():\r\nSTATE_NONE =" & Chr(34) & "..." & Chr(34) & "\r\n\r\nSTATE_DICT = {\r\n0 :" & Chr(34) & "..." & Chr(34) & ",\r\n1 :" & Chr(34) & "NORM" & Chr(34) & ",\r\n2 :" & Chr(34) & "BUSY" & Chr(34) & ",\r\n3 :" & Chr(34) & "FULL" & Chr(34) & "\r\n}\r\nSERVER01_CHANNEL_DICT = {\r\n1:{" & Chr(34) & "key" & Chr(34) & ":11," & Chr(34) & "name" & Chr(34) & ":" & Chr(34) & "CH1 " & Chr(34) & "," & Chr(34) & "ip" & Chr(34) & ":" & Chr(34) & $ip & Chr(34) & "," & Chr(34) & "tcp_port" & Chr(34) & ":13000," & Chr(34) & "udp_port" & Chr(34) & ":13000," & Chr(34) & "state" & Chr(34) & ":STATE_NONE,},\r\n}\r\nREGION_NAME_DICT = {\r\n0 : " & Chr(34) & "POLAND" & Chr(34) & ",\r\n}\r\nREGION_AUTH_SERVER_DICT = {\r\n0 : {\r\n1 : { " & Chr(34) & "ip" & Chr(34) & ":" & Chr(34) & $ip & Chr(34) & ", " & Chr(34) & "port" & Chr(34) & ":11002, },\r\n}\r\n}\r\nREGION_DICT = {\r\n0 : {\r\n1 : { " & Chr(34) & "name" & Chr(34) & " :" & Chr(34) & "Server 01" & Chr(34) & ", " & Chr(34) & "channel" & Chr(34) & " : SERVER01_CHANNEL_DICT, },\r\n},\r\n}\r\nMARKADDR_DICT = {\r\n10 : { " & Chr(34) & "ip" & Chr(34) & " :" & Chr(34) & $ip & Chr(34) & ", " & Chr(34) & "tcp_port" & Chr(34) & " : 13000, " & Chr(34) & "mark" & Chr(34) & " : " & Chr(34) & "10.tga" & Chr(34) & ", " & Chr(34) & "symbol_path" & Chr(34) & " : " & Chr(34) & "10" & Chr(34) & ", },\r\n}\r\n\r\nTESTADDR = { " & Chr(34) & "ip" & Chr(34) & " : " & Chr(34) & "210.123.10.153" & Chr(34) & ", " & Chr(34) & "tcp_port" & Chr(34) & " : 50000, " & Chr(34) & "udp_port" & Chr(34) & " : 50000, }"))

GUISetState(@SW_SHOW)
EndFunc   ;==>ip 

 

If you = stupid then

insert(foot.in.your.ass)

end if

licznik-54-96732-stat.png

Opublikowano
  • Autor

O to mi chodził koledzy!!! mozliwe jest zeby pod kodem było jeszcze zapisz plik i zapisuje w danym przez ta osobe notatniku

 

np:

 

serverinfo.PY

4143_1.png

Opublikowano

Up yyy nie Chyba File write

liczylem na barce lecz ona niemogla wygrac.

Przez kibicow ktorzy przy rzutach roznych wolnych swiecili w messiego laserami

Opublikowano

Masz nowy ulepszony kod z zapisywaniem w pliku .py

 

 

 

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <GuiIPAddress.au3>

#region ### START Koda GUI section ### Form=
$Form1 = GUICreate("AutoGeneric-ServerInfo", 318, 121, 192, 114)
$IPAddress = _GUICtrlIpAddress_Create($Form1, 10, 10)
$Button1 = GUICtrlCreateButton("Generuj server!", 54, 64, 216, 41, $WS_GROUP)
GUISetState(@SW_SHOW)
#endregion ### END Koda GUI section ###

While 1
$Msg = GUIGetMsg()
Select
Case $Msg = $GUI_EVENT_CLOSE
Exit
Case $Msg = $Button1
$ip = _GUICtrlIpAddress_Get($IPAddress)
ip()
EndSelect
WEnd
Func ip()
GUIDelete()
$Form1 = GUICreate("AutoGeneric-ServerInfo", 839, 758, 192, 114)
$Edit1 = GUICtrlCreateEdit("", 15, 3, 789, 600)
GUICtrlSetData(-1, StringFormat("import locale\r\nif locale.IsEUROPE():\r\nSTATE_NONE =" & Chr(34) & "..." & Chr(34) & "\r\n\r\nSTATE_DICT = {\r\n0 :" & Chr(34) & "..." & Chr(34) & ",\r\n1 :" & Chr(34) & "NORM" & Chr(34) & ",\r\n2 :" & Chr(34) & "BUSY" & Chr(34) & ",\r\n3 :" & Chr(34) & "FULL" & Chr(34) & "\r\n}\r\nSERVER01_CHANNEL_DICT = {\r\n1:{" & Chr(34) & "key" & Chr(34) & ":11," & Chr(34) & "name" & Chr(34) & ":" & Chr(34) & "CH1 " & Chr(34) & "," & Chr(34) & "ip" & Chr(34) & ":" & Chr(34) & $ip & Chr(34) & "," & Chr(34) & "tcp_port" & Chr(34) & ":13000," & Chr(34) & "udp_port" & Chr(34) & ":13000," & Chr(34) & "state" & Chr(34) & ":STATE_NONE,},\r\n}\r\nREGION_NAME_DICT = {\r\n0 : " & Chr(34) & "POLAND" & Chr(34) & ",\r\n}\r\nREGION_AUTH_SERVER_DICT = {\r\n0 : {\r\n1 : { " & Chr(34) & "ip" & Chr(34) & ":" & Chr(34) & $ip & Chr(34) & ", " & Chr(34) & "port" & Chr(34) & ":11002, },\r\n}\r\n}\r\nREGION_DICT = {\r\n0 : {\r\n1 : { " & Chr(34) & "name" & Chr(34) & " :" & Chr(34) & "Server 01" & Chr(34) & ", " & Chr(34) & "channel" & Chr(34) & " : SERVER01_CHANNEL_DICT, },\r\n},\r\n}\r\nMARKADDR_DICT = {\r\n10 : { " & Chr(34) & "ip" & Chr(34) & " :" & Chr(34) & $ip & Chr(34) & ", " & Chr(34) & "tcp_port" & Chr(34) & " : 13000, " & Chr(34) & "mark" & Chr(34) & " : " & Chr(34) & "10.tga" & Chr(34) & ", " & Chr(34) & "symbol_path" & Chr(34) & " : " & Chr(34) & "10" & Chr(34) & ", },\r\n}\r\n\r\nTESTADDR = { " & Chr(34) & "ip" & Chr(34) & " : " & Chr(34) & "210.123.10.153" & Chr(34) & ", " & Chr(34) & "tcp_port" & Chr(34) & " : 50000, " & Chr(34) & "udp_port" & Chr(34) & " : 50000, }"))
$save = GUICtrlCreateButton("Zapisz plik",20,650)
GUISetState(@SW_SHOW)
while 1
$msg = GUIGetMsg()
Select
	case $msg= $save
					$i = StringFormat("import locale\r\nif locale.IsEUROPE():\r\nSTATE_NONE =" & Chr(34) & "..." & Chr(34) & "\r\n\r\nSTATE_DICT = {\r\n0 :" & Chr(34) & "..." & Chr(34) & ",\r\n1 :" & Chr(34) & "NORM" & Chr(34) & ",\r\n2 :" & Chr(34) & "BUSY" & Chr(34) & ",\r\n3 :" & Chr(34) & "FULL" & Chr(34) & "\r\n}\r\nSERVER01_CHANNEL_DICT = {\r\n1:{" & Chr(34) & "key" & Chr(34) & ":11," & Chr(34) & "name" & Chr(34) & ":" & Chr(34) & "CH1 " & Chr(34) & "," & Chr(34) & "ip" & Chr(34) & ":" & Chr(34) & $ip & Chr(34) & "," & Chr(34) & "tcp_port" & Chr(34) & ":13000," & Chr(34) & "udp_port" & Chr(34) & ":13000," & Chr(34) & "state" & Chr(34) & ":STATE_NONE,},\r\n}\r\nREGION_NAME_DICT = {\r\n0 : " & Chr(34) & "POLAND" & Chr(34) & ",\r\n}\r\nREGION_AUTH_SERVER_DICT = {\r\n0 : {\r\n1 : { " & Chr(34) & "ip" & Chr(34) & ":" & Chr(34) & $ip & Chr(34) & ", " & Chr(34) & "port" & Chr(34) & ":11002, },\r\n}\r\n}\r\nREGION_DICT = {\r\n0 : {\r\n1 : { " & Chr(34) & "name" & Chr(34) & " :" & Chr(34) & "Server 01" & Chr(34) & ", " & Chr(34) & "channel" & Chr(34) & " : SERVER01_CHANNEL_DICT, },\r\n},\r\n}\r\nMARKADDR_DICT = {\r\n10 : { " & Chr(34) & "ip" & Chr(34) & " :" & Chr(34) & $ip & Chr(34) & ", " & Chr(34) & "tcp_port" & Chr(34) & " : 13000, " & Chr(34) & "mark" & Chr(34) & " : " & Chr(34) & "10.tga" & Chr(34) & ", " & Chr(34) & "symbol_path" & Chr(34) & " : " & Chr(34) & "10" & Chr(34) & ", },\r\n}\r\n\r\nTESTADDR = { " & Chr(34) & "ip" & Chr(34) & " : " & Chr(34) & "210.123.10.153" & Chr(34) & ", " & Chr(34) & "tcp_port" & Chr(34) & " : 50000, " & Chr(34) & "udp_port" & Chr(34) & " : 50000, }")
FileWrite("kod_by_adwi_and_robem.py",$i)
Case $msg = $GUI_EVENT_CLOSE
MSgBox(1,"Team","Dziekujemy za uzywanie programu!")
exit
EndSelect
WEnd
EndFunc ;==>ip

 

liczylem na barce lecz ona niemogla wygrac.

Przez kibicow ktorzy przy rzutach roznych wolnych swiecili w messiego laserami

Opublikowano

Tu kod fianłowy i do Woj96 nie usuwaj przycisku INFO

Dodałem wybranie katalogu metina.

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <GuiIPAddress.au3>

#region ### START Koda GUI section ### Form=
$Form1 = GUICreate("AutoGeneric-ServerInfo", 318, 121, 192, 114)
$IPAddress = _GUICtrlIpAddress_Create($Form1, 90, 10)
$Button1 = GUICtrlCreateButton("Generuj server!", 14, 64, 150, 41, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Info", 168,64, 150, 41, $WS_GROUP)
GUISetState(@SW_SHOW)
#endregion ### END Koda GUI section ###

While 1
$Msg = GUIGetMsg()
Select
Case $Msg = $GUI_EVENT_CLOSE
Exit
Case $msg = $Button2
MsgBox(0,"Info o autorach","Główny kod:  adwi32" & @CRLF & "Dopracowania#1:  robem" & @CRLF & "Dopracowania#2:  asdek171")
Case $Msg = $Button1
$ip = _GUICtrlIpAddress_Get($IPAddress)
ip()
EndSelect
WEnd
Func ip()
GUIDelete()
$Form1 = GUICreate("AutoGeneric-ServerInfo", 839, 758, 192, 114)
$Edit1 = GUICtrlCreateEdit("", 15, 3, 789, 600)
GUICtrlSetData(-1, StringFormat("import locale\r\nif locale.IsEUROPE():\r\nSTATE_NONE =" & Chr(34) & "..." & Chr(34) & "\r\n\r\nSTATE_DICT = {\r\n0 :" & Chr(34) & "..." & Chr(34) & ",\r\n1 :" & Chr(34) & "NORM" & Chr(34) & ",\r\n2 :" & Chr(34) & "BUSY" & Chr(34) & ",\r\n3 :" & Chr(34) & "FULL" & Chr(34) & "\r\n}\r\nSERVER01_CHANNEL_DICT = {\r\n1:{" & Chr(34) & "key" & Chr(34) & ":11," & Chr(34) & "name" & Chr(34) & ":" & Chr(34) & "CH1 " & Chr(34) & "," & Chr(34) & "ip" & Chr(34) & ":" & Chr(34) & $ip & Chr(34) & "," & Chr(34) & "tcp_port" & Chr(34) & ":13000," & Chr(34) & "udp_port" & Chr(34) & ":13000," & Chr(34) & "state" & Chr(34) & ":STATE_NONE,},\r\n}\r\nREGION_NAME_DICT = {\r\n0 : " & Chr(34) & "POLAND" & Chr(34) & ",\r\n}\r\nREGION_AUTH_SERVER_DICT = {\r\n0 : {\r\n1 : { " & Chr(34) & "ip" & Chr(34) & ":" & Chr(34) & $ip & Chr(34) & ", " & Chr(34) & "port" & Chr(34) & ":11002, },\r\n}\r\n}\r\nREGION_DICT = {\r\n0 : {\r\n1 : { " & Chr(34) & "name" & Chr(34) & " :" & Chr(34) & "Server 01" & Chr(34) & ", " & Chr(34) & "channel" & Chr(34) & " : SERVER01_CHANNEL_DICT, },\r\n},\r\n}\r\nMARKADDR_DICT = {\r\n10 : { " & Chr(34) & "ip" & Chr(34) & " :" & Chr(34) & $ip & Chr(34) & ", " & Chr(34) & "tcp_port" & Chr(34) & " : 13000, " & Chr(34) & "mark" & Chr(34) & " : " & Chr(34) & "10.tga" & Chr(34) & ", " & Chr(34) & "symbol_path" & Chr(34) & " : " & Chr(34) & "10" & Chr(34) & ", },\r\n}\r\n\r\nTESTADDR = { " & Chr(34) & "ip" & Chr(34) & " : " & Chr(34) & "210.123.10.153" & Chr(34) & ", " & Chr(34) & "tcp_port" & Chr(34) & " : 50000, " & Chr(34) & "udp_port" & Chr(34) & " : 50000, }"))
$save = GUICtrlCreateButton("Zapisz plik",20,650)
$Progressbar1 = GUICtrlCreateProgress(0, 620, 393, 17)
GUISetState(@SW_SHOW)
while 1
       $msg = GUIGetMsg()
       Select
		case $msg= $save
$folder = FileSelectFolder("Wskaz folder z metinem", "", 6, @ScriptDir)
			$i = StringFormat("import locale\r\nif locale.IsEUROPE():\r\nSTATE_NONE =" & Chr(34) & "..." & Chr(34) & "\r\n\r\nSTATE_DICT = {\r\n0 :" & Chr(34) & "..." & Chr(34) & ",\r\n1 :" & Chr(34) & "NORM" & Chr(34) & ",\r\n2 :" & Chr(34) & "BUSY" & Chr(34) & ",\r\n3 :" & Chr(34) & "FULL" & Chr(34) & "\r\n}\r\nSERVER01_CHANNEL_DICT = {\r\n1:{" & Chr(34) & "key" & Chr(34) & ":11," & Chr(34) & "name" & Chr(34) & ":" & Chr(34) & "CH1 " & Chr(34) & "," & Chr(34) & "ip" & Chr(34) & ":" & Chr(34) & $ip & Chr(34) & "," & Chr(34) & "tcp_port" & Chr(34) & ":13000," & Chr(34) & "udp_port" & Chr(34) & ":13000," & Chr(34) & "state" & Chr(34) & ":STATE_NONE,},\r\n}\r\nREGION_NAME_DICT = {\r\n0 : " & Chr(34) & "POLAND" & Chr(34) & ",\r\n}\r\nREGION_AUTH_SERVER_DICT = {\r\n0 : {\r\n1 : { " & Chr(34) & "ip" & Chr(34) & ":" & Chr(34) & $ip & Chr(34) & ", " & Chr(34) & "port" & Chr(34) & ":11002, },\r\n}\r\n}\r\nREGION_DICT = {\r\n0 : {\r\n1 : { " & Chr(34) & "name" & Chr(34) & " :" & Chr(34) & "Server 01" & Chr(34) & ", " & Chr(34) & "channel" & Chr(34) & " : SERVER01_CHANNEL_DICT, },\r\n},\r\n}\r\nMARKADDR_DICT = {\r\n10 : { " & Chr(34) & "ip" & Chr(34) & " :" & Chr(34) & $ip & Chr(34) & ", " & Chr(34) & "tcp_port" & Chr(34) & " : 13000, " & Chr(34) & "mark" & Chr(34) & " : " & Chr(34) & "10.tga" & Chr(34) & ", " & Chr(34) & "symbol_path" & Chr(34) & " : " & Chr(34) & "10" & Chr(34) & ", },\r\n}\r\n\r\nTESTADDR = { " & Chr(34) & "ip" & Chr(34) & " : " & Chr(34) & "210.123.10.153" & Chr(34) & ", " & Chr(34) & "tcp_port" & Chr(34) & " : 50000, " & Chr(34) & "udp_port" & Chr(34) & " : 50000, }")
for $idx = 0 to 100
       GUICtrlSetData($progressbar1, $idx)
       Sleep(20)
next
FileDelete($folder & "/serwerinfo.py")
FileWrite("serwerinfo.py",$i)
FileCopy("serwerinfo.py",$folder)
MsgBox(0,"Koniec","Zakończono")
FileDelete("serwerinfo.py")
Case $msg = $GUI_EVENT_CLOSE
       MSgBox(1,"Team","Dziekujemy za uzywanie programu!")
       exit
       EndSelect
       WEnd
EndFunc ;==>ip

@edit

Naprawiono bugi

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.