| View previous topic :: View next topic |
| Author |
Message |
mongoose
Joined: 01 Jun 2007 Posts: 21
|
Posted: Wed Jul 09, 2008 12:01 am Post subject: Swap windows script help |
|
|
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 |
|
 |
pokercurious
Joined: 16 Dec 2007 Posts: 47
|
Posted: Wed Jul 09, 2008 1:07 am Post subject: |
|
|
| SetTimer |
|
| Back to top |
|
 |
mongoose
Joined: 01 Jun 2007 Posts: 21
|
Posted: Wed Jul 09, 2008 1:52 am Post subject: |
|
|
| Thanks I wasn't gonna do a timer. I thought it'd take too much cpu usage. |
|
| Back to top |
|
 |
|