Sign in to follow this
Followers
0
Tool to find CLASS control on MS userform
By
CADMonkey, in AutoIt Example Scripts
-
Recently Browsing 0 members
No registered users viewing this page.
-
Similar Content
-
By shelly
Here is the below code for handling pop-up when window is inactive ..but I don't know how to change sleep and when i run this script it runs sometimes and sometimes it stops .
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{SPACE}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{DOWN}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{ENTER}")
--- these 3 lines never worked while TAB lines works sometimes but not in accurate way
I am new too AutoIt .. help me out why this script behaves in strange way
ControlFocus("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1")
Sleep(3000)
ControlSend("Policy Decisions -- Webpage Dialog", "", "Internet Explorer_Server1","1")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog", "", "Internet Explorer_Server1","the request is send")
Sleep(3000)
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
Sleep(3000)
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
Sleep(3000)
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{SPACE}")
Sleep(3000)
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
Sleep(3000)
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
Sleep(3000)
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{DOWN}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
Sleep(3000)
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{ENTER}")
-
By nacerbaaziz
hello sirs, please i created a tool witch get the focused control in a window and play a audio file linked with this controls
e.g buttons, checkBoxes, radios, comboboxes, and others
i know that their is a function that give us the control focus but it return the classNN
i want to get the class name to use it with a switch and
because their are more than class e.g button tbutton timagebutton tnewButton...
please can any one help me to get the class name not the classnn
thanks in advance
-
By nacerbaaziz
Hello my friends
Can we create a single context menu on more than one item?
For example, a context menu includes standardized options on more than one control, such as buttons or check boxes
to Create a context menu on one item am using this function
GUICtrlCreateContextMenu ($ HWND)
How to link it with more than one element please?
or if we can't do that, please give me a solution
so i tried to add an context menus to all the controls but the script will be long, for that if their are any solutions i hope to give it to me
thanks in advanced
-
By XinYoung
Greetings!
I am in need of your guidance once again. I searched the forums for clicking in span, clicking by class, clicking without an ID or Name, etc., but I am unable to find a solution for my problem.
I am trying to expand this tree in IE. There is an arrow ( > ) that i need to click, but I can't find a way to do it . Alternatively, I can double-click the text "Servers", but that seems to be even more troublesome. I will have to do this 2-3 more times as the tree expands.
There appears to be an ID for the tree, simply called "tree", but that isn't working when I send a click to it.
;Open an IE session and navigate to pgAdmin. Global $oIE = _IECreate($pgAdmin) ;Maximize the IE window. WinSetState(_IEPropertyGet($oIE, "hwnd"), "", @SW_MAXIMIZE) Sleep(2000) ;Expand the tree $oTree = _IEGetObjById($oIE, "tree") _IEAction($oTree, "click") Any ideas?
-