simple translation form vb to c#
-
i m creating a bot for a browser game, i really in the start yet so, i enter the page and i need to pass password and username etc so i found that code in vb but i cant find the translation i so thing i missing a assembly case its really simple ... wb.documents.all("username").value = "qwerty1" wb.documents.all("password").value = "qwerty2" wb.documents.all("submit").value = click ... thanks :laugh: wb is WebBrowser object
nelsonpaixao@yahoo.com.br trying to help & get help
-
i m creating a bot for a browser game, i really in the start yet so, i enter the page and i need to pass password and username etc so i found that code in vb but i cant find the translation i so thing i missing a assembly case its really simple ... wb.documents.all("username").value = "qwerty1" wb.documents.all("password").value = "qwerty2" wb.documents.all("submit").value = click ... thanks :laugh: wb is WebBrowser object
nelsonpaixao@yahoo.com.br trying to help & get help
There are online converters that will do this. If you can't do it yourself, then perhaps you need to understand C# better instead of just copying and pasting code from the web ? Replace the () with [] and put a ; at the end. That is all. Except I am not sure that the last line will work, in VB or C#, unless click is a variable that's already defined.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
There are online converters that will do this. If you can't do it yourself, then perhaps you need to understand C# better instead of just copying and pasting code from the web ? Replace the () with [] and put a ; at the end. That is all. Except I am not sure that the last line will work, in VB or C#, unless click is a variable that's already defined.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
() or [] doesn´t matter, like i said before i am missing a assembly, i cant find it i used value propriety before, to pass values to db for exemple ... sql_cmd.Parameters.Add("@my_season", SqlDbType.Int).Value = season; ... but i cant find the assembly to value propriety this case in order to pass values to site login page :doh:
nelsonpaixao@yahoo.com.br trying to help & get help
modified on Wednesday, July 29, 2009 7:20 PM