Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Internet Gambling > Software
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-30-2007, 06:51 AM
FeuDuSoir FeuDuSoir is offline
Member
 
Join Date: Mar 2007
Posts: 72
Default I want a window to retake focus everytime

I want a window to retake focus ever single time he loses it.

So for example:

I have 2 windows open: Notepad and Calculator.

Now I want Notepad to retake focus everytime I click on the Calculator.

How can I do this?
Reply With Quote
  #2  
Old 08-30-2007, 10:29 AM
shnk shnk is offline
Member
 
Join Date: Jan 2006
Posts: 54
Default Re: I want a window to retake focus everytime

a very very simple ahk script might look like this:

SetTitleMatchMode, 2
~LButton::WinActivate,Notepad

not sure thats really what you want though?
Reply With Quote
  #3  
Old 08-30-2007, 01:15 PM
FeuDuSoir FeuDuSoir is offline
Member
 
Join Date: Mar 2007
Posts: 72
Default Re: I want a window to retake focus everytime

Looks like that might do the trick yes,

but then I still have to push the left-button,

but that will be no problem,

but this exact script doesnt work.
Reply With Quote
  #4  
Old 08-30-2007, 02:57 PM
HalvSame HalvSame is offline
Senior Member
 
Join Date: May 2006
Posts: 391
Default Re: I want a window to retake focus everytime

loop
WinActivate, Notepad
Reply With Quote
  #5  
Old 08-31-2007, 03:46 AM
FeuDuSoir FeuDuSoir is offline
Member
 
Join Date: Mar 2007
Posts: 72
Default Re: I want a window to retake focus everytime

Thanks shnk and HalvSame,
this works perfect for me [img]/images/graemlins/laugh.gif[/img] :

================================
loop
IfWinExist, Untitled - Notepad
WinActivate
================================
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:25 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.