Jump to content

Focus , IE9 Bug


Recommended Posts

Hello , i replay my topic . In Internet Explorer 9 , Focus(Java Script )

Plase Tell me a Compality~ Script IE9.

Plase Help me ! , witch Click button on facebook .

Error Code \/

>"D:\Programy\Autoit\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Users\Kamil\Desktop\GUICtrlRead12.au3" /autoit3dir "D:\Programy\Autoit" /UserParams    
+>23:53:04 Starting AutoIt3Wrapper v.2.0.1.24    Environment(Language:0415  Keyboard:00000415  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64)
>Running AU3Check (1.54.19.0)  from:D:\Programy\Autoit
+>23:53:04 AU3Check ended.rc:0
>Running:(3.3.6.1):D:\Programy\Autoit\autoit3_x64.exe "C:\Users\Kamil\Desktop\GUICtrlRead12.au3"    
--> IE.au3 V2.4-0 Warning from function _IEGetObjById, $_IEStatus_NoMatch (email)
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Warning from function _IEGetObjById, $_IEStatus_NoMatch (pass)
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Warning from function _IEGetObjByName, $_IEStatus_NoMatch (Name: Email, Index: 0)

Code Script \/

#include <GUIConstantsEx.au3>
#include <Misc.au3>
#include <IE.au3>
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <DateTimeConstants.au3>
#include <EditConstants.au3>
#include <GuiStatusBar.au3>
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
Opt('MustDeclareVars', 1)

Example()

Func Example()
    Local $menu1 , $n3 , $Input5 , $n2 , $msg , $ie , $input_password , $input_email , $form , $array , $element , $hwnd
    GUICreate("My GUICtrlRead") ; will create a dialog box that when displayed is centered

    $menu1 = GUICtrlCreateMenu("File")

    $n3 = GUICtrlCreateInput("",150 , 80, 121, 21)
    $Input5 = GUICtrlCreateInput("lolx123", 150, 105, 121, 21)

    $n2 = GUICtrlCreateButton("Read", 150, 135, 50)
    GUICtrlSetState(-1, $GUI_FOCUS) ; the focus is on this button

    GUISetState() ; will display an empty dialog box
    ; Run the GUI until the dialog is closed

    Do

        $msg = GUIGetMsg()
        If $msg = $n2 Then
            MsgBox(0, "Selected listbox entry", GUICtrlRead($Input5)) ; display the selected listbox entry
            $ie = _IECreate ("http://fb.com")
            $input_email = _IEGetObjByid ( $ie , "email")
            _IEFormElementSetValue($input_email, GUICtrlRead($n3))
            $input_password = _IEGetObjByid ( $ie , "pass")
            _IEFormElementSetValue($input_password, GUICtrlRead($Input5))
            $form = _IEGetObjByName ($ie, "Email")
            $array = _IETagNameGetCollection($ie, "input")
            for $element in $array
                if stringinstr($element.value, "Log in") Then
                    msgbox(0,"", "Zostałes Zalogowany")
                    ExitLoop
                EndIf
            Next
            _IEAction ($element, "focus")
            ControlSend($hwnd, "", "[CLASS:Internet Explorer_Server; INSTANCE:1]", "{Enter}")
            msgbox(0,"Logout", "")
            stringinstr($element.value, "navAccount")
            stringinstr($element.value, "Log Out")
            $form= _IEFormGetObjByName($ie, "logout_form")
            $form= _IEGetObjByid($ie, "logout_form")>"D:\Programy\Autoit\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Users\Kamil\Desktop\GUICtrlRead12.au3" /autoit3dir "D:\Programy\Autoit" /UserParams    
+>23:53:04 Starting AutoIt3Wrapper v.2.0.1.24    Environment(Language:0415  Keyboard:00000415  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64)
>Running AU3Check (1.54.19.0)  from:D:\Programy\Autoit
+>23:53:04 AU3Check ended.rc:0
>Running:(3.3.6.1):D:\Programy\Autoit\autoit3_x64.exe "C:\Users\Kamil\Desktop\GUICtrlRead12.au3"    
--> IE.au3 V2.4-0 Warning from function _IEGetObjById, $_IEStatus_NoMatch (email)
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Warning from function _IEGetObjById, $_IEStatus_NoMatch (pass)
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Warning from function _IEGetObjByName, $_IEStatus_NoMatch (Name: Email, Index: 0)
            _IEFormSubmit($form)
        EndIf
Until $msg = $GUI_EVENT_CLOSE
EndFunc   ;==>Example

GUICtrlRead12.au3

Edited by KuletaKamil
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...