Created
January 14, 2017 19:25
-
-
Save 1nsp1r3rnzt/ff28747fb042074ed2e6909fe46983da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CoordMode, Mouse, Screen | |
;This script hides the chrome address bar by displaying a fake address bar image (png) on the top of google chrome | |
; Useful trick to have more privacy | |
;overlays on chrome and minimize itself if chrome is minimized | |
; Has transparent area where google chrome back, next button are to make it work with other script which use those button images | |
; still to do is is to make it resize according to google chrome window's size. | |
;demo is at https://github.com/1nsp1r3rnzt/Autohotkey-scripts/blob/master/Autohotkey-scripts/chrome%20demo.gif?raw=true | |
Gui, Color, CABAFF | |
Gui +LastFound | |
winset,transcolor,CABAFF | |
gui,-caption +alwaysontop | |
Gui -border -caption +AlwaysOnTop +ToolWindow | |
;; how often to get the mouse position in milliseconds | |
UPDATE_INTERVAL := 10 | |
;; make the script run forever | |
#Persistent | |
SetTimer, WatchCursor, %UPDATE_INTERVAL% | |
return | |
WatchCursor: | |
MouseGetPos, x, y | |
If ( y > 124) { ;if cursors in top right region ;change this area accordingly | |
IfWinActive, ahk_class Chrome_WidgetWin_1 | |
{ | |
WinGetPos, XWin, YWin,width,height, ahk_class Chrome_WidgetWin_1 | |
Gui, add, picture,, d:\fake.png ; this is the location of the image | |
Gui, Show,x-10 y-10 NoActivate | |
} | |
sleep 100 | |
return | |
} | |
else | |
{ | |
Gui, Hide ;hide it | |
return | |
} | |
#IfWinActive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment