Jump to content

Turn autoit exe into screen saver


Recommended Posts

I have a autoit exe and i want to make it my screen saver. do i need to set all the parameters and everything like a config window or whatever, because i have nothing to config with this. here is my code:

#Include <GuiConstants.au3>

opt('WinTitleMatchMode', 4)
HotKeySet("{ESC}","Terminate")

Global $window_[2000], $x, $y, $int, $label_[2000]

While 1
WinMinimizeall()
WinSetState("classname=Shell_TrayWnd", "", @SW_HIDE)
WinSetState("Program Manager", "", @SW_HIDE)

For $int= 10 to 1010
$x = Random(0, @DesktopWidth)
$y = Random(0, @DesktopHeight)
MouseMove($x, $y,5)
Sleep(50)
ToolTip($int-10, 1, 1)
$window_[$int] = GuiCreate("", 30, 15, $x, $y, $WS_PopUp, BitOR($WS_EX_TOPMOST, $WS_EX_TOOLWINDOW))
GuiSetBKColor(0xF0F0F0)
$label_[$int] = GuiCtrlCreateLabel("Hello", 2.5, 1)
GuiCtrlSetColor($label_[$int], 0xff0000)
GuiSetState()
Sleep(50)
$Num = $int - 10
GUIDelete($window_[$Num])
Next
Wend


Func Terminate()
    WinMinimizeAllUndo()
    WinSetState("classname=Shell_TrayWnd", "", @SW_SHOW)
    WinSetState("Program Manager", "", @SW_SHOW)
    Exit 0
EndFunc
Link to comment
Share on other sites

Compile your script and then change the extension to .scr


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

Compile your script and then change the extension to .scr

I tried that, and i put it in system folder w/ other screen savers, ad windows did not detect it as a screensaver in the display options
Link to comment
Share on other sites

I tried that, and i put it in system folder w/ other screen savers, ad windows did not detect it as a screensaver in the display options

It works when I put it into system32 folder on Win XP Pro.


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...