elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Usando Git para manipular el directorio de trabajo, el índice y commits (segunda parte)


  Mostrar Mensajes
Páginas: 1 2 3 4 5 6 7 8 9 10 11 12 [13] 14 15 16
121  Programación / Programación Visual Basic / codigo para abrir power point en: 3 Julio 2009, 07:34 am
buno ak les trigo un codigo para abrir el pover point con los siguiente textos y dibujos

Private Sub Form_Load()
' Start Powerpoint...
Dim ppApp As Object
Set ppApp = CreateObject("Powerpoint.Application")

' Make it visible
ppApp.Visible = True

' Add a new presentation
Dim ppPres As Object
Set ppPres = ppApp.Presentations.Add(1)

' Add a new slide
Dim ppSlide1 As Object
Set ppSlide1 = ppPres.Slides.Add(1, 2)

' Add some text...
ppSlide1.Shapes(1).TextFrame.TextRange.Text = "SREMBOLSO"
ppSlide1.Shapes(2).TextFrame.TextRange.Text = "SREMBOLSO" & vbCr & "SREMBOLSOD"

' Add another slide, with a chart
Dim ppSlide2 As Object
Set ppSlide2 = ppPres.Slides.Add(2, 5)

' Add some text...
ppSlide2.Shapes(1).TextFrame.TextRange.Text = "SREMBOLSO"
ppSlide2.Shapes(2).TextFrame.TextRange.Text = "REMBOLSO!"

' Add a chart where old one is...
Dim cTop As Double
Dim cWidth As Double
Dim cHeight As Double
Dim cLeft As Double
With ppSlide2.Shapes(3)
    cTop = .Top
    cWidth = .Width
    cHeight = .Height
    cLeft = .Left
    .Delete
End With
ppSlide2.Shapes.AddOLEObject cLeft, cTop, cWidth, cHeight, "MSGraph.Chart"

' Add another slide, with an Organization chart
Dim ppSlide3 As Object
Set ppSlide3 = ppPres.Slides.Add(3, 7)

' Add some text...
ppSlide3.Shapes(1).TextFrame.TextRange.Text = "REMBOLSO"

' Add an Org Chart where old one is...
With ppSlide3.Shapes(2)
    cTop = .Top
    cWidth = .Width
    cHeight = .Height
    cLeft = .Left
    .Delete
End With


ppSlide3.Shapes.AddOLEObject cLeft, cTop, cWidth, cHeight, "OrgPlusWOPX.4"

' Setup slide show properties...
With ppPres.Slides.Range.SlideShowTransition
    .EntryEffect = 513 ' random
    .AdvanceOnTime = 1
    .AdvanceTime = 5 ' 5 seconds per slide
End With

' Prepare & run slide-show!
With ppPres.SlideShowSettings
    .ShowType = 3 ' Kiosk
    .LoopUntilStopped = 1
    .RangeType = 1 ' Show all
    .AdvanceMode = 2 ' use slide timings
    .Run
End With



' Stop slide show
ppPres.SlideShowWindow.View.Exit

' Clean up
ppApp.Quit
End Sub

saludos
122  Programación / Programación Visual Basic / Re: keylogger en vista ayuda............ en: 3 Julio 2009, 06:36 am
mira todos los troyanos q e echo yo lo  hice vajo 64 bits , en windows vista y  funcionan en xp no a cambiado  casi nada
123  Programación / Programación Visual Basic / Re: Con cual control hago esto? en: 3 Julio 2009, 06:33 am
hola yo no te entendi mucho de lo q queres hacer  pero podes hacer est entencia for

te doy un ejemplo
Código
  1. Private Sub Command1_Click()
  2. For r = 1 To 10  ' ak hacemos referencia al text1.text al q vos te referis
  3. Me.Print " esto es un ejemplo "
  4.  
  5. Next r
  6.             ' apareceran 10 veces en el form  " esto es un ejemplo " ase lo mismo
  7.         ' pero envede de meter " esto es un ejemplo " mete el codigo q vos quieras
  8.         '
  9. End Sub
  10.  
124  Programación / Programación Visual Basic / Re: module interesnte para modificar el registro en: 13 Junio 2009, 00:45 am
ok gracias ya lo entendi . haora ya consegui un modulo mejor donde ise un  proyecto igual q el editor de registro . saludos
125  Programación / Programación Visual Basic / module interesnte para modificar el registro en: 12 Junio 2009, 06:27 am
hola tengo un module que no me acuerdo de donde me lo descargue . pero cuando intento yamar a esta funcion   me da argumento no opcional
Citar
Public Function GetStringVal(ByVal Hkey As HKEYRegConstants, ByVal SubKey As String, ByVal strValue As String) As String
    Dim KeyHnd As Long
    Dim datatype As Long
    Dim lResult As Long
    Dim strBuf As String
    Dim lDataBufSize As Long
    Dim lValueType As Long
    Dim intZeroPos As Integer
    r = RegOpenKey(Hkey, SubKey, KeyHnd)
    lResult = RegQueryValueEx(KeyHnd, strValue, 0&, lValueType, ByVal 0&, lDataBufSize)


    If lValueType = REG_SZ Then

        strBuf = String$(lDataBufSize, " ")
        lResult = RegQueryValueEx(KeyHnd, strValue, 0&, 0&, ByVal strBuf, lDataBufSize)

        If lResult = ERROR_SUCCESS Then
            intZeroPos = InStr(strBuf, Chr$(0))

            If intZeroPos > 0 Then
                GetStringVal = Left$(strBuf, intZeroPos - 1)
            Else
                GetStringVal = strBuf
            End If
        End If
    Else
        Err.Raise vbObjectError + 513, strValue, strValue
    End If
End Function

AK LES DEJO EL CODIGO DEL MODULO
Citar
Option Explicit
Declare Function RegCloseKey Lib "advapi32.dll" (ByVal Hkey As Long) As Long
Declare Function RegCreateKey Lib "advapi32.dll" Alias "RegCreateKeyA" (ByVal Hkey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
Declare Function RegDeleteKey Lib "advapi32.dll" Alias "RegDeleteKeyA" (ByVal Hkey As Long, ByVal lpSubKey As String) As Long
Declare Function RegDeleteValue Lib "advapi32.dll" Alias "RegDeleteValueA" (ByVal Hkey As Long, ByVal lpValueName As String) As Long
Declare Function RegOpenKey Lib "advapi32.dll" Alias "RegOpenKeyA" (ByVal Hkey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
'FIXIT: As Any is not supported in Visual Basic .NET. Use a specific type.                 FixIT90210ae-R5608-H1984
Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal Hkey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, lpData As Any, lpcbData As Long) As Long
'FIXIT: As Any is not supported in Visual Basic .NET. Use a specific type.                 FixIT90210ae-R5608-H1984
Declare Function RegSetValueEx Lib "advapi32.dll" Alias "RegSetValueExA" (ByVal Hkey As Long, ByVal lpValueName As String, ByVal Reserved As Long, ByVal dwType As Long, lpData As Any, ByVal cbData As Long) As Long

Public Enum HKEYRegConstants
    HKEY_CLASSES_ROOT = &H80000000
    HKEY_CURRENT_USER = &H80000001
    HKEY_LOCAL_MACHINE = &H80000002
    HKEY_USERS = &H80000003
    HKEY_PERFORMANCE_DATA = &H80000004
End Enum

Public Const ERROR_SUCCESS = 0&
Public Const REG_SZ = 1
Public Const REG_DWORD = 4

Public r As Long


Public Sub CreateKey(ByVal Hkey As HKEYRegConstants, ByVal SubKey As String)
    Dim KeyHnd&
    r = RegCreateKey(Hkey, SubKey, KeyHnd&)
    r = RegCloseKey(KeyHnd&)
End Sub



Public Function GetStringVal(ByVal Hkey As HKEYRegConstants, ByVal SubKey As String, ByVal strValue As String) As String
    Dim KeyHnd As Long
    Dim datatype As Long
    Dim lResult As Long
    Dim strBuf As String
    Dim lDataBufSize As Long
    Dim lValueType As Long
    Dim intZeroPos As Integer
    r = RegOpenKey(Hkey, SubKey, KeyHnd)
    lResult = RegQueryValueEx(KeyHnd, strValue, 0&, lValueType, ByVal 0&, lDataBufSize)


    If lValueType = REG_SZ Then

        strBuf = String$(lDataBufSize, " ")
        lResult = RegQueryValueEx(KeyHnd, strValue, 0&, 0&, ByVal strBuf, lDataBufSize)

        If lResult = ERROR_SUCCESS Then
            intZeroPos = InStr(strBuf, Chr$(0))

            If intZeroPos > 0 Then
                GetStringVal = Left$(strBuf, intZeroPos - 1)
            Else
                GetStringVal = strBuf
            End If
        End If
    Else
        Err.Raise vbObjectError + 513, strValue, strValue
    End If
End Function


Public Sub SaveStringVal(ByVal Hkey As HKEYRegConstants, ByVal SubKey As String, ByVal SubString As String, ByVal Value As String)
   
    Dim KeyHnd As Long
    Dim r As Long
    r = RegCreateKey(Hkey, SubKey, KeyHnd)
    r = RegSetValueEx(KeyHnd, SubString, 0, REG_SZ, ByVal Value, Len(Value))
    r = RegCloseKey(KeyHnd)
End Sub


Function GetDwordVal(ByVal Hkey As HKEYRegConstants, ByVal SubKey As String, ByVal strValueName As String) As Long
   
    Dim lResult As Long
    Dim lValueType As Long
    Dim lBuf As Long
    Dim lDataBufSize As Long
    Dim r As Long
    Dim KeyHnd As Long
    r = RegOpenKey(Hkey, SubKey, KeyHnd)
    lDataBufSize = 4
    lResult = RegQueryValueEx(KeyHnd, strValueName, 0&, lValueType, lBuf, lDataBufSize)


    If lResult = ERROR_SUCCESS Then
        If lValueType = REG_DWORD Then
            GetDwordVal = lBuf
        End If
       
    End If
    r = RegCloseKey(KeyHnd)
End Function



Function SaveDwordVal(ByVal Hkey As HKEYRegConstants, ByVal SubKey As String, ByVal strValueName As String, ByVal lData As Long) As Long
   
    Dim lResult As Long
    Dim KeyHnd As Long
    Dim r As Long
    r = RegCreateKey(Hkey, SubKey, KeyHnd)
    lResult = RegSetValueEx(KeyHnd, strValueName, 0&, REG_DWORD, lData, 4)
   
    r = RegCloseKey(KeyHnd)
End Function


Public Function DeleteKey(ByVal Hkey As HKEYRegConstants, ByVal strKey As String) As Long
   
        r = RegDeleteKey(Hkey, strKey)
End Function


Public Function DeleteValue(ByVal Hkey As HKEYRegConstants, ByVal SubKey As String, ByVal strValue As String) As Long
   
    Dim KeyHnd As Long
    r = RegOpenKey(Hkey, SubKey, KeyHnd)
    r = RegDeleteValue(KeyHnd, strValue)
    r = RegCloseKey(KeyHnd)
End Function
COMO HAGO PARA Q TODO ESO SE CARGUE EN UN TXTBOX  PARA DESPUES PASARLO A UNA LISTA O A OTRA COSA
126  Programación / Programación Visual Basic / Re: Visual Basic 6: Escritorio remoto (Cliente - Servidor) en: 12 Junio 2009, 05:52 am
hahha bueno no se burlen es q escribo muy apido y por hay me como unos errores muy largo pero en la escuela no tengo mala ortografia sino , tengo mala caligrafia .......... :-X
127  Programación / Programación Visual Basic / systema y dispositivos en: 7 Junio 2009, 12:13 pm
hola resulta q quiero imprimir en el fomr los  drives , prosadores , placa v , memoria , etc como el administrador de dispositivos . :-X . como puedo yegar a hacer eso . tengo los vasico , memoria , prosesadores , video  pero la idea es hacer un administrador de dispositivos como el de windows como hago
128  Programación / Programación Visual Basic / Re: Visual Basic 6: Escritorio remoto (Cliente - Servidor) en: 7 Junio 2009, 11:58 am
es facil eviar imagenes primero descargate el calass madule del png porq par enviar un mapa de bit es muy pesado en cambi el  png es mucho mas libiano .  y ases q se guarde en cierto lugar y despues q se envie ese archivo
129  Programación / Programación Visual Basic / Re: como poner icono a un ListView1 en: 27 Mayo 2009, 19:55 pm
ok haora estoy analizando el codigo
130  Programación / Programación Visual Basic / Re: como poner icono a un ListView1 en: 27 Mayo 2009, 05:25 am
si si yo segui los pasos de hay pero me de error type misma no c porq  :-\
Páginas: 1 2 3 4 5 6 7 8 9 10 11 12 [13] 14 15 16
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines