wieder mal ein problem denn ich bin jetzt auf gui umgestiegen
PHP
GuiCreate("Quick Connect", 230, 160,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))
$filemenu = GuiCtrlCreateMenu ("&File")
$Exit = GuiCtrlCreateMenuitem ("&Exit",$filemenu)
$configure = GuiCtrlCreateMenuitem ("&Configure",$filemenu)
$helpmenu = GuiCtrlCreateMenu ("?")
$helpitem = GuiCtrlCreateMenuitem ("Help",$helpmenu)
$about = GuiCtrlCreateMenuitem ("About....",$helpmenu)
$Label_2 = GuiCtrlCreateLabel("password:", 10, 10, 50, 20)
$pass_b = GuiCtrlCreateInput("", 70, 10, 140, 20)
$Label_4 = GuiCtrlCreateLabel("ip adress:", 10, 40, 60, 20)
$ip_b = GuiCtrlCreateInput(ClipGet(), 70, 40, 140, 20)
$Label_6 = GuiCtrlCreateLabel("name:", 10, 70, 40, 20)
$name = GuiCtrlCreateInput("", 70, 70, 140, 20)
$Button_8 = GuiCtrlCreateButton("Connect", 140, 100, 70, 20)
GuiSetState()
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE Or $msg = $Exit
ExitLoop
Case $msg = $helpitem
MsgBox(64,"Help","1) Enter the password, you can leave it blank" & @CRLF & "2) Enter the IP adress of the server with port, " & @CRLF & " if you put the adress in your clipboard it will paste it automaticly" & @CRLF & "3) Enter the name you want to play with, you can also leave it blank.")
Case $msg = $about
MsgBox(0,"About","Quick Connect" & @CRLF & "Written by Benjamin 'p3aNut' St." & @CRLF & "Written in AutoIt3 with SciTE" & @CRLF & "thx2: [FF] clan for beta testing")
Case $msg = $configure
$selected1 = FileSelectFolder("Choose the folder where the steam.exe is located", "", "", "C:\Programme\")
If @error = 1 Then
ExitLoop
EndIf
IniWrite ( "C:\WINDOWS\system32\quick.join.config.ini", "config", "steam", $selected1 )
$selected2 = FileSelectFolder("Choose your cstrike folder", "", "", $selected1 & "\Steamapps\")
If @error = 1 Then
FileDelete ( "C:\WINDOWS\system32\quick.join.config.ini" )
Exit
EndIf
IniWrite ( "C:\WINDOWS\system32\quick.join.config.ini", "config", "cstrike", $selected2 )
$steam = IniRead ( "C:\WINDOWS\system32\quick.join.config.ini", "config", "steam", "" )
$cstrike = IniRead ( "C:\WINDOWS\system32\quick.join.config.ini", "config", "cstrike", "" )
$jcfg = FileOpen ($cstrike & "\userconfig.cfg",1 )
FileWriteLine($jcfg, "")
FileWrite($jcfg, "exec join.cfg //this line is required by the cs quick connect tool")
FileClose($jcfg)
Case $msg = $Button_8
GUIDelete()
Opt("TrayIconHide", 1)
[B]$pass = GUICTRLRead($pass_b)
$ip = GUICtrlRead($ip_b)[/B]
$steam = IniRead ( "C:\WINDOWS\system32\quick.join.config.ini", "config", "steam", "" )
$cstrike = IniRead ( "C:\WINDOWS\system32\quick.join.config.ini", "config", "cstrike", "" )
$file = FileOpen ($cstrike & "\join.cfg",2 )
FileWrite($file, "password " & $pass)
FileWrite($file, ";connect " & $ip)
FileWrite($file, ";echo password " & $pass)
FileWrite($file, ";echo connect " & $ip)
FileClose($file)
WinMinimizeAll ( )
Run ( $steam & "\steam.exe -applaunch 10")
Sleep (100)
WinActivate ( "Counterstrike - Steam" )
EndSelect
WEnd
Alles anzeigen
das problem ist das er nur das ausgibt:
password 0;connect 0
obwohl ich das in das input feld reinschreib
was mache ich falsch? hoffe auf hilfe :musik2: