 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
LiquidGravity Guest
|
Posted: Wed Sep 24, 2008 7:05 pm Post subject: MSpot Mouse Spotlight Example Using WinSet Region |
|
|
Mouse Spotlight Example Using WinSet Region
I think that about says it all. Here is the code.
| Code: | ;
; AutoHotkey Version: 1.x
; Language: English
; Platform: WinXP
; Author: LiquidGravity <admin@liquidgravity.us>
;
; Script Function:
; Mouse Spotlight Example Using WinSet Region
;
#SingleInstance force
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
Gui, Margin , 0, 0
Gui, -Caption +AlwaysOnTop
Gui, Color, 000000
Gui, Show, Maximize, Mouse Spotlight
WinSet, Transparent, 200, Mouse Spotlight
WinSet, Region, 0-85 0-%A_ScreenHeight% %A_ScreenWidth%-%A_ScreenHeight% %A_ScreenWidth%-0 0-0 0-85, Mouse Spotlight
SetTimer, Alert2, 50
Return
Alert2:
CoordMode,Mouse, Screen
MouseGetPos, OutputVarX3, OutputVarY3, OutputVarWin, OutputVarControl
OutputVarX1:= OutputVarX3 -80
OutputVarX2:= OutputVarX3 -56
OutputVarX4:= OutputVarX3 +56
OutputVarX5:= OutputVarX3 +80
OutputVarY1:= OutputVarY3 -80
OutputVarY2:= OutputVarY3 -56
OutputVarY4:= OutputVarY3 +56
OutputVarY5:= OutputVarY3 +80
WinSet, Region, 0-85 0-%A_ScreenHeight% %A_ScreenWidth%-%A_ScreenHeight% %A_ScreenWidth%-0 0-0 0-85 %OutputVarX1%-%OutputVarY3% %OutputVarX2%-%OutputVarY4% %OutputVarX3%-%OutputVarY5% %OutputVarX4%-%OutputVarY4% %OutputVarX5%-%OutputVarY3% %OutputVarX4%-%OutputVarY2% %OutputVarX3%-%OutputVarY1% %OutputVarX2%-%OutputVarY2% %OutputVarX1%-%OutputVarY3%, Mouse Spotlight
Return
GuiClose:
2GuiClose:
ExitApp |
|
|
| Back to top |
|
 |
Dra_Gon
Joined: 25 May 2007 Posts: 315
|
|
| Back to top |
|
 |
LiquidGravity Guest
|
Posted: Thu Sep 25, 2008 12:06 pm Post subject: |
|
|
Thanks  |
|
| Back to top |
|
 |
Chavez
Joined: 20 Aug 2008 Posts: 153
|
Posted: Thu Sep 25, 2008 1:55 pm Post subject: |
|
|
Damn that was epic. Really good job, i needed an example on WinSet region as well. You made my day twice.  _________________ -Chavez. |
|
| Back to top |
|
 |
LiquidGravity Guest
|
Posted: Thu Sep 25, 2008 2:44 pm Post subject: |
|
|
Its all rather short and simple. I've been wanting to do some playing with WinSet, Region for a while now.
You can make it more rounded by adding more in between points. The taskbar likes to jump over it sometimes but that can be avoided by changing the "Keep the taskbar on top of other windows" setting to off. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|