u c, when the program starts it hides the desktop icons.
upon hover, it shows them and then hides them.
the problem is that upon exit, the icons stay hidden.So I was trying on exit command to make the icons appear again.
When I remove the last 3 lines in my previous post the program works fine but on exit does not make the icons appear again.Been messing around with on exit command but no luck
Code:
#Persistent
#singleinstance, force
SetWinDelay, -1
;PostMessage, 0x111, 29698,,, ahk_class Progman ; SHOW DESKTOP ICONS (TOGGLE)
;PostMessage, 0x111, 29698,,, ahk_class Progman ; SHOW DESKTOP ICONS (TOGGLE)
OnExit Exit
SetTimer, WatchCursor, 100
return
WatchCursor:
CoordMode, Mouse, Screen
MouseGetPos, X, Y, id, control
WinGetTitle, title, ahk_id %id%
; WinGetClass, class, ahk_id %id%
;tooltip %title% %x%
If (title = "Program Manager") and ( X < 200 ) {
SetTimer, WatchCursor, off
x = 1
;loop, 254
loop, 1
{
x := x + 1
;tooltip WinMove+
; winmove, Program Manager, , %x%
;WinSet, Transparent, %x%, Program Manager
PostMessage, 0x111, 29698,,, ahk_class Progman ; SHOW DESKTOP ICONS (TOGGLE)
}
sleep, 3000
;loop, 254
loop, 1
{
x := x - 1
;tooltip WinMove-
; winmove, Program Manager, , %x%
;WinSet, Transparent, %x%, Program Manager
PostMessage, 0x111, 29698,,, ahk_class Progman ; SHOW DESKTOP ICONS (TOGGLE)
}
;tooltip WinMove End
SetTimer, WatchCursor, on
}
return
EXIT:
PostMessage, 0x111, 29698,,, ahk_class Progman ; SHOW DESKTOP ICONS (TOGGLE)
ExitApp