AutoHotkey Community

It is currently May 26th, 2012, 11:37 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: November 6th, 2009, 2:53 pm 
Offline

Joined: November 2nd, 2009, 9:12 pm
Posts: 1
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


}

}


Report this post
Top
 Profile  
Reply with quote  
PostPosted: November 16th, 2009, 11:57 am 
Offline

Joined: February 2nd, 2008, 4:35 am
Posts: 643
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]


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Leef_me, Pulover, rbrtryn, XstatyK and 48 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group