 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
nlittle07
Joined: 02 Nov 2009 Posts: 1
|
Posted: Fri Nov 06, 2009 1:53 pm Post subject: Send key strokes to a background IE screen |
|
|
I have created a very simple script to send a Ctrl+Alt+I which executes a find in a web based application (window 2). This piece is working fine but what I am finding is that if I have another IE session open (window 1), after it does the find on window 2 it does return focus back to the window 1 but the 'Alt' button has sent to this window.
Also, while the find is running the focus moves to window 2 until the find completes which takes a couple of seconds.
Ideally what I am trying to do is have the Ctrl+Alt+I sent to the other screen completely in the background.
Below is the text of script. Please note - this is the first time I have used AutoHotkey and I am not a developer by trade.
Thanks in advance for your help!!, Nolan
;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: A.N.Other <myemail@nowhere.com>
;
; Script Function:
; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
;
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
settitlematchmode,2
while true
{
{
ControlSend,Internet Explorer_Server1,^!I, Propane Agreement Activity
Sleep, 30000
}
} |
|
| Back to top |
|
 |
a_h_k
Joined: 02 Feb 2008 Posts: 344
|
Posted: Mon Nov 16, 2009 10:57 am Post subject: Re: Send key strokes to a background IE screen |
|
|
So what are the exact names of the 2 windows?
- Find in web based application (window 2) = "Internet Explorer_Server1" ?
- Another IE session (window 1) = ?
| Code: | #NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory
SetTitleMatchMode, 2
While true ;while what is true?
{
{
ControlSend, Internet Explorer_Server1, ^!I, Propane Agreement Activity
Sleep, 30000
}
} |
Ps: To put your code in a scrolling window: [code] ...<your code here> [(/slash)code] |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|