mazix
Новичок
- Сообщения
- 7
- Репутация
- 0
Добрый день,
Прошу помощи, все никак не могу понять как встроить уже созданный скрип в лаунчер.
Было бы просто замечательно, если бы он без кнопки выдавал в input, IP-шник.
Версия AutoIt: 3.3.12.0
Вот этот скрипт я пытаюсь вставить, но мои попытки тщетны.
Пробовал сделать так, но ничего не вышло))
Про "это" я само собой не забывал
Прошу помощи, все никак не могу понять как встроить уже созданный скрип в лаунчер.
Было бы просто замечательно, если бы он без кнопки выдавал в input, IP-шник.
Версия AutoIt: 3.3.12.0
Код:
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$IP = GUICtrlRead($Input1)
$Port = GUICtrlRead($Input2)
$Nick = GUICtrlRead($Input4)
IniWrite("Binaries/Win32/lumaemu.ini", "Steam2Wrapper", "GameExe", "UDK.exe " & $IP & ":" & $Port)
IniWrite("Binaries/Win32/lumaemu.ini", "Player", "PlayerName", $Nick)
ShellExecute("UDK.exe","","Binaries\Win32")
Case $Button2
ShellExecute("ServerUDK.exe","","Binaries\Win32")
EndSwitch
WEnd
Вот этот скрипт я пытаюсь вставить, но мои попытки тщетны.
Код:
#include <inet.au3>
#include <guibutton.au3>
#include <guitoolbar.au3>
#include <GUIConstantsEX.au3>
$YourIP = _GetIP()
GUICreate("ip fainder", 318, 84, 294, 169)
$Button3 = GUICtrlCreateButton("Мой IP", 201, 30, 62, 30)
$Input3 = GUICtrlCreateInput("Тут появится ип", 17, 31, 138, 20)
$Label3 = GUICtrlCreateLabel("Ваш ип", 19,14,284,15)
GUISetState(@SW_SHOW)
While 2
$Msg = GUIGetMsg()
if $msg=-3 Then Exit
if $msg=$button3 Then button3()
WEnd
func button3()
GUICtrlSetData($input3, $yourIP)
MsgBox(0,"ip","Ну вот и все!")
EndFunc
Пробовал сделать так, но ничего не вышло))
Код:
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$IP = GUICtrlRead($Input1)
$Port = GUICtrlRead($Input2)
$Nick = GUICtrlRead($Input4)
IniWrite("Binaries/Win32/lumaemu.ini", "Steam2Wrapper", "GameExe", "UDK.exe " & $IP & ":" & $Port)
IniWrite("Binaries/Win32/lumaemu.ini", "Player", "PlayerName", $Nick)
ShellExecute("UDK.exe","","Binaries\Win32")
Case $Button2
ShellExecute("ServerUDK.exe","","Binaries\Win32")
Case $Button3
if $msg=-3 Then Exit
if $msg=$button3 Then button3()
EndSwitch
WEnd
func button3()
GUICtrlSetData($input3, $yourIP)
MsgBox(0,"ip","Ну вот и все!")
EndFunc
Про "это" я само собой не забывал

Код:
#include <inet.au3>
#include <guibutton.au3>
#include <guitoolbar.au3>
#include <GUIConstantsEX.au3>
$YourIP = _GetIP()
Премного благодарен всем, кто уделил свое время!