Jump to content

Need help with IE


Recommended Posts

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.

Link to comment
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
Link to comment
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.

Link to comment
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")
Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...