如何“打开对话框"框会自动选择图片? [英] How "opened dialog" box makes an automatic picture selection?

查看:125
本文介绍了如何“打开对话框"框会自动选择图片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的产品已经发布了一个网页.这是一个部门广告网站.我们在此站点上有付费会员资格.我们发布了数百种

本网站上的产品.我们将为此出版物付费使用该网站.

我们有一个程序和数据库,其中包含我们的所有产品.我们希望从该数据库中自动发送我们的产品和数据

进入网站.
我们与该网站权威机构进行了交谈,但他们说我们没有网络服务,很抱歉,我们对此不做任何事情".

之后,我们准备像自动填充表格这样的软件.没有图片,我们发送了所有数据.我们已成功将数据发送到

网站,但只有我们无法发送图片.

我想要以下命令;

在C#Webbrowser中,将使用Flash对象中的x,y坐标自动单击浏览按钮.当自动点击时

打开打开对话框".

然后,此打开的对话框"将自动选择图片.

但是,它不会在Flash对象中进行自动选择.

我想将我的图片和数据从数据库自动发送到网站.
我成功发送了我的数据.但是idont发送图片.由于闪光灯打开
对话框问题



我该怎么办?

Our products have published a web page. This is a sectoral ads web site. We have a paid membership on this site. We publish hundreds of

products on this site. we are paying to this web site for our publishings.

We have a program and database and it contains our all products. From this database we want to send our products and data''s automaticly

to the website.
We speak to this website authority but they say "we havent got web service, sorry we dont do anything about it".

And after that we prepare a software like autofill form. Without pictures we sent all of the data''s. we sent data''s succesfully to the

website but only we cant send pictures.

i want in the following commands;

In the c# webbrowser will automatically click the browse button with using x,y coordinate in a flash object. When click it automatically

open a "open dialog".

And this "opened dialog" makes automatic picture selection.

But it doesnt makes automatic selection in flash object.

i want to send my pictures and datas from my database to a web site automaticly.
i send my datas succesfully. but idont send the pictures. because of flash open
dialog box problem



what i should do for it?

推荐答案

忘记这种应用程序的WebBrowser控件.您不需要自动化浏览器或任何插件.在后台总会有HTTP流量.您应该熟悉 http协议 [提琴手 [ ^ ].您会从客户端找到一系列的GET和POST(或其他动词)请求.您可以弄清楚如何将输入的数据发送到服务器,如何调用url,如何填充字段.您也可以简单地发送(上传)图像.您可以使用 HttpClient [ ^ ]类.请记住,您不必自动化浏览器,而必须在较低级别上模拟浏览器和用户操作.如果正确执行,服务器将不会有任何区别.确实并不复杂.
Forget the WebBrowser control for this kind of application. You dont need to automate the browser, or any plugin. In the background there is always http traffic. You should familiarize with http protocol[^] concepts, and than trace the actual conversation between your browser and the application on the server. You can use tools like Fiddler[^]. You will find a series of GET and POST (or other verbs) requests from client side. You can figure out how data entered by you is sent to the server, what url is called, what fields are populated. You can simply send (upload) images also. You can use the HttpClient[^] class for that. Keep in mind, that you don''t have to automate the browser, you have to simulate the browser and the user actions on a lower level. If you do it right the server will see no difference. It is really not complicated.


这篇关于如何“打开对话框"框会自动选择图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆