Search the Community
Showing results for tags 'inactivewindow'.
-
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}")
-
Hello, I've been trying to automate a process to check in the GUI of a Java program for a certain condition. When I use the Autoit Window information tool I don't get anything under the control tab, which seems to be normal for a Java program. I've been able to automate what I need using ControlSend and checking for the condition using ImageSearch but the Java program will not accept ControlSend unless it is the active window. I'd like to run the script while the window is inactive so I can still use the PC but haven't been able to come up with a solution other than a virtual machine. I even tried sysinternals desktops to create a second virtual desktop but that just causes WinActivate to return a failure after you switch to another virtual desktop. Does anyone have any ideas for getting a window to think its active when its not or an alternative to ControlSend that may work? Thanks.
- 3 replies
-
- controlsend
- java
-
(and 1 more)
Tagged with: