DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: About Hide desktop  (Read 5,452 times)

spazpunt

  • Participant
  • Joined in 2009
  • *
  • Posts: 4
About Hide desktop
« on: January 11, 2010, 08:58 AM »
Just wondering, is there a reason why instead of hiding , moving the desktop does not work?
Code
   #Persistent
   SetWinDelay, -1
   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 = 0
      loop, 200
      {
         x := x + 1
         ;tooltip WinMove+
          winmove, Program Manager, , %x%
      }
      sleep, 5000
   
      loop, 200
      {
         x := x - 1
         ;tooltip WinMove-
          winmove, Program Manager, , %x%
      }
      
      ;tooltip WinMove End
      SetTimer, WatchCursor, on
   }
return

Original address: https://www.donationcoder.com/forum/index.php?topic=21354.0