[Help] Combat Arms Game Starter

Posts 1–13 of 13 · Page 1 of 1
[Help] Combat Arms Game Starter
I'm making an auto game starter.

My first idea is when your not loged in yet, and you click game start, it asks you for id/pw and you click login in, and then it will auto start. But, I have a problem.

The problem is, when you click game start before you login, it takes you to http://passport.nexon.net/Login.aspx, and if you start of with that in vb, it takes you to the main nexon site.

One way to slove [Harder but better], have the webbrowser click the start game button (it uses java, which idk how to put that into vb).

Or

[The way takes out the point of the program] If you run that webpage (after you click login) on your normal ie, it comes up as the combat arms theme, and starts the game. So you would have to manualy click start game which that takes out the point of the program.

If anyone has any other ideas or can put java into vb, please comment!
I don't know anything about programming but i have an idea that may help you. How about you just make a form that pops up on start up of the program that contains all the fields necessary to log into your combat arms account. It saves the data in a config or .ini file and on start up it inputs that information automatically so you don't have to input you're login information each time.
Quote Originally Posted by xxxdeath View Post
I don't know anything about programming but i have an idea that may help you. How about you just make a form that pops up on start up of the program that contains all the fields necessary to log into your combat arms account. It saves the data in a config or .ini file and on start up it inputs that information automatically so you don't have to input you're login information each time.
That's basically what i'm trying to do, but i run into this error.
Combat Arms has a Combatarms_Direct.exe which doesn't load the webpage.

Here's a direct-start snippet that will start it without a dialog even popping up:
[highlight=vb.net]
Dim caLoc as string = string.empty
If Environment.GetEnvironmentVariable("PROCESSOR_ARCH ITECTURE") = "AMD64" Then
caLoc = My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\ SOFTWARE\Wow6432Node\Nexon\Combat Arms\Ver_US", "RootPath", "")
Else
caLoc = My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\ SOFTWARE\Nexon\Combat Arms\Ver_US", "RootPath", "")
End If
Process.Start(caLoc & "\Engine.exe", "-windowtitle ""CombatArms"" -rez Engine.REZ -rez Game -authip 208.85.111.14 -authport 10001 -pcroom 0 -UserId ")
[/highlight]
Well first you could use Shell() or Process.start() the direct thing or if you want to go more advanced use textboxes to enter in the fields from ca website which I can't do now sine I'm on ipod
Quote Originally Posted by VernK View Post
Well first you could use Shell() or Process.start() the direct thing or if you want to go more advanced use textboxes to enter in the fields from ca website which I can't do now sine I'm on ipod
Using a webbrowser != advanced lol.

Also, if you release a program which asks for people's username and password for CA, you won't get it approved on these forums.
Quote Originally Posted by Jason View Post


Using a webbrowser != advanced lol.

Also, if you release a program which asks for people's username and password for CA, you won't get it approved on these forums.
I'm currently using a webbrowser. I have 1 form, it says start ca. (with the webbrowser)

On my other form it will have id/pw.

Form1=

Code:
If Form2.TextBox2.Text = "" And Form2.TextBox3.Text = "" Then
            MsgBox("You must enter an ID and Password")
            Form2.Show()
        Else
            If Form2.TextBox2.Text = "" Then
                MsgBox("You must enter an ID")
                Form2.Show()
            Else
                If Form2.TextBox3.Text = "" Then
                    MsgBox("You must enter a Password")
                    Form2.Show()
                Else
                    WebBrowser3.Document.GetElementById("txtId").SetAttribute("value", Form2.TextBox2.Text)
                    WebBrowser3.Document.GetElementById("txtPassword").SetAttribute("value", Form2.TextBox3.Text)
                    WebBrowser3.Document.GetElementById("btnLogin").InvokeMember("Click")
                End If
            End If
        End If
Form2 is just my.settings

Code:
        My.Settings.id = TextBox2.Text
        My.Settings.pw = TextBox3.Text
        My.Settings.Save()
blah blah blah..

Does your way of starting CA include not having to login? I havent tested it yet, but my main point was to start it without typing your id/pw.

EDIT: I think i see how yours works, basically, it just starts ca directly w/o having to press game start. That wasn't what I was getting at though. I still may make that an option though.

And no, i wasn't intending to release it here. It's just part of a program that i'm making.
Code:
WebBrowser1.Navigate("http://combatarms.nexon.net")
Then on webbrowser1.documentcompleted()
Code:
WebBrowser1.Navigate("javascript:NxLaunchGameMain()")
        System.Threading.Thread.Sleep(2000)
        WebBrowser1.Document.GetElementById("txtId").SetAttribute("value", "username")
        WebBrowser1.Document.GetElementById("txtPassword").SetAttribute("value", "pass")
        WebBrowser1.Document.GetElementById("btnLogin").InvokeMember("Click")
Haven't tested but it should work
Quote Originally Posted by user782106 View Post
Code:
WebBrowser1.Navigate("http://combatarms.nexon.net")
Then on webbrowser1.documentcompleted()
Code:
WebBrowser1.Document.GetElementById("tbID").SetAttribute("value", "username")
WebBrowser1.Document.GetElementById("tbPass").SetAttribute("value", "password")
CLICK LOGIN BUTTON HERE (I'm finding the code right now.)
WebBrowser1.Navigate("javascript:NxLaunchGameMain()")
It had an error for inserting the id/pw

Object reference not set to an instance of an object.
EDIT: Oh, i didn't notice you changed it.
Quote Originally Posted by user782106 View Post
Changed it again lol.
Bleh, still the same error.

Oh, I got it, I put

Code:
WebBrowser3.Document.GetElementById("txtId").SetAttribute("value", Form2.TextBox2.Text)
        WebBrowser3.Document.GetElementById("txtPassword").SetAttribute("value", Form2.TextBox3.Text)
        WebBrowser3.Document.GetElementById("btnLogin").InvokeMember("Click")
On a timer for 55000 milsecs
Make it less than 10 seconds.
Alternatively use System.Threading.Thread.Sleep(0) to wait until the previous events process. It's sort of buggy though and only works with some things.
Posts 1–13 of 13 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us