View Single Post
  #15  
Old 29th Feb 04, 05:04 AM
~*McoreD*~'s Avatar
~*McoreD*~ ~*McoreD*~ is offline
Super Moderator
 
Join Date: Jul 2002
Location: Australia
Posts: 2,902
~*McoreD*~ is an unknown quantity at this point
To get rid of the MessageBox, just have the code as follows:
Code:
               sw.WriteLine("@echo OFF")                sw.WriteLine("ConsoleTool /HIDE")                sw.WriteLine("cd " + Chr(34) + IO.Path.GetDirectoryName(txtMinimizer.Text) + Chr(34))                sw.WriteLine("Start /MIN " + IO.Path.GetFileName(txtMinimizer.Text))                sw.WriteLine("CHOICE.COM /N /CY /TY,4 >NUL")                sw.WriteLine("cd " + Chr(34) + txtQ3A.Text + Chr(34))                sw.WriteLine(txtScript.Text)                sw.WriteLine("cd " + Chr(34) + IO.Path.GetDirectoryName(txtMinimizer.Text) + Chr(34))                sw.WriteLine("process -q " + IO.Path.GetFileName(txtMinimizer.Text))                sw.WriteLine("cls")                sw.Close()                Shell(SaveFileDialog1.FileName, AppWinStyle.Hide)
Since I haven't got Quake III Arena, unfortunately I cannot test the compiled application. And you cannot load the project in Visual Basic 6 because it is a .NET project. Here is my Visual Studio Solution for you anyways. Hope that would help you.

This small utility will do nothing more than outputting a MS-DOS batch file like you made:
Code:
@echo OFF ConsoleTool /HIDE cd "C:\Minimizer" Start /MIN Minimizer.exe CHOICE.COM /N /CY /TY,4 >NUL cd "C:\Program Files\Quake III Arena" Start /w quake3.exe +set fs_game q3ut3 +nosplash +set com_hunkmegs 128 +com_zoneMegs 32 +com_soundmegs 32 +connect "192.168.0.1" /prefetch:1 cd "C:\Minimizer" process -q Minimizer.exe cls
You need the correct IP address in the clip board while this application loads. Then the application while get the IP address from the clip board and use it in the necessary location of the Batch File. If the clip does not hold the IP address while the application loads, you can still click Get IP after Quake III Arena outputs the IP address to the clip board and the application will retry reading the clip board and use it. That's basically how the application works so far.

The custom scripting ability is very limited since apart from what you had in your first Batch File, I do not know anything about Quake III Arean Scripts. Can you post all the commands that is possible in Quake III Arena and the order of how to use it? For example:

Code:
C:\Documents and Settings\McoreD>tree /? Graphically displays the folder structure of a drive or path. TREE [drive:][path] [/F] [/A]   /F   Display the names of the files in each folder.   /A   Use ASCII instead of extended characters.
Do you want this application to autoload when you run quake3.exe? That may need some Windows Registry modifications or somethign else.

I am going to rename this thread to Project: Urban Terror Script Generator, since this thread has gone far from Copy From Clipboard.

Cheers,
McoreD
Reply With Quote