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 

MSpot Mouse Spotlight Example Using WinSet Region

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
LiquidGravity
Guest





PostPosted: Wed Sep 24, 2008 7:05 pm    Post subject: MSpot Mouse Spotlight Example Using WinSet Region Reply with quote

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

PostPosted: Wed Sep 24, 2008 10:03 pm    Post subject: Reply with quote

Laughing Now THAT's pretty cool!

Ciao,
Dra'Gon
_________________

For a good laugh {hopefully} >> megamatts.50megs.com

My WritersCafe profile>>
http://www.writerscafe.org/writers/BlueDragonFire/
Back to top
View user's profile Send private message Send e-mail
LiquidGravity
Guest





PostPosted: Thu Sep 25, 2008 12:06 pm    Post subject: Reply with quote

Thanks Very Happy
Back to top
Chavez



Joined: 20 Aug 2008
Posts: 153

PostPosted: Thu Sep 25, 2008 1:55 pm    Post subject: Reply with quote

Damn that was epic. Really good job, i needed an example on WinSet region as well. You made my day twice. Cool
_________________
-Chavez.
Back to top
View user's profile Send private message MSN Messenger
LiquidGravity
Guest





PostPosted: Thu Sep 25, 2008 2:44 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions 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