http://www.MyOnlineImages.com/serveFile.aspx?af=12919
The above is my first draft of Opera Auto Addressbar hider.
For years, wondered when Opera would auto hide address bar when
cursor is not near.
The above exe or script will hopefully hide address bar when
cursor not near bottom of screen. When near, it shows it.
code logic is simple. And wish was a part of Opera.
#notrayicon
ifnotexist, ranOponce.txt
goto, install
start:
settitlematchmode,2
SetKeyDelay, 10, 10
sphere := 0
watch:
sphereold :=sphere
;mousegetpos,x,y
sleep 1000
mousegetpos,xx,yy
if yy < 401
sphere = below
if yy > 400
sphere = above
;msgbox,, change,sphere is %sphere%,..sphereold is %sphereold% ,1
ifnotequal, sphereold,%sphere%
goto, change
goto, watch
Change:
mousegetpos,xx,yy
if yy > 400
{
wingettitle, optitle,- Opera
winget,ControlHwnd,id,%optitle%
;winactivate,%optitle%
ifwinactive,%optitle%
{
Controlsend,,!, ahk_id %ControlHwnd%
send !
sleep, 1000
goto, watch
}
goto,watch
}
else
{
wingettitle, optitle,- Opera
winget,ControlHwnd,id,%optitle%
;winactivate,%optitle%
ifwinactive,%optitle%
{
Controlsend,,+, ahk_id %ControlHwnd%
send +
sleep, 1000
goto, watch
}
goto,watch
}
return
exitapp
;controlsend not working.... then could do ini write
Install:
msgbox, This is your first run of Auto toolbar hide for Opera. In
order to use this with Opera 7+`, you must manually setup hotkey
f8 shift = Set alignment`, "document toolbar"`, 0 and f8 alt
= Set alignment`, "document toolbar"`, 6
Fileappend,ranOponce.txt,ranOponce.txt
goto, start
|