Sign in to follow this  
Followers 0
Andreik

Need help with IE

6 posts in this topic

I want to write a script that upload a photo here and after face recognition is complete I want to put celebrity faces in a GUI but I dont't know what should I do in IE to do that.

Any ideas?

Thanks in advance!


When the words fail... music speaks

Share this post


Link to post
Share on other sites



@Andreik..

Work from this...its kind of bootleg...but I am sure you can build something from this...

#include <IE.au3>

$File_Name=@ScriptDir & "\Pic.bmp"

$oIE = _IECreate ("http://www.myheritage.com/celebrity-face-recognition?collage=1")
_IELoadWait($oIE)


$oInputs = _IETagNameGetCollection ($oIE, "input")

For $oInput In $oInputs

;ConsoleWrite($oInput.type & @CRLF)
If $oInput.type="file" Then
_IEAction ($oInput, "focus")
;Send($File_Name)
$hwnd = _IEPropertyGet($oIE, "hwnd")
ControlSend($hwnd, "", "[CLASS:Internet Explorer_Server; INSTANCE:1]", $File_Name)


EndIf

    
Next

Share this post


Link to post
Share on other sites

@Andreik..

Work from this...its kind of bootleg...but I am sure you can build something from this...

#include <IE.au3>

$File_Name=@ScriptDir & "\Pic.bmp"

$oIE = _IECreate ("http://www.myheritage.com/celebrity-face-recognition?collage=1")
_IELoadWait($oIE)


$oInputs = _IETagNameGetCollection ($oIE, "input")

For $oInput In $oInputs

;ConsoleWrite($oInput.type & @CRLF)
If $oInput.type="file" Then
_IEAction ($oInput, "focus")
;Send($File_Name)
$hwnd = _IEPropertyGet($oIE, "hwnd")
ControlSend($hwnd, "", "[CLASS:Internet Explorer_Server; INSTANCE:1]", $File_Name)


EndIf

    
Next
Thanks DjDeep00!

Is a way get pictures after face recognize to save in my computer?


When the words fail... music speaks

Share this post


Link to post
Share on other sites

How can I get all buttons and number of buttons from IE page?

Like this

$oInputs = _IETagNameGetCollection ($oIE, "input")
for inputs.

When the words fail... music speaks

Share this post


Link to post
Share on other sites

@Andreik...Not all buttons are actual buttons...some could be images or links....

You can read the source and get the name of the button you want to click...Like so...

$Button = _IEGetObjByName ($oIE, "imageURLBtnTx")
ConsoleWrite(_IEPropertyGet($Button , "innertext") & @CRLF)
_IEAction ($Button, "click")

Share this post


Link to post
Share on other sites

@Andreik...Not all buttons are actual buttons...some could be images or links....

You can read the source and get the name of the button you want to click...Like so...

$Button = _IEGetObjByName ($oIE, "imageURLBtnTx")
ConsoleWrite(_IEPropertyGet($Button , "innertext") & @CRLF)
_IEAction ($Button, "click")
Thank you very much DjDeep00! :)

When the words fail... music speaks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0