Ie create and read html etc...

03/20/2017 12:58 HaMaDa..#1
Closed.
03/20/2017 14:02 warfley#2
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 [Only registered and activated users can see links. Click Here To Register...].
03/20/2017 15:05 HaMaDa..#3
Quote:
Originally Posted by warfley View Post
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 [Only registered and activated users can see links. Click Here To Register...].
Bec c++ is better and fastest than autoit :)
03/20/2017 20:28 warfley#4
Quote:
Originally Posted by HaMaDa.. View Post
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 HaMaDa..#5
Quote:
Originally Posted by warfley View Post
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 Jeoni#6
Quote:
Originally Posted by HaMaDa.. View Post
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 @[Only registered and activated users can see links. Click Here To Register...] 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 @[Only registered and activated users can see links. Click Here To Register...] 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 @[Only registered and activated users can see links. Click Here To Register...] also said (sorry for the mentions; it's the last time in this post, I promise :D ).
With best regards
Jeoni
03/20/2017 22:17 warfley#7
Quote:
Originally Posted by HaMaDa.. View Post
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 HaMaDa..#8
Thanks guys (: