forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Run and shell open at same time
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Fri Sep 09, 2005 6:53 pm    Post subject: Reply with quote

OK, I played around with it, and this works on my system. Is this an acceptable solution for you?

Code:

Title WS Lock
  loadlib user32.dll
  DIALOG CREATE,Lock Workstation,-1,0,240,160
  DIALOG ADD,BUTTON,Lock,65,73,91,38,Lock
  DIALOG SHOW
:Evloop
  wait event
  goto @event()
:LockBUTTON
  %x = @lib(user32,LockWorkStation,bool)
  freelib user32.dll
 
:Close
  exit


Hooligan

_________________
Hooligan

Why be normal?
Back to top
View user's profile Send private message
filip
Valued Contributor
Valued Contributor


Joined: 07 Aug 2004
Posts: 340

PostPosted: Sat Sep 10, 2005 4:34 am    Post subject: Reply with quote

Your code is OK, but it must be done under %%


Finaly i get what i want with this code...

%W = @WINDIR(S)
%%ShutDown1 = %W\rundll32.exe user32.dll"," LockWorkStation
runh %%ShutDown1
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group