• Domingo 12 de Mayo de 2024, 16:46

Mostrar Mensajes

Esta sección te permite ver todos los posts escritos por este usuario. Ten en cuenta que sólo puedes ver los posts escritos en zonas a las que tienes acceso en este momento.


Mensajes - Hawk

Páginas: [1]
1
VBA / Re: Como Leer Codigos De Barra
« en: Lunes 10 de Mayo de 2004, 19:29 »
Hola mira no se mucho de lo que estas pidiendo, pero tengo un conocido que esta creando un programa tipo de venta, con el detector de codigos de barra si queres te averiguo  :D .
             
Hawk

2
VBA / Re: Capturar Una Region De La Pantalla?
« en: Viernes 7 de Mayo de 2004, 20:44 »
hola fijate si esto se lo soluciona:

 :comp:

VERSION 5.00
Begin VB.Form frmPartialScreenShot
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "Example of how to use modTakeScreenShot"
   ClientHeight    =   5772
   ClientLeft      =   36
   ClientTop       =   324
   ClientWidth     =   5388
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   5772
   ScaleWidth      =   5388
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton cmdFull
      Caption         =   "Take a &Full screenshot instead"
      Height          =   372
      Left            =   120
      TabIndex        =   11
      Top             =   5280
      Width           =   5172
   End
   Begin VB.CommandButton cmdScreenShot
      Caption         =   "&Click here to take a screenshot"
      Default         =   -1  'True
      Height          =   372
      Left            =   120
      TabIndex        =   8
      Top             =   4800
      Width           =   5172
   End
   Begin VB.PictureBox picScreenShot
      Height          =   3840
      Left            =   120
      ScaleHeight     =   3792
      ScaleWidth      =   5076
      TabIndex        =   10
      Top             =   840
      Width           =   5120
   End
   Begin VB.TextBox txtHeight
      Height          =   288
      Left            =   2640
      TabIndex        =   7
      Top             =   480
      Width           =   732
   End
   Begin VB.TextBox txtWidth
      Height          =   288
      Left            =   2640
      TabIndex        =   5
      Top             =   120
      Width           =   732
   End
   Begin VB.TextBox txtLeft
      Height          =   288
      Left            =   840
      TabIndex        =   3
      Top             =   480
      Width           =   732
   End
   Begin VB.TextBox txtTop
      Height          =   288
      Left            =   840
      TabIndex        =   1
      Top             =   120
      Width           =   732
   End
   Begin VB.Label lblNote
      Caption         =   "N.B. These values are in pixels."
      Height          =   492
      Left            =   3600
      TabIndex        =   9
      Top             =   240
      Width           =   1572
   End
   Begin VB.Label lblTop
      Caption         =   "&Top"
      Height          =   252
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   612
   End
   Begin VB.Label lblWidth
      Caption         =   "&Width"
      Height          =   252
      Left            =   1920
      TabIndex        =   4
      Top             =   120
      Width           =   612
   End
   Begin VB.Label lblHeight
      Caption         =   "&Height"
      Height          =   252
      Left            =   1920
      TabIndex        =   6
      Top             =   480
      Width           =   612
   End
   Begin VB.Label lblLeft
      Caption         =   "&Left"
      Height          =   252
      Left            =   120
      TabIndex        =   2
      Top             =   480
      Width           =   612
   End
End
Attribute VB_Name = "frmPartialScreenShot"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdFull_Click()
frmScreenShot.Show
frmPartialScreenShot.Hide
End Sub

Private Sub cmdScreenShot_Click()
On Error GoTo Err 'in case the .Text are not numeric
Dim Top As Long, Left As Long, Width As Long, Height As Long
Top = CLng(txtTop.Text)
Left = CLng(txtLeft.Text)
Width = CLng(txtWidth.Text)
Height = CLng(txtHeight.Text)
Call PartialScreenShot(picScreenShot.hDC, Top, Left, Width, Height)
Err:
End Sub

Private Sub txtTop_GotFocus()
txtTop.SelStart = 0
txtTop.SelLength = Len(txtTop.Text)
End Sub

Private Sub txtLeft_GotFocus()
txtLeft.SelStart = 0
txtLeft.SelLength = Len(txtLeft.Text)
End Sub

Private Sub txtWidth_GotFocus()
txtWidth.SelStart = 0
txtWidth.SelLength = Len(txtWidth.Text)
End Sub

Private Sub txtHeight_GotFocus()
txtHeight.SelStart = 0
txtHeight.SelLength = Len(txtHeight.Text)
End Sub

  :comp:

eso es para parcial screen es un archivo *.frm lo escribi haci para facilitar el evio :D
este de abajo es de el screen shot completo

 :comp:

VERSION 5.00
Begin VB.Form frmScreenShot
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "Example of how to use modTakeScreenShot"
   ClientHeight    =   5052
   ClientLeft      =   36
   ClientTop       =   324
   ClientWidth     =   5376
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   5052
   ScaleWidth      =   5376
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton cmdPartial
      Caption         =   "Take a &Partial screenshot instead"
      Height          =   372
      Left            =   120
      TabIndex        =   2
      Top             =   4560
      Width           =   5172
   End
   Begin VB.CommandButton cmdScreenShot
      Caption         =   "&Click here to take a screenshot"
      Default         =   -1  'True
      Height          =   372
      Left            =   120
      TabIndex        =   0
      Top             =   4080
      Width           =   5172
   End
   Begin VB.PictureBox picScreenShot
      Height          =   3840
      Left            =   120
      ScaleHeight     =   3792
      ScaleWidth      =   5076
      TabIndex        =   1
      Top             =   120
      Width           =   5120
   End
End
Attribute VB_Name = "frmScreenShot"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdPartial_Click()
frmPartialScreenShot.Show
frmScreenShot.Hide
End Sub

Private Sub cmdScreenShot_Click()
Call ScreenShot(picScreenShot.hDC)
End Sub

 :comp:

 y aca va el modulo usado

 :comp:

Attribute VB_Name = "modTakeScreenShot"
Option Explicit

Public 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
Public Declare Function GetDesktopWindow Lib "user32" () As Long
Public Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long

Public Const SRCCOPY = &HCC0020

Public Sub ScreenShot(DestinationDC As Long)
Dim ScreenWidth As Long, ScreenHeight As Long, ScreenDC As Long, retval As Long
ScreenWidth = Screen.Width / Screen.TwipsPerPixelX
ScreenHeight = Screen.Height / Screen.TwipsPerPixelY
ScreenDC = GetDC(GetDesktopWindow)
retval = BitBlt(DestinationDC, 0, 0, ScreenWidth, ScreenHeight, ScreenDC, 0, 0, SRCCOPY)
End Sub

Public Sub PartialScreenShot(DestinationDC As Long, Top As Long, Left As Long, Width As Long, Height As Long)
Dim ScreenDC As Long, retval As Long
ScreenDC = GetDC(GetDesktopWindow)
retval = BitBlt(DestinationDC, 0, 0, Width, Height, ScreenDC, Top, Left, SRCCOPY)
End Sub

 :comp:
che entre la computadoritas esta el codigo para diferencialo a simple vista.
bueno espero que te sive, che conta si te funciona para saber. bueno caulquier cosa ya sabes donde preguntar.
Suerte  :hola:  
                                 Hawk

3
che master: que queres haces un re trojano, che para que queres hacer uqe no aparesca en el administrador de tareas?

4
Visual Basic 6.0 e inferiores / Leer el registro
« en: Jueves 29 de Mayo de 2003, 01:22 »
hola:
Che alguien sabe como hacer para leer el registro atravez de un programa, o exportar una parte de registro
bueno gracias
chua
                                          Hawk :hitcomp:

5
Visual Basic 6.0 e inferiores / Re: COMO ACCEDER A UNA STRING EN VISUAL BASIC
« en: Jueves 29 de Mayo de 2003, 01:09 »
no se lo que queres hace ver que???

6
Visual Basic 6.0 e inferiores / Re: no se ni como se llama(icono del reloj)
« en: Martes 27 de Mayo de 2003, 23:14 »
Hola:
Che alguien sabe como hacer para que el programa en vez de ponerse en la barra de tares se ponga pero como icono al lado de reloj
Bueno Chau    :brickwall:

7
Visual Basic 6.0 e inferiores / Re: Winsock "ayuda"
« en: Lunes 26 de Mayo de 2003, 15:20 »
hola HurryCrack:
                         Una pregunta tengo que hacer una matris de winsock de forma visual o de forma de programacion, lo que te digo es si pego un winsock y y el segundo le pongo crear matris o directamente al que use en winsock con una matris, burno si tenes un ejemplo se servirias si no tenes no te compliques
buneo muchas gracias

                            Hawk
 :hitcomp:

8
Visual Basic 6.0 e inferiores / Deshablitar teclas
« en: Miércoles 21 de Mayo de 2003, 18:12 »
che aca te paso el programa mira que no se cierra de ninguna manera, si queres que se cierre le tenes q poner un if en en form1_terninater donde esta el shell
En los archivos esta todo explicado.
Bueno estero que te sirve.
Chau , Suerte!!!

:hitcomp: :suerte:     :hippi:
                                                              Hawk

9
Visual Basic 6.0 e inferiores / Re: Deshablitar teclas
« en: Martes 20 de Mayo de 2003, 16:45 »
mañana te paso un ejemplo
perdona pero estoy apurado
cahu Suerte :hitcomp:

10
Visual Basic 6.0 e inferiores / Re: Deshablitar teclas
« en: Martes 20 de Mayo de 2003, 16:37 »
che mañana te paso un ejemplo con todo explicado ( form_unload, lo de lock y lo de cerrar)
bueno te lo paso lo antes posible.
:suerte:
:hitcomp:

11
Visual Basic 6.0 e inferiores / Re: Winsock "ayuda"
« en: Martes 20 de Mayo de 2003, 01:56 »
hola:  
      tengo un problema queiro poner un server en un cyber que tengo con 27 maquinas pero el problema que se me presenta el que cuando tengo 21 socket.listen el buffer se llena, y nop  se como hacer para que funcione, me dijieron que tengo que agrandar el bufer o que la ocx no acepta mas, bueno cualquienr ayuda viene de lijo  

chau :hitcomp::oops: :think:

12
Visual Basic 6.0 e inferiores / Re: comunicacion puerto serie
« en: Martes 20 de Mayo de 2003, 01:49 »
tengo un programa es un chat simple en visual si lo queres mandame un mail a lomal66@hotmail.com , bueno chau y suerte estoy un poco aputado

13
Visual Basic 6.0 e inferiores / Re: Deshablitar teclas
« en: Martes 20 de Mayo de 2003, 01:44 »
hola: che yo trengo un programa que bloquea todo el teclado y mouse si lo queres avisa, para que no te cierren el prog pordes hacer en form_unload  que el cancel = -1 y en form_termitated por las dudas ponelos en los dos y si hay un forma de carrarlo lo que podes hacer en cuando de cierra (form_unload) que se ejecute de nuevo. bueno espero q te sirva chau suerte!!! :hitcomp:

Páginas: [1]