Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 10:18

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[HELP] C# WPF syntax

Discussion on [HELP] C# WPF syntax within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
zhalyn's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 560
Received Thanks: 774
[HELP] C# WPF syntax

Does anyone knows how to convert or what's the right syntax on this C# form application syntax?

Code:
 webBrowser1.Document.GetElementById("name").SetAttribute("value", textBox2.Text);
            webBrowser1.Document.GetElementById("message").SetAttribute("value", textBox1.Text);
            webBrowser1.Document.GetElementById("sumbit").InvokeMember("click");
[B]
i'm having error on "GetElementById" :S just confused.
zhalyn is offline  
Old 12/22/2010, 10:44   #2
 
elite*gold: 0
Join Date: Jan 2006
Posts: 158
Received Thanks: 20
are u sure to use using Sytem.xml in refernce ?
gorgone is offline  
Old 12/22/2010, 14:30   #3
 
zhalyn's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 560
Received Thanks: 774
Yes i'm sure!
i dont know what's the correct syntax for wpf from
Code:
 webBrowser1.Document.GetElementById("sumbit").InvokeMember("click")
zhalyn is offline  
Old 12/22/2010, 15:14   #4
 
elite*gold: 0
Join Date: Jan 2006
Posts: 158
Received Thanks: 20
an example

private void web1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
if (btnstartpress == true)
{
btnstartpress = false;
///Do clicks and inputs
web1.Document.GetElementById("sumbit").InvokeMembe r("Click");
}

}


this an external link about InvokeMEmber method


on my pc works
gorgone is offline  
Old 12/22/2010, 15:29   #5
 
zhalyn's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 560
Received Thanks: 774
Quote:
Originally Posted by gorgone View Post
an example

private void web1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
if (btnstartpress == true)
{
btnstartpress = false;
///Do clicks and inputs
web1.Document.GetElementById("sumbit").InvokeMembe r("Click");
}

}


this an external link about InvokeMEmber method


on my pc works
thanks but there's no "GetElementById" on wpf :S
zhalyn is offline  
Old 12/22/2010, 15:35   #6
 
elite*gold: 0
Join Date: Jan 2006
Posts: 158
Received Thanks: 20
i m so curios wht is the complete code and wht do u try to create ?



from miscrosoft page
gorgone is offline  
Old 12/22/2010, 15:39   #7
 
zhalyn's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 560
Received Thanks: 774
I'm going to create an AutoRegister Form from wpf, yet i'm having problems on GetElementById.

I have made one from c# windows form and i made it successfully, but when i tried wpf (it should be on same syntax) darm..error. :S
zhalyn is offline  
Old 12/22/2010, 15:53   #8
 
elite*gold: 0
Join Date: Jan 2006
Posts: 158
Received Thanks: 20
gotcha ) i missunderstood



herre is a blog but if u see WPF is a control that integrate in asp.net page i dk if u can do a method inside WPF

WPF is created to make nice interfaces but the data inside u must made on c# or VB.net
gorgone is offline  
Thanks
1 User
Old 12/23/2010, 01:25   #9
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
add my msn I have used this 1million times for register spamming at private servers.


Syst3m_W1z4rd is offline  
Old 12/23/2010, 06:47   #10
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
Do you mean XAML?
_tao4229_ is offline  
Old 12/23/2010, 07:22   #11
 
zhalyn's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 560
Received Thanks: 774
Quote:
Originally Posted by gorgone View Post
gotcha ) i missunderstood



herre is a blog but if u see WPF is a control that integrate in asp.net page i dk if u can do a method inside WPF

WPF is created to make nice interfaces but the data inside u must made on c# or VB.net
thanks mate =]

Quote:
Originally Posted by Syst3m_W1z4rd View Post
add my msn I have used this 1million times for register spamming at private servers.


done.

Quote:
Originally Posted by _tao4229_ View Post
Do you mean XAML?
Yes! hmmm because WPF got nice interfaces =]
zhalyn is offline  
Old 12/23/2010, 10:35   #12
 
elite*gold: 0
Join Date: Jan 2006
Posts: 158
Received Thanks: 20
i know is so good i used to moddy the Alkemy proxy of Pro4never soon i ll pubblish, but u need to use like control not like main program in this way it s perfect
gorgone is offline  
Thanks
1 User
Old 12/23/2010, 11:03   #13
 
zhalyn's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 560
Received Thanks: 774
Quote:
Originally Posted by gorgone View Post
i know is so good i used to moddy the Alkemy proxy of Pro4never soon i ll pubblish, but u need to use like control not like main program in this way it s perfect
gimme one copy of it :P
well, still i didn't get the right syntax ( . Is it possible to combine wpf + windows form? O_O maybe i'm going to make a gui on WPF and code it using windows form
zhalyn is offline  
Old 12/23/2010, 14:54   #14
 
elite*gold: 0
Join Date: Jan 2006
Posts: 158
Received Thanks: 20
THE MOST IMPORTANT WPF and form VB.NET



take a look of mix between asp.net and WPF


and



here are the most easy code that u can try to understood... wpf is nice but only control user or reader clients (an example is Twitter reader where data are from twitter xml source )
gorgone is offline  
Thanks
1 User
Old 12/23/2010, 22:44   #15
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
To do it with code you need to do some COM interop.

First, right-click References... -> Add new Reference to Microsoft.mshtml.
Then at the top
Code:
using mshtml;
Then it's pretty simple
Code:
HTMLDocument doc = webBrowser1.Document as HTMLDocument;
doc.all.item("name", 0).value = "heres the text";
doc.all.item("name of the element", 0).name_of_property_of_element = value;
You should be able to figure it out from there.
The value returned from doc.all.item is a dynamic (in 4.0 or later), so its properties are evaluated at runtime.
_tao4229_ is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[FRAGE] php Syntax
09/17/2010 - Flyff Private Server - 1 Replies
Hi, könnte mir bitte jemand hier weiterhelfen .Möchte eine Rankingtabelle machen in der die Teammitglieder nicht angezeigt werden so nach der Art : <? require('./configs/reg_conf.php'); mssql_select_db("ACCOUNT_DBF"); if ('m_chLoginAuthority' == F) { echo "wird in Tabelle angezeigt";} else
[HELP]Func -> Syntax Error
07/10/2010 - AutoIt - 13 Replies
Huhu Com.. Ich wollte mir mal einen kleinen Bot machen... Aber bei "Func" kommt immer diese Fehlermeldung... http://img804.imageshack.us/img804/7364/screensho t1.jpg Bin dankbar für jede hilfe :) p.s: ja, am Ende hab ich auch ein "EndFunc"
[Question]Syntax for Pet..
03/22/2010 - EO PServer Hosting - 5 Replies
Hey, You know when you compose on top left it says " So and so have composed so and so." well something like that, Whats the Syntax for the pet? Like the Syntax %user_name = Display of the character name. I need to where i can find it and after 50* where the orange fireworks and the GM broadcast saying "So and so's pet is this many stars congratz" http://i430.photobucket.com/albums/qq23/MikeMadMa n_album/lol-1.jpg Just all smudgy cuz i wanna keep my privacy O_O Thanks.
[HELP]Syntax Error
11/28/2009 - Dekaron Private Server - 1 Replies
I have a problem with syntax can someone help: http://img192.imageshack.us/img192/1248/erro1m.jp g Code: USE ;
Syntax ERROR?!
10/27/2008 - General Coding - 9 Replies
hi, ich wollte an den start meines Script ein HotKeySet einfügen aber wenn ich das mache kommt: Syntax ERROR hier mein Script(beispiel): HotKeySet("{numpad1},"start") MsgBox(0,"titel","text") ich glaub ich bin zu blöd was ist da falsch?...wenn ihr meint da fehlt ein " hab ich schon probiert geht nicht, oder ich hab es an der falschen Stelle eingefügt.



All times are GMT +1. The time now is 10:19.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.