|
You last visited: Today at 06:07
Advertisement
Ie create and read html etc...
Discussion on Ie create and read html etc... within the C/C++ forum part of the Coders Den category.
03/20/2017, 12:58
|
#1
|
elite*gold: 37
Join Date: May 2014
Posts: 1,835
Received Thanks: 9,833
|
Ie create and read html etc...
Closed.
|
|
|
03/20/2017, 14:02
|
#2
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,137
Received Thanks: 573
|
Well first of all why don't you just use autoit if you know how to do it with it?
Second, you shouldn't use Internet Explorer (or any browser component) if you don't have to. Maybe you can just use an http client, for example  .
|
|
|
03/20/2017, 15:05
|
#3
|
elite*gold: 37
Join Date: May 2014
Posts: 1,835
Received Thanks: 9,833
|
Quote:
Originally Posted by warfley
Well first of all why don't you just use autoit if you know how to do it with it?
Second, you shouldn't use Internet Explorer (or any browser component) if you don't have to. Maybe you can just use an http client, for example  .
|
Bec c++ is better and fastest than autoit
|
|
|
03/20/2017, 20:28
|
#4
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,137
Received Thanks: 573
|
Quote:
Originally Posted by HaMaDa..
Bec c++ is better and fastest than autoit 
|
Why is C++ better? It's all a matter of the usecase. For example you want to write a small macro with a simple GUI, it's way more complicated in C++ and you gain nothing from C++. The other way around, if you want to write a network protocol I won't recommend using AutoIt.
If you want to use IE than you it will be much harder in C++ than in AutoIt, and you dont get anything better from C++, and even with webrequest I dont think you gain anything from using C++, so for your usecase AutoIt might be better (Especially because you already know how to use AutoIt).
Also with the speed argument, if you use http the transmition of the data will take a few (tens to hundreds) of milliseconds, independent from the programming language. So it doesn't matter if your C++ code will be executed 10x faster, because this is in the mycroseconds, so the runtime difference will be less than one percent.
If you use the Internet Explorer it will be even worse, because you are capped to the (really slow) speed of the IE component, so there is no real speed difference between AutoIt and C++. And I won't even start about GUI's.
Even if there would be (e.g. you would have a GBit network connection), than i very much doubt that it would matter for you either. Modern CPU's run on a clock speed of several GHz, and most PC's even have more than one CPU. So the overall runtime difference will be in the milliseconds (maximum). You only need to care about speed when you have big inputs, or you are on a time critical task.
And if speed is so important to you, why do you use slow C++ instead of lightning fast Fortran?
|
|
|
03/20/2017, 21:53
|
#5
|
elite*gold: 37
Join Date: May 2014
Posts: 1,835
Received Thanks: 9,833
|
Quote:
Originally Posted by warfley
Why is C++ better? It's all a matter of the usecase. For example you want to write a small macro with a simple GUI, it's way more complicated in C++ and you gain nothing from C++. The other way around, if you want to write a network protocol I won't recommend using AutoIt.
If you want to use IE than you it will be much harder in C++ than in AutoIt, and you dont get anything better from C++, and even with webrequest I dont think you gain anything from using C++, so for your usecase AutoIt might be better (Especially because you already know how to use AutoIt).
Also with the speed argument, if you use http the transmition of the data will take a few (tens to hundreds) of milliseconds, independent from the programming language. So it doesn't matter if your C++ code will be executed 10x faster, because this is in the mycroseconds, so the runtime difference will be less than one percent.
If you use the Internet Explorer it will be even worse, because you are capped to the (really slow) speed of the IE component, so there is no real speed difference between AutoIt and C++. And I won't even start about GUI's.
Even if there would be (e.g. you would have a GBit network connection), than i very much doubt that it would matter for you either. Modern CPU's run on a clock speed of several GHz, and most PC's even have more than one CPU. So the overall runtime difference will be in the milliseconds (maximum). You only need to care about speed when you have big inputs, or you are on a time critical task.
And if speed is so important to you, why do you use slow C++ instead of lightning fast Fortran?
|
Thanks for your infos and for your time...
Anyway i know that autoit is much easier than c++ but actually firstly autoit is virus and did u compare hooking in c++ and in autoit ? maybe no maybe yes but hooking in c++ is fantastic and faster than autoit 2x times well i have compared finiding addys from patterns, c++ tooks only 1 seconds in finding 5 Addys while autoit tooks 5 seconds for the same 5 addys well i love autoit very much but after using c++ ... no.
but maybe iam wrong.
|
|
|
03/20/2017, 22:16
|
#6
|
elite*gold: 966
Join Date: Apr 2010
Posts: 1,105
Received Thanks: 681
|
Quote:
Originally Posted by HaMaDa..
Thanks for your infos and for your time...
Anyway i know that autoit is much easier than c++ but actually firstly autoit is virus and did u compare hooking in c++ and in autoit ? maybe no maybe yes but hooking in c++ is fantastic and faster than autoit 2x times well i have compared finiding addys from patterns, c++ tooks only 1 seconds in finding 5 Addys while autoit tooks 5 seconds for the same 5 addys well i love autoit very much but after using c++ ... no.
but maybe iam wrong.
|
Yes, and for those cases C/C++ is superior to AutoIt, but you just can't generalize it to any use case. Programming languages are like tools. If you want to get a nail into the wall, you use one tool and if you want to paint your wall, you use another tool. Did you ever try to paint a wall with a hammer? I know that is ridiculous, but that would happen, if you would apply a generalization like that to the metaphor.
For the cases you described C++ (or any other compiled language) is way faster than AutoIt and there are several more of those cases. But as @  said, it's a matter of the use case. Of course you can control IE somehow with C++, but most likely not that elegant and easy as you'd do it in AutoIt. And, as @  also said, performance of the language is most likely not that much of an issue since the network communication as well as the overhead to control IE will be the bottleneck.
However, if you want to do it with C++, I'd also recommend something like curl(pp) (or maybe the network component of boost as I heard, it's quite good, too?), as @  also said (sorry for the mentions; it's the last time in this post, I promise  ).
With best regards
Jeoni
|
|
|
03/20/2017, 22:17
|
#7
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,137
Received Thanks: 573
|
Quote:
Originally Posted by HaMaDa..
Thanks for your infos and for your time...
Anyway i know that autoit is much easier than c++ but actually firstly autoit is virus and did u compare hooking in c++ and in autoit ? maybe no maybe yes but hooking in c++ is fantastic and faster than autoit 2x times well i have compared finiding addys from patterns, c++ tooks only 1 seconds in finding 5 Addys while autoit tooks 5 seconds for the same 5 addys well i love autoit very much but after using c++ ... no.
but maybe iam wrong.
|
This is exactly what i meant, its about the usecase. Programming languages are tools, every language is fitted best for some purpose, and i guess, for what you like to do archive (well i can only guess, but with webbrowser i think you want to make a bot for a website) i think AutoIt might be better fitted than C++ (mostly because i think C++ is way to complicated for making such simple bots, i would use a language like C# or python for a web bot). And of course, if you do something with a large input (like an address Scan which is basically string matching on a very large string) C++ is better.
Also another possibility is to write only the time critical features as a library in for example C (or Fortran, or even Assembly), and use this library in a more high level language like C# (or autoit) and use this language to realize e.g. the non time critical code (like GUI code) because this is way easier than writing somethin in C++.
|
|
|
03/20/2017, 22:36
|
#8
|
elite*gold: 37
Join Date: May 2014
Posts: 1,835
Received Thanks: 9,833
|
Thanks guys (:
|
|
|
 |
Similar Threads
|
TB_user Read only | Can't create new ID
11/26/2016 - Silkroad Online - 1 Replies
This row was successfully committed to the database.
However a problem occcured when attempting to retrieve the data back after the commit.
Because of the the displayed data in this row is read-only.
To fix this roblem please re-run this query.
This what the SQL writes , when i try to make a new account.
Why? and how can it be solved?
|
[C#][developers] read sv.t & create a sv.t
01/11/2016 - SRO Coding Corner - 11 Replies
Here is a little snippet how to read the silkroad version from the sv.t
and create a sv.t in C#.
Thanks to pushedx for the explanation about the file structure.
public static void WriteSVTFile(byte buffer, int newVersion)
{
pk2Reader.Blowfish bf = new pk2Reader.Blowfish(Encoding.ASCII.GetBytes("S ILKROADVERSION"), 0, 8);
Array.Reverse(buffer, 4, 4);
|
Read before you create a new topic! [Tutorial]
02/23/2013 - Metin2 PServer Guides & Strategies - 6 Replies
Hallo Metin2 Sektion.
Dieser Thread ist ein How to Thread und zwar unter dem Namen:
Metin2 Guides Sektion lernen.
Wieso mache ich diesen Thread?
Wenn ihr euch selbst mal in der Community bzw. in dieser Sektion
umschaut seht ihr mehr als nur eine Frage. (Ich denke ich brauche
das nicht zu Screenen, denn das fällt euch selbst auf.
|
READ THIS PLEASE Project For create a bot
08/01/2012 - DarkOrbit - 8 Replies
Good morning or good night EVERYBODY
Today I decided to created a free bot for NPC and BOX , GG etc.....
And For create this bot I need Money to pays a thing very important for the bot
And I need you to call at this number phone : 0 899 233 549
and once you have called, you must give me the code that was given
|
All times are GMT +1. The time now is 06:07.
|
|