| View previous topic :: View next topic |
| Author |
Message |
Antonimo
Joined: 28 Apr 2006 Posts: 55
|
Posted: Thu Feb 12, 2009 8:39 am Post subject: Prevent Applications from Stealing Focus |
|
|
This is not a good script - it is a collection of three files that can be used to prevent applications from stealing focus.
Notes:
Tested in Windows XP Pro SP3
Path names will vary according to where you save the files
Don't_Steal_Focus.reg
| Code: | Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control Panel\Desktop]
"ForegroundLockTimeout"=dword:00030d40 |
Don't_Steal_Focus.bat
| Code: | | regedit /s Don't_Steal_Focus.reg |
Don't_Steal_Focus.ahk
| Code: | Loop
{
Sleep 5000
run, "C:\Program Files\AutoHotkey Scripts\Don't_Steal_Focus\Don't_Steal_Focus.bat"
} |
The reason why I am putting these up here is in the hope that somebody finds them useful and then decides to create one simple AHK script.
[Deleted double post. ~jaco0646] |
|
| Back to top |
|
 |
Thrawn
Joined: 12 May 2008 Posts: 30 Location: Germany
|
Posted: Thu Feb 12, 2009 10:20 am Post subject: |
|
|
| Code: | Loop
{
Sleep, 5000
RegWrite, REG_DWORD, HKEY_CURRENT_USER, Control Panel\Desktop, ForegroundLockTimeout, 0x00030d40
} |
|
|
| Back to top |
|
 |
|