AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Swap windows script help

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
mongoose



Joined: 01 Jun 2007
Posts: 21

PostPosted: Wed Jul 09, 2008 12:01 am    Post subject: Swap windows script help Reply with quote

I have a printer window that pops up which causes my taskbar to steal focus.
I added the #Persistent directive, but it doesn't change back to the window I want it to. Need some advice please.

Code:
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Persistent
#WinActivateForce
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

IfWinExist, ahk_class #32770 ;title  = printing
WinActivate, ahk_class wxWindowClassNR
F9::
ExitApp
Back to top
View user's profile Send private message
pokercurious



Joined: 16 Dec 2007
Posts: 47

PostPosted: Wed Jul 09, 2008 1:07 am    Post subject: Reply with quote

SetTimer
Back to top
View user's profile Send private message
mongoose



Joined: 01 Jun 2007
Posts: 21

PostPosted: Wed Jul 09, 2008 1:52 am    Post subject: Reply with quote

Thanks I wasn't gonna do a timer. I thought it'd take too much cpu usage.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group