iMacros stealing focus

Share your tips, tricks and favorite iMacros macros, scripts and applications for web automation in general here.
Post Reply
User avatar
Tech Support
Posts: 5003
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

iMacros stealing focus

Post by Tech Support » Mon Mar 19, 2007 2:24 pm

We have had reports about iMacros stealing focus from the currently active application. This usually occurs when iMacros is run in tray or silent mode.

If you experience problems with iMacros stealing focus you can use Fast User Switching. The idea is that Fast User Switching allows you to be logged in to the same computer with two different users. You are able to switch between the two user accounts using only a keystroke and you do not need to logoff and login again, thus no application you are currently working on is closed.

Suppose you are working as User A. For replaying your macro you fast switch to User B and start iMacros. Then fast switch back to User A and continue working as usual.

A detailed description of Fast User Switching can be found here:

http://support.microsoft.com/default.as ... 65&sd=tech

Just to clarify the focus issue:

The iMacros Browser, iMacros for Internet Explorer and iMacros for Firefox do not steal the focus if they the run typical macros. The focus issue occurs only if either the website or iMacros triggers dialog boxes. iMacros handles and closes the dialog boxes, but the split second they appear are enough to remove the focus from the foreground application.

iMacros commands that trigger dialog boxes are:
http://wiki.imacros.net/PRINT
http://wiki.imacros.net/SAVEAS

iMacros commands that react the dialog boxes triggered by a website are all Dialog Manager commands such as
http://wiki.imacros.net/ONDIALOG
http://wiki.imacros.net/ONDOWNLOAD
http://wiki.imacros.net/ONERRORDIALOG

iOpus Support
pfreet
Posts: 11
Joined: Mon Sep 24, 2007 5:00 pm

Post by pfreet » Wed Sep 26, 2007 11:09 pm

I have a VBScript with an InputBox. When I display the InputBox, the iMacros browser steals the focus. This occurs with both the iMacros browser and Internet Explorer. Is there way to prevent the browser from stealing the focus so an InputBox can be displayed?
pfreet
Posts: 11
Joined: Mon Sep 24, 2007 5:00 pm

Post by pfreet » Wed Sep 26, 2007 11:18 pm

I will add one possibly important thing. The page I am having trouble with has this:

<BODY leftMargin=2 topMargin=2 onBlur="self.focus();">

Is this possibly causing the problem? I have no way to change the javascript, this is not my site. Any suggestions for getting around this?
jayv
Posts: 13
Joined: Wed Oct 03, 2007 12:39 am

Re: iMacros stealing focus

Post by jayv » Mon Nov 03, 2008 8:46 pm

my script running in tray is also stealling focus. However i do not believe there is are dialogues involved nor am i using any of the commands listed below. However, the page it is accessing is SSL. Could that be causing the focus to be stolen? Anyway I can confirm what is going here? Is there anyway i can prevent this?

VERSION BUILD=6110122
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=https://myurlhere.com
TAB T=1
TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:logOnForm ATTR=NAME:userID CONTENT={{UserID}}
TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:logOnForm ATTR=NAME:userPin CONTENT={{UserPIN}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:logOnForm ATTR=NAME:submit
TAG POS=1 TYPE=A ATTR=TXT:Available<SP>Jobs
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:reviewAssignForm ATTR=NAME:startDate CONTENT={{FromDate}}
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:reviewAssignForm ATTR=NAME:endDate CONTENT={{ToDate}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:reviewAssignForm ATTR=NAME:search
'Comment: New page loaded
TAG POS=1 TYPE=FONT ATTR=TXT:Details
strickland911
Posts: 2
Joined: Fri Dec 12, 2008 11:26 am

Re: iMacros stealing focus

Post by strickland911 » Fri Dec 12, 2008 11:43 am

Well, my situation is different. Does Imacro have the ability to cancel the action if the action just made will turn off the Imacro? And if possible, do another action so the process can remain? I really need help in this one. I have been experiencing this for days and fix the process every time the action just made is an action for another process.
User avatar
Tech Support
Posts: 5003
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

Re: iMacros stealing focus

Post by Tech Support » Wed Dec 17, 2008 11:02 pm

Well, my situation is different. Does Imacro have the ability to cancel the action if the action just made will turn off the Imacro?
Is this related to the focus issue discussed above?
Post Reply