|
You last visited: Today at 22:31
Advertisement
IE.au3
Discussion on IE.au3 within the AutoIt forum part of the Coders Den category.
04/29/2015, 12:54
|
#1
|
elite*gold: 138
Join Date: Apr 2012
Posts: 3,494
Received Thanks: 1,769
|
IE.au3
Hallo,
meine Frage ist wenn ich mit der IE.au3 einen browser erstelle und auf dem einen Button anklicke, der ein weiteres Fenster als Pop-Up öffnet, wie kriege ich dann sowas wie einen handle über dieses fenster um damit weiterzuarbeiten?
|
|
|
04/29/2015, 13:15
|
#2
|
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
|
Das kriegst du nicht, du kannst aber ganz einfach an das neue Fenster dich attachen mittels _IEAttach. Da du vermutlich nicht weißt wie der Titel ist, kannst du einfach das Array das du von WinList bekommst durchiterieren und dann den Titel attachen der nicht der von deinem Hauptbrowser ist.
|
|
|
04/29/2015, 14:42
|
#3
|
elite*gold: 138
Join Date: Apr 2012
Posts: 3,494
Received Thanks: 1,769
|
Quote:
Originally Posted by alpines
Das kriegst du nicht, du kannst aber ganz einfach an das neue Fenster dich attachen mittels _IEAttach. Da du vermutlich nicht weißt wie der Titel ist, kannst du einfach das Array das du von WinList bekommst durchiterieren und dann den Titel attachen der nicht der von deinem Hauptbrowser ist.
|
Danke dir. Habe nun ein anderes Problem, unzwar kann ich den Button in der IE.au3 nicht drücken, auch nicht manuell. Die Seite ist Botgeschützt. Gibts da einen Weg wie ich das umgehen kann und diesen Buttonklick simulieren kann? Mit _IEAction und $object.click gehts nicht
|
|
|
04/29/2015, 16:26
|
#4
|
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
|
Poste mal den Code von der Seite oder dem Button. Zur Not kannst du die Seite per ControlClick anklicken.
|
|
|
04/29/2015, 17:34
|
#5
|
elite*gold: 138
Join Date: Apr 2012
Posts: 3,494
Received Thanks: 1,769
|
Geht um AddMeFast:
PHP Code:
#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <IE.au3>
$IE = _IECreateEmbedded() GUICreate("Beispiel", 1000, 700) $Browser = GUICtrlCreateObj($IE, 10, 10, 960, 650)
GUISetState()
_IENavigate($IE, "http://www.addmefast.com") _IELoadWait($IE) $Input = _IEGetObjById($IE, "email") _IEFormElementSetValue($Input, " ") $Input2 = _IEGetObjById($IE, "password") _IEFormElementSetValue($Input2, "meinpasswort") Sleep(500) $Button = _IEGetObjByName ($IE, "login_button") _IEAction($Button,"click") _IELoadWait($IE) Sleep(500) _IENavigate($IE,"http://addmefast.com/free_points/twitter") _IELoadWait($IE) Sleep(5000)
Local $oInputs = _IETagNameGetCollection($IE, "div") For $oInput In $oInputs If $oInput.classname == "btn3" Then $inner = $oInput.innerText MsgBox(0,"",$inner) If $inner = "Follow" Then MsgBox(0,"","klicke") ;_IEAction($oInput,"click") $oInput.click EndIf EndIf Next
While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop EndSelect WEnd
GUIDelete()
Exit
|
|
|
05/06/2015, 10:43
|
#6
|
elite*gold: 0
Join Date: Jun 2012
Posts: 409
Received Thanks: 194
|
Hi,
;_IEAction($oInput,"click")
Did you see this mistake ?
I would like to help you but, as i'm not speaking German, i didn't really understand what's the problem
|
|
|
05/06/2015, 10:54
|
#7
|
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
|
I'm pretty sure that he commented that part to show what's not working what he tried to make.
|
|
|
05/06/2015, 12:19
|
#8
|
elite*gold: 138
Join Date: Apr 2012
Posts: 3,494
Received Thanks: 1,769
|
Quote:
Originally Posted by Xavierbot
Hi,
;_IEAction($oInput,"click")
Did you see this mistake ?
I would like to help you but, as i'm not speaking German, i didn't really understand what's the problem 
|
Thanks for your help but as alpines already said I commented it out on purpose because I tried different ways of simulating a click
|
|
|
05/07/2015, 12:54
|
#9
|
elite*gold: 0
Join Date: Jun 2012
Posts: 409
Received Thanks: 194
|
It seems that your are doing a bot for AddMeFast.
I used IE.au3 a long time ago, and this was pretty slow and bugged. Moreover, my computer was working slowly when i used my bot.
What i can now advise to you should be to use winhttp.au3 to send directly POST/GET request. Moreover, you can read source code and store cookies with it.
But, there isn't a lot of documentation on it, here is the best i found : 
Good luck
|
|
|
05/07/2015, 13:34
|
#10
|
elite*gold: 138
Join Date: Apr 2012
Posts: 3,494
Received Thanks: 1,769
|
Quote:
Originally Posted by Xavierbot
It seems that your are doing a bot for AddMeFast.
I used IE.au3 a long time ago, and this was pretty slow and bugged. Moreover, my computer was working slowly when i used my bot.
What i can now advise to you should be to use winhttp.au3 to send directly POST/GET request. Moreover, you can read source code and store cookies with it.
But, there isn't a lot of documentation on it, here is the best i found : 
Good luck 
|
Thanks for your advice. I had a look on the packets addmefast sends but in terms of winhttp im still at beginner level. I can hardly create a login with it but ill keep it in mind
|
|
|
05/07/2015, 13:54
|
#11
|
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
|
WinHttp might get detected since you're only requesting the required data (no .css or pictures). Also you might have to handle cookies which is not that easy.
Wenn du was mit WinHttp machen willst dann nimm die dazugehörige UDF, die wird dir einiges erleichtern. Du solltest eigentlich mit einem Einsteigertutorial und folgenden Befehlen gut auskommen.
Code:
_WinHttpOpen
_WinHttpConnect ;bei SSL Port = 443
_WinHttpSimpleRequest ;ohne HTTPS
_WinHttpSimpleSSLRequest ;mit HTTPS
_WinHttpCloseHandle
|
|
|
05/08/2015, 15:01
|
#12
|
elite*gold: 0
Join Date: Jun 2012
Posts: 409
Received Thanks: 194
|
As you want. Your bot, your choice 
But, if i can insist, it isn't that hard.
Maybe I'm totally wrong, but you probably used wireshark or something like that to sniff packets. But wireshark is really complet, TOO MUCH complete for beginner 
You should use Fiddler for start, to really understand what is send, how ?
Then, you should try to use winhttp, just a starting code. And if that's not working, just come back with your code and epvp's community we'll try to help you 
Sorry if i'm out of your question, but, believe my exerience, IE.au3 isn't a good solution
|
|
|
05/13/2015, 21:10
|
#13
|
elite*gold: 0
Join Date: Jun 2012
Posts: 409
Received Thanks: 194
|
Hey,
I do not want to be annoying, but, i saw your thread :
If you want to put your bot in background, it's not the way you must do, because, with autoit, you can't do anything with flash.
As far as i know, background pixel bot are working with C# ( + some autoit too )
|
|
|
05/13/2015, 21:15
|
#14
|
elite*gold: 138
Join Date: Apr 2012
Posts: 3,494
Received Thanks: 1,769
|
Quote:
Originally Posted by Xavierbot
Hey,
I do not want to be annoying, but, i saw your thread :
If you want to put your bot in background, it's not the way you must do, because, with autoit, you can't do anything with flash.
As far as i know, background pixel bot are working with C# ( + some autoit too )
|
Why should I find someone who wants to help me annoying? 
I created this thread because I wanted to write a background bot for AddMeFast. My DarkOrbit bot has nothing to do with the IE.au3. It's Pixel- and ImageSearch based. But there is already someone who helps me with putting the bot in background in C#, thanks!
|
|
|
12/25/2015, 23:52
|
#15
|
elite*gold: 0
Join Date: Dec 2011
Posts: 16
Received Thanks: 3
|
Hmm...interesting. You say that your pixel bot which works in background is made with C# not with IE.au3?
|
|
|
All times are GMT +1. The time now is 22:31.
|
|