View difference between Paste ID: duEJRa6S and U8CKtLJd
SHOW: | | - or go back to the newest paste.
1-
#SingleInstance Force
1+
2
; Download Nomousy from http://www.autohotkey.com/community/viewtopic.php?t=2197 and place with script
3-
SetTimer skyrim, 1000
3+
MouseHidden := 0
4
SetTimer skyrim, 500
5
SetTimer mousecheck, 1000
6
7-
IfWinActive, ahk_class Skyrim
7+
8
IfWinActive, Skyrim ahk_class Skyrim
9-
IfWinNotActive, ahk_class Skyrim
9+
10
else
11
	SkyrimActive := 0
12
return
13
14
mousecheck:
15-
	MouseHidden == 1
15+
16
	Run, nomousy.exe /hide
17
	MouseHidden := 1
18-
	MouseHidden == 0
18+
19
	Run, nomousy.exe
20
	MouseHidden := 0
21
}