|
Mostrar Mensajes
|
Páginas: [1]
|
3
|
Programación / Programación Visual Basic / Re: Ayudenme, necesito que esto me tome en cualquier momento
|
en: 20 Marzo 2011, 04:25 am
|
gracias por la respuesta pero me alta un detallito! me funcionó esto pero quiero reemplazar el "control" por la tecla "escape", que me falta?? yo supuse que poniendo Private Const VK_ESCAPE = &H1B, y despues reemplazando el "CONTROL" por "VK_ESCAPE" bastaría, pero lo hize y no funciona, ayudaaa Private Const MOD_ALT = &H1 Private Const MOD_CONTROL = &H2 Private Const MOD_SHIFT = &H4 Private Const PM_REMOVE = &H1 Private Const WM_HOTKEY = &H312 'Private Const VK_ESCAPE = &H1B Private Type POINTAPI x As Long y As Long End Type Private Type Msg hWnd As Long Message As Long wParam As Long lParam As Long time As Long pt As POINTAPI End Type Private Declare Function RegisterHotKey Lib "user32" (ByVal hWnd As Long, ByVal id As Long, ByVal fsModifiers As Long, ByVal VK As Long) As Long Private Declare Function UnregisterHotKey Lib "user32" (ByVal hWnd As Long, ByVal id As Long) As Long Private Declare Function PeekMessage Lib "user32" Alias "PeekMessageA" (lpMsg As Msg, ByVal hWnd As Long, ByVal wMsgFilterMin As Long, ByVal wMsgFilterMax As Long, ByVal wRemoveMsg As Long) As Long Private Declare Function WaitMessage Lib "user32" () As Long Private bCancel As Boolean Private Sub ProcessMessages() Dim Message As Msg 'loop until bCancel is set to True Do While Not bCancel 'wait for a message WaitMessage 'check if it's a HOTKEY-message If PeekMessage(Message, Me.hWnd, WM_HOTKEY, WM_HOTKEY, PM_REMOVE) Then 'minimize the form 'WindowState = vbMinimized Dim ejecutabat ejecutabat = Shell("C:\ejemplo.bat", 1) End If 'let the operating system process other events DoEvents Loop End Sub Private Sub Form_Load() 'KPD-Team 2000 'URL: http://www.allapi.net/ 'E-Mail: KPDTeam@Allapi.net Dim ret As Long bCancel = False 'register the Ctrl-F hotkey ret = RegisterHotKey(Me.hWnd, &HBFFF&, MOD_CONTROL, vbKey1) 'show some information Me.AutoRedraw = True Me.Print "Press CTRL-F to minimize this form" 'show the form and Show 'process the Hotkey messages ProcessMessages End Sub Private Sub Form_Unload(Cancel As Integer) bCancel = True 'unregister hotkey Call UnregisterHotKey(Me.hWnd, &HBFFF&) End Sub
|
|
|
4
|
Programación / Programación Visual Basic / Ayudenme, necesito que esto me tome en cualquier momento
|
en: 20 Marzo 2011, 03:48 am
|
saludos! una ayuda porfa, necesito hacer lo siguiente, tengo un codigo que al apretar "escape+1" me ejecuta un archivo .bat, me funciona bien eso, peeero necesito que esa combinación me tome en cualquier momento, incluso si estoy jugando en linea, chateando, escuchando música, etc, que el "escape+1" me funcione siempre, saben como hacerlo? porfa, cualquier aporte se agradece en demasía
|
|
|
5
|
Foros Generales / Dudas Generales / Re: crear un cd o dvd con varios windwos booteables y elegir con cual arrancar
|
en: 2 Noviembre 2009, 16:42 pm
|
Hola otaku_dread Ese Windows te funciona sin el equipo virtual? De todas maneras, yo uso VirtualBox, no he usado el VMware, fijate en la parte inferior de tu imagen, quizás haya que configurar algo en las Tools, o si quieres baja gratuitamente el VirtualBox y pruebas a ver que tal. lo mismo mira, manipulé las carpetas tal como decía el manual, las carpetas me quedaron así: y manipulè los archivos SETUPLDR.BIN, SETUPREG.HIV y TXTSETUP.SIF, a todos esos les puse reemplazar al texto "i386" por "UE09", no recuerdo cual de esos 3 no encontrò ese texto "i386", pero la cosa es que tratè de seguir paso a paso el manual que le diste a luisha, pero no me resulta help
|
|
|
|
|
|
|