Nuevas NORMAS para el foro

Curso Hacker
Bienvenido(a), Visitante. Favor de ingresar o registrarse.
¿Perdiste tu email de activación? - Julio 24, 2008, 06:58:11
Boton Buscar
Inicio Ayuda Ingresar Registrarse
Visita: Articulos - Juegos Gratis - Da Foros

Comunidad Underground Hispana  |  Programacion  |  Programación  |  Programación Basica  |  Tema: Help Visual Basic Pantalla 0 Usuarios y 1 Visitante están viendo este tema. « anterior próximo »
Páginas: [1] Ir Abajo Imprimir
Autor Tema: Help Visual Basic Pantalla  (Leído 547 veces)
gumer
Visitante
« en: Diciembre 23, 2003, 12:06:01 »

 Grin
A ver la idea es la que sige:
Quiero capturar en una imagen de la pantalla completa y guardarlo en un archivo "c:/lacarpte/elarchivo.jpg", ahora bien, e visto como tener la imagen en el portapapeles es decir el simil a teclear el printScren y de ai pegarlo con "ctr V" en el paint, pero de manera manual.
A ver si me deje entender.
En línea
Lainuxxx
Visitante
« Respuesta #1 en: Enero 02, 2004, 10:07:41 »

Bueno kreo ke te entiendo aki tienes un kode modificado por mi ke kreo es lo ke buscas.



EN GENERAL
:::::::::::::::
Private Declare Function GetDesktopWindow Lib "user32" () As Long

Private Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function BitBlt Lib "gdi32" _
                                    (ByVal hDestDC As Long, _
                                     ByVal X As Long, _
                                     ByVal Y As Long, _
                                     ByVal nWidth As Long, _
                                     ByVal nHeight As Long, _
                                     ByVal hSrcDC As Long, _
                                     ByVal xSrc As Long, _
                                     ByVal ySrc As Long, _
                                     ByVal dwRop As Long) As Long

EN EL FORM
:::::::::::::::

Private Sub Form_Load()
On Error Resume Next
 Dim A As Long
Dim s As Long
Me.Cls
Me.AutoRedraw = True
Me.ScaleMode = 1
A = GetDesktopWindow()
s = GetDC(A)
BitBlt Me.hDC, 0, 0, Screen.Width, Screen.Height, s, 0, 0, vbSrcCopy

'Remplaza automaticamente la imagen vieja por la nueva
'Kill "C:\imagen.Jpg"

'Kon esto Guardas tu imagen
SavePicture Me.Image, "C:\imagen.jpg"
If SetWindowPos(hwnd, -1, 0, 0, 0, 0, SWP_FLAGS) Then
frmcongela.WindowState = 2
End If

End Sub


EN UN MODULO
:::::::::::::::::::
Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long

Saludoz

Lainuxxx




« Última modificación: Enero 02, 2004, 10:09:05 por Lainuxxx » En línea
Páginas: [1] Ir Arriba Imprimir 
Comunidad Underground Hispana  |  Programacion  |  Programación  |  Programación Basica  |  Tema: Help Visual Basic Pantalla « anterior próximo »
Ir a:  


Ranking-Hits
Powered by SMF 1.1.5 | SMF © 2006-2007, Simple Machines LLC