Jump to content

autoit.scr not work with user32.dll


Recommended Posts

I use:

Const $SC_SCREENSAVE = 0xF140, $WM_SYSCOMMAND = 0x112;
DllCall("user32.dll", "long", "SendMessage", "hwnd", $hwnd[0], "int", $WM_SYSCOMMAND, "int", $SC_SCREENSAVE, "int", 0x0)

to start the screensaver setted.

It work normally.

But i have compiled a autoit3 script to .scr file.

And it not start with code above.

Instead it start with:

script.scr /s


Link to comment
Share on other sites

As far as I know the default parameter for scr files are /s when explicit parameter is given.

/c is to call the config menu and /p is the preview screen.



Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

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

  • Recently Browsing   0 members

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