Andreik Posted June 25, 2008 Share Posted June 25, 2008 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 More sharing options...
DjDeep00 Posted June 25, 2008 Share Posted June 25, 2008 @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 More sharing options...
Andreik Posted June 25, 2008 Author Share Posted June 25, 2008 @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 More sharing options...
Andreik Posted June 26, 2008 Author Share Posted June 26, 2008 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. Link to comment Share on other sites More sharing options...
DjDeep00 Posted June 26, 2008 Share Posted June 26, 2008 @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 More sharing options...
Andreik Posted June 26, 2008 Author Share Posted June 26, 2008 @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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now