Sign in to follow this
Followers
0
-
Recently Browsing 0 members
No registered users viewing this page.
-
Similar Content
-
By Deshanur
Am trying to automate injecting credential on the login form for all kind of Web application for IE. I know how to identify the form name by viewing the source code and using the method - _IEFormGetObjByName($ie, $form_Name).
I would like to know how to identify or get the form object for the web app where there is no form name tag for example below, for the is I have used - _IEFormGetCollection($ie, 0) to get the form object.
My Question is does it work for all kind of application "_IEFormGetCollection($ie, 0)" how to identify Index value? is it always 0? is there any better solution?
The final solution am looking for is find out form object, get the username, password field and inject credential and submit the form.
How to find out index value? for the forms which does not have form name field.
$login_form = _IEFormGetCollection($ie, 0) $email_field = _IEFormElementGetObjByName($login_form, $form_UserName) $pass_field = _IEFormElementGetObjByName($login_form, $form_password) $login_button = _IEFormElementGetObjByName($login_form, $form_submitbutton) _IEFormElementSetValue($email_field, $CmdLine[2]) _IEFormElementSetValue($pass_field, $CmdLine[3]) ControlSend($hwnd, "", "[CLASS:Internet Explorer_Server; INSTANCE:1]","{Enter}") OR This works fine if the form has form name. $login_form = _IEFormGetObjByName($ie, $form_Name) $email_field = _IEFormElementGetObjByName($login_form, $form_UserName) $pass_field = _IEFormElementGetObjByName($login_form, $form_password) $login_button = _IEFormElementGetObjByName($login_form, $form_submitbutton) _IEFormElementSetValue($email_field, $CmdLine[2]) _IEFormElementSetValue($pass_field, $CmdLine[3]) ControlSend($hwnd, "", "[CLASS:Internet Explorer_Server; INSTANCE:1]","{Enter}") -
By learner123
Hi All,
So I have created a small autoIT script to enter pin into a RSA token(app which generate new code every 30 second), and copy the generated code.
I have a java application which requires this code so every time my java-code requires this RSA code, it runs the autoIT script and the copied generated code is then used in my java application.
I have deployed this code on a windows server and it works fine when I am logged in and the window is on focus, But as soon as I schedule task and disconnect the server (not logged out only disconnect), or even minimize the server window, the autoIT scripts fails and its not able to copy the value.
Please find below the code for AUTOIT.
WinActivate("rsa - RSA SecurID Token") ; activates the window that has old in the tilte bar
WinWaitActive("rsa - RSA SecurID Token") ; waits until the window is the active window
Send("1111") ; simulates pressing the Home key, enters password to get the code
Send("{ENTER}") ; simulates pressing the Enter key
Sleep(1000) ;
Send("^c") ; simulates pressing the CTRL+c keys (copy)
Also I saw some post regarding that WINACTIVE only works when window is active. But my below AUTO IT script to handle windows pop up works perfectly fine when the server is disconnected.
Opt("WinTitleMatchMode", 1)
WinWait("https://url","","10")
WinWaitActive("https://url","","10")
Sleep(2000)
Send("userid")
Sleep(1000)
Send("{TAB}")
Sleep(1000)
Send("passwrd")
Send("{TAB}")
Sleep(500)
Send("{ENTER}")
-
By AnonymousX
So I just got a new computer, and instantly went and installed Autoit onto it. I selected run script as default action when clicking on an au3 file, however every time I do this it opens the script in the editor. I can from there run the script no problem.
I've tried reinstalling and checking the settings by hitting "Ctrl+1" and have confirmed it is set to run, but yet it just continues to open in the editor.
Any ideas why this is happening or how to solve?
New system is windows 10, old was windows 7
-
By DynamicRookie
Hey there!
Is there a way to detect movement only for 1 specific window?
HWnd is not really working, it still detects movement in all the windows within the region
This is my script:
;Checksum actual HotKeySet("{f2}", 'exit_') MsgBox(0, '', '0') Beep(500, 2000) $Hwnd = WinActive('') while 1 $Checksum = PixelChecksum(211, 650, 1094, 914, 1, $Hwnd) If PixelChecksum(211, 650, 1094, 914, 1, $Hwnd) <> $Checksum Then For $i = 1 To 100 Beep(1000, 50) Next MsgBox(0, '', 'New message!', 1) EndIf WEnd Func exit_() Beep(500, 1000) Exit 0 EndFunc I just want to check whenever a message comes because the app i use doesn't give notifications properly.
Any help is really appreciated!
-
By Fr33b0w
Func z009() If FileExists("search\009\009.au3") Then #include <search\009\009.au3> EndIf EndFunc This wont work... Is there any workarround for this or I should do it in a different way?
-