| View previous topic :: View next topic |
| Author |
Message |
Wawa Guest
|
Posted: Thu Jul 09, 2009 6:10 pm Post subject: Lock Computer and Turn off Monitor... |
|
|
Why does this code not lock my computer as well as turn off the monitors?
The monitors shut off fine, but my computer does not lock -- any ideas?
| Code: | ^F10::
Sleep, 200
Send, #L
Sleep, 200
SendMessage,0x112,0xF170,2,,Program Manager
return |
|
|
| Back to top |
|
 |
BigVent
Joined: 29 May 2008 Posts: 180
|
Posted: Thu Jul 09, 2009 7:06 pm Post subject: |
|
|
| Code: | ^F10::
{
Sleep, 200
DllCall("LockWorkStation")
Sleep, 200
SendMessage,0x112,0xF170,2,,Program Manager
}
return
|
_________________ ~BigVent |
|
| Back to top |
|
 |
Wawa Guest
|
Posted: Fri Jul 10, 2009 1:29 pm Post subject: |
|
|
| Perfect, thanks!! |
|
| Back to top |
|
 |
BigVent
Joined: 29 May 2008 Posts: 180
|
Posted: Fri Jul 10, 2009 2:20 pm Post subject: |
|
|
Glad to help!  _________________ ~BigVent |
|
| Back to top |
|
 |
jasa56
Joined: 27 Oct 2008 Posts: 12
|
Posted: Fri Jul 17, 2009 2:19 pm Post subject: |
|
|
| nice ! |
|
| Back to top |
|
 |
badmojo
Joined: 11 Nov 2005 Posts: 202
|
Posted: Sat Jul 18, 2009 2:05 am Post subject: |
|
|
| just curious, why the parentheses made the difference? |
|
| Back to top |
|
 |
jasonbason Guest
|
Posted: Fri Sep 16, 2011 9:34 pm Post subject: Cool |
|
|
This works great! Funny, two years later and it's still helpful. Love the interwebs  |
|
| Back to top |
|
 |
|