Jump to content

Hide Desktop Icons/Change Wallpaper When Firefox In focus?


Recommended Posts

I have modded Firefox to run completely Aero Glass, but the desktop wallpaper and icons can make some areas of some sites look awful or unviewable.

What I want to do is hide the desktop icons and change the wallpaper to all black while firefox has focus, and reverse the change when it loses focus OR terminates.

I have a program that when run Hides the icons, and when run again shows them. I also have a Wallpaper changer that can change to any file.

This is what I have so far (I know nothing of VBS)

HideDesktopFF.vbs (Runs a batch file hidden)

Dim a 
Set a = CreateObject("Wscript.Shell")
a.Run "HideDesktopFF.bat",0

This batch file hides the icons and changes the wallpaper, and checks every minute if FF process is running. If it closes it shows icons and fixes wallpaper. This only does it if FF closes. I want it to also change between hidden and shown (with WP switch) every time FF gets/loses focus.

HideDesktopFF.bat (Incomplete)

goto hide
goto checkIfRunning

tasklist /FI "IMAGENAME eq firefox.exe" 2>NUL | find /I /N "firefox.exe">NUL
if "%ERRORLEVEL%"=="1" goto showEnd
sleep.exe 60
goto checkIfRunning

REM Not used, should be used to switch when focus lost, then check for focus or end of process.


I know this is a sloppy and CPU wasting way to do this, does anyone have any way to make this work efficiently? I am also adjusting my wallpaper to be less bright to reduce the glare, so this may become unnecessary if I get things looking different.

Edited by CODYQX4
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...