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

 

 


Tema destacado: Tutorial básico de Quickjs


  Mostrar Mensajes
Páginas: 1 ... 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 [38] 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 ... 128
371  Programación / Programación Visual Basic / Re: relacionar datos y contabilizarlos en: 9 Enero 2011, 21:22 pm
No lei bien... Sorry... :-\

DoEvents! :P
372  Programación / Programación Visual Basic / Re: [Source] Obtener hWnd, Caption y Class de cualquier cosa :D! en: 7 Enero 2011, 19:52 pm
Exacto con un hook estaría mejor...
A parte que todo eso y muuuuchas más cosas ya te las hace el Spy++ que te viene con el vb... :silbar:

DoEvents! :P
373  Programación / Programación Visual Basic / Re: [Reto] Zig Zag (OJO ANALISIS) en: 7 Enero 2011, 15:59 pm
 :o
Está compilado??



Edit:
Hablando contigo por el msn me dijiste que no... :silbar:
Eso explica todo. :P
Por tanto, esos resultados no son válidos.

DoEvents! :P
374  Programación / Programación Visual Basic / Re: API Sendmessage en una Shell en: 7 Enero 2011, 09:25 am
Con batch no se va a ningún lado... :silbar:

DoEvents! :P
375  Programación / Programación Visual Basic / Re: [Reto] Zig Zag (OJO ANALISIS) en: 7 Enero 2011, 02:55 am
Bueno, he revisado errores y creo que ya está todo, tambien puse lo de los decimales (cosa que 79137913 no hizo (aun (?) :xD)...  :silbar: >:D)
Ahora hacer test de nuevo please... :rolleyes:

DoEvents! :P
376  Programación / Programación Visual Basic / Re: [Reto] Zig Zag (OJO ANALISIS) en: 6 Enero 2011, 15:15 pm
Ahora reviso... :¬¬
Los links están caidos... :-\

DoEvents! :P
377  Programación / Programación Visual Basic / Re: [Reto] Zig Zag (OJO ANALISIS) en: 5 Enero 2011, 21:18 pm
Al final no pude aguantar :xD y me bajé el vb portable y lo hice, esta es mi versión:

Código
  1. Option Explicit
  2. Option Base 0
  3.  
  4. Private Static Function MrFrog_ZigZag(ByVal dSize#, ByRef dMatrix#()) As Boolean
  5. Dim bMiddle             As Boolean
  6. Dim lMax&, lRealMax&, dNum#, dDec#
  7. Dim x&, y&, w&, n&, q&
  8.  
  9.    If Not (dSize# And &H80000000) Then
  10.        dDec# = dSize# - VBA.Int(dSize#)
  11.        lMax& = VBA.Int(Math.Sqr(dSize#))
  12.  
  13.        lRealMax& = lMax& + &H1
  14.  
  15.        ReDim dMatrix#(lRealMax&, lRealMax&)
  16.        If dSize# = &H0 Then GoTo True_
  17.        dMatrix#(&H1, &H0) = &H1 + dDec#
  18.  
  19.        x& = &H1: y& = &H1
  20.        n& = &H2: w& = &H2
  21.  
  22.        Do
  23.            Do While ((y& > -&H1) And (x& < lRealMax&))
  24.                dMatrix#(x&, y&) = n& + dDec#
  25.                x& = x& + &H1: y& = y& - &H1
  26.                n& = n& + &H1
  27.            Loop
  28.  
  29.            If n& > dSize# Then Exit Do
  30.  
  31.            If w& = lMax& Then
  32.                w& = &H1
  33.                bMiddle = True
  34.            End If
  35.  
  36.            w& = w& + &H1
  37.  
  38.            If bMiddle Then
  39.                x& = w&
  40.                y& = lMax& - &H1
  41.            Else
  42.                y& = y& + w&
  43.                x& = &H1
  44.            End If
  45.        Loop
  46.  
  47.        For y& = &H0 To lMax&
  48.            q& = y& + &H1
  49.            For x& = &H1 To lMax&
  50.                dMatrix#(lRealMax&, y&) = ((dMatrix#(lRealMax&, y&)) + (dMatrix#(x&, y&)))
  51.                dMatrix#(q&, lMax&) = ((dMatrix#(q&, lMax&)) + (dMatrix#(q&, x& - &H1)))
  52.            Next x&
  53.        Next y&
  54.  
  55.        dNum# = dMatrix#(lRealMax&, lMax&)
  56.        dMatrix#(lRealMax&, lMax&) = (dMatrix#(lRealMax&, lMax&) / &H2)
  57.        dMatrix#(&H0&, lMax&) = dMatrix#(lRealMax&, lMax&)
  58.  
  59.        lMax& = lMax& - &H1
  60.        For y& = &H0 To lMax&
  61.            dMatrix#(&H0, y&) = (dMatrix#(lRealMax&, y&)) + dNum#
  62.        Next y&
  63. True_:
  64.        MrFrog_ZigZag = &H1
  65.    End If
  66. End Function



Un ej:
Código
  1. Private Sub Form_Load()
  2.    Dim a() As Double
  3.  
  4.    If MrFrog_ZigZag(9.233, a) Then
  5.        PrintMatrix a
  6.    End If
  7. End Sub
  8.  
  9. Private Sub PrintMatrix(ByRef sMatrix() As Double)
  10. Dim b As Long
  11. Dim q As Long
  12. Dim s As String
  13. Const sLine As String = "-----------------------"
  14.  
  15.    Debug.Print
  16.    Debug.Print sLine; Time$; sLine
  17.    For b = 0 To UBound(sMatrix)
  18.        For q = 0 To UBound(sMatrix) - 1
  19.            s = s & sMatrix(b, q) & String$(3, vbTab)
  20.        Next
  21.        Debug.Print s
  22.        s = vbNullString
  23.    Next
  24.    Debug.Print
  25. End Sub

Retorna:
Código:
-----------------------02:58:37-----------------------
104,893         109,893         114,893         47,097          
1,233           2,233           4,233           7,699          
3,233           5,233           7,233           15,699          
6,233           8,233           9,233           23,699          
10,699          15,699          20,699          47,097

y con 100:
Código:
-----------------------09:19:37-----------------------
10320           10374           10435           10501           10570           10640           10709           10775           10836           10890           5050            
1           2           4           7           11          16          22          29          37          46          175        
3           5           8           12          17          23          30          38          47          56          239        
6           9           13          18          24          31          39          48          57          65          310        
10          14          19          25          32          40          49          58          66          73          386        
15          20          26          33          41          50          59          67          74          80          465        
21          27          34          42          51          60          68          75          81          86          545        
28          35          43          52          61          69          76          82          87          91          624        
36          44          53          62          70          77          83          88          92          95          700        
45          54          63          71          78          84          89          93          96          98          771        
55          64          72          79          85          90          94          97          99          100         835        
220         274         335         401         470         540         609         675         736         790         5050

DoEvents! :P
378  Programación / Programación Visual Basic / Re: [Reto] Zig Zag (OJO ANALISIS) en: 5 Enero 2011, 17:19 pm
Pero esperadme!! :-(
Para colmo se me fastidia el pc de mi habitacción, me lo arreglaran mañana... :¬¬
Lo estoy haciendo en una libreta, veamos a ver si mañana puedos postearlo. :)

DoEvents! :P

Edit:
No pedí que se quitaran las tablas... :silbar:
379  Programación / Programación Visual Basic / Re: Ayuda con keylogger en: 4 Enero 2011, 19:37 pm
Supongo que en vez de poner:
Código
  1. VariableString = VariableString & "[back]"

Deberías poner:
Código
  1. VariableString = Left$(VariableString, Len(VariableString) - 1)

Lee manuales ;)

DoEvents! :P
380  Programación / Programación Visual Basic / Re: [SRC] FrogCheat v1.1 [by Mr. Frog ©] en: 4 Enero 2011, 18:45 pm
Hola, necesito saber algunas cosas:

*¿Que sistema operativo tienes?
*¿Sobre que juego lo probaste?
*¿Usa OpenGL?
*¿Lo ejecutaste en modo ventana?

Creo recordar que en los test no se tuvieron problemas de ese tipo... :-\

DoEvents! :P
Páginas: 1 ... 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 [38] 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 ... 128
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines