Results 1 to 13 of 13
  1. #1
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored

    [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 https://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!
    Last edited by Cryptonic; 03-27-2011 at 02:51 PM.

  2. #2
    xxxdeath's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    2
    My Mood
    Bashful
    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.

  3. #3
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored
    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.

  4. #4
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    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]

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  5. The Following User Says Thank You to Jason For This Useful Post:

    Cryptonic (03-28-2011)

  6. #5
    VernK's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    49
    Reputation
    10
    Thanks
    47
    My Mood
    Relaxed
    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

  7. #6
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    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 Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  8. #7
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored
    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.Setting***** = 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.
    Last edited by Cryptonic; 03-28-2011 at 01:40 PM.

  9. #8
    ³²³'s Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    sef
    Posts
    302
    Reputation
    9
    Thanks
    19
    My Mood
    Angelic
    Code:
    WebBrowser1.Navigate("https://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
    Last edited by ³²³; 03-29-2011 at 02:35 PM.

    Quote Originally Posted by $0WhaT ?
    Hey sherlock u cant put a keygen on a .php
    Quote Originally Posted by ³²³
    Keygen.php is not a valid vBulletin file. It's there for cracking purposes
    Quote Originally Posted by $0WhaT ?
    Maybe but idc it doesn mean i am a keylogger

  10. The Following User Says Thank You to ³²³ For This Useful Post:

    Cryptonic (03-29-2011)

  11. #9
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored
    Quote Originally Posted by ³²³ View Post
    Code:
    WebBrowser1.Navigate("https://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.

  12. #10
    ³²³'s Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    sef
    Posts
    302
    Reputation
    9
    Thanks
    19
    My Mood
    Angelic
    Changed it again lol.

    Quote Originally Posted by $0WhaT ?
    Hey sherlock u cant put a keygen on a .php
    Quote Originally Posted by ³²³
    Keygen.php is not a valid vBulletin file. It's there for cracking purposes
    Quote Originally Posted by $0WhaT ?
    Maybe but idc it doesn mean i am a keylogger

  13. The Following User Says Thank You to ³²³ For This Useful Post:

    Cryptonic (03-29-2011)

  14. #11
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored
    Quote Originally Posted by ³²³ 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
    Last edited by Cryptonic; 03-29-2011 at 03:03 PM.

  15. #12
    ³²³'s Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    sef
    Posts
    302
    Reputation
    9
    Thanks
    19
    My Mood
    Angelic
    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.

    Quote Originally Posted by $0WhaT ?
    Hey sherlock u cant put a keygen on a .php
    Quote Originally Posted by ³²³
    Keygen.php is not a valid vBulletin file. It's there for cracking purposes
    Quote Originally Posted by $0WhaT ?
    Maybe but idc it doesn mean i am a keylogger

  16. #13
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,843
    Reputation
    425
    Thanks
    8,616