Weasel Posted October 2, 2009 at 04:27 PM Report Share #289665 Posted October 2, 2009 at 04:27 PM Estava aqui a tentar mas não sei para onde me virar, queria desbloquear o computador através do VB.NET. Tentei com o sendKeys enviar a combinação CTRL+ALT+DEL, mas não fez nada... Dim skey As Keys skey = Keys.Control + Keys.Alt + Keys.Delete System.Windows.Forms.SendKeys.Send(skey) Alguém sabe como dar a volta a isto? Eventualmente será necessário fazer o ctrl+alt+del e depois "digitar" a password (previamente guardada na aplicação) Knowledge to the masses Link to comment Share on other sites More sharing options...
bruno1234 Posted October 2, 2009 at 06:31 PM Report Share #289680 Posted October 2, 2009 at 06:31 PM O Ctrl+Alt+Del bloqueia o paste para a password, não sei se com send keys vais lá. Mas é uma questão de experimentar. Matraquilhos para Android. Gratuito na Play Store. https://play.google.com/store/apps/details?id=pt.bca.matraquilhos Link to comment Share on other sites More sharing options...
Weasel Posted October 2, 2009 at 06:37 PM Author Report Share #289683 Posted October 2, 2009 at 06:37 PM Como já referi acima, tentei com o sendkeys mas não fez nada, não apareceu a janela para se introduzir a password... Knowledge to the masses Link to comment Share on other sites More sharing options...
lufinima Posted October 2, 2009 at 09:40 PM Report Share #289716 Posted October 2, 2009 at 09:40 PM Para Bloquear o computador é fácil tens aki um exemplo em C#: //Converter para VB.Net não é difícil using System; using System.Collections; using System.Data; using System.Runtime.InteropServices; public class MainClass { [ DllImport( "user32.dll" ) ] private static extern bool LockWorkStation(); [sTAThread] static void Main() { LockWorkStation(); } } com managed code não sei se é possivel, mas penso que não. Com o sendkeys não é possível enviar Ctr+Alt+Del Link to comment Share on other sites More sharing options...
Weasel Posted October 3, 2009 at 08:42 AM Author Report Share #289746 Posted October 3, 2009 at 08:42 AM Sim bloquear é simples já o tinha conseguido, o meu problema é mesmo desbloquear que não sei como. Knowledge to the masses Link to comment Share on other sites More sharing options...
Weasel Posted October 4, 2009 at 09:52 AM Author Report Share #289874 Posted October 4, 2009 at 09:52 AM Alguém sabe de algo? Programas como o VNC (UltraVnc) e similares conseguiram dar a volta a isto... Knowledge to the masses Link to comment Share on other sites More sharing options...
Guest id194 Posted October 4, 2009 at 11:01 AM Report Share #289880 Posted October 4, 2009 at 11:01 AM Vê se isto ajuda: http://www.codeproject.com/KB/system/RemoteUnlock.aspx Link to comment Share on other sites More sharing options...
Weasel Posted October 6, 2009 at 10:59 AM Author Report Share #290222 Posted October 6, 2009 at 10:59 AM Ajuda sim senhor Nazgulled, obrigado! Knowledge to the masses Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now