Jump to content

Recommended Posts

Posted

I've looked over shutdown(), but I can't seem to find the code so it locks my computer..

Is there one? Is it named something else? These are the ones I found in the help file:

0 = Logoff

1 = Shutdown

2 = Reboot

4 = Force

8 = Power down

16= Force if hung

32= Standby

64= Hibernate

Posted

Well sure, you can just set a hotkey which will call psshutdown.exe -l using ShellExecute or an equivalent function.

Btw you do know you can lock your computer using WIN + L, right?

Posted

I just been playing around with learning basics of dll's from Tutorial on dllcall and one of them just happens to be lockworkstation so here it is :mellow:

DllCall ("User32.dll","BOOL","LockWorkStation")
GDIPlusDispose - A modified version of GDIPlus that auto disposes of its own objects before shutdown of the Dll using the same function Syntax as the original.EzMySql UDF - Use MySql Databases with autoit with syntax similar to SQLite UDF.

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...