Sign in to follow this  
Followers 0
Ontosy

autoit.scr not work with user32.dll

4 posts in this topic

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

why?

Share this post


Link to post
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.

Br,

UEZ


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!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

What does the [boot] section of your System.ini file look like?

Not have [boot] section in my System.ini file

Share this post


Link to post
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
Sign in to follow this  
Followers 0