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 Temas
Páginas: 1 2 3 4 5 6 [7] 8 9 10 11 12 13 14 15 16 17
61  Foros Generales / Foro Libre / ¿Cuál es el nombre de este muñeco? en: 10 Enero 2011, 21:19 pm
¿Alguien sabría decirme el nombre de ese muñeco marrón?


Gracias :)
62  Foros Generales / Foro Libre / Dejo el foro para siempre... en: 2 Enero 2011, 13:40 pm
...  :xD
Como siga aqui LordRNA... :laugh: :laugh: :laugh: :laugh:
Hoy es su cupleaños y aunque seas el mayor troll que conozco te felicito! ;-)



DoEvents! :P
63  Programación / Programación Visual Basic / [RETO] Alternativa a Instr() en: 31 Diciembre 2010, 21:14 pm
Bueno, pues eso, para empezar el año con buen pie propongo este reto, consiste en crear una función que haga lo mismo que Instr(). ;D
(En principio sin contar con métodos de compración)
Si hay dudas postear. ;)



DoEvents! :P
64  Programación / Programación Visual Basic / AYUDA URGENTE!!!!!!! en: 28 Diciembre 2010, 15:13 pm
Alguien me puede explicar el comando Mssgbox? (se escribe asi?)
Gracias por adelantado :)
65  Media / Juegos y Consolas / Que shooter online me recomendais? en: 17 Diciembre 2010, 15:51 pm
Pido consejo:

Estoy buscando un shooter online en primera persona que sea fácil de instalar, que no requiera un PC muy potente, y que sea sencillo crear una partida online para jugar con mis amigos.

Gracias ;)
66  Programación / Programación Visual Basic / [SRC] cListBoxMultiAlign [by Mr. Frog ©] en: 15 Diciembre 2010, 00:38 am
Os dejo mi ultima clase que sirve para justificar texto en un ListBox, la novedad es que puedes actuar sobre especificamente con cada Item, dejo el código:

Código
  1. Option Explicit
  2. '==================================================================================================
  3. ' º Class     : MultiAlignListBox.cls
  4. ' º Version   : 1.1
  5. ' º Author    : Mr.Frog ©
  6. ' º Country   : Spain
  7. ' º Mail      : vbpsyke1@mixmail.com
  8. ' º Date      : 14/12/2010
  9. ' º Twitter   : http://twitter.com/#!/PsYkE1
  10. ' º Tested on : WinXp & Win7
  11. ' º Greets    : LaVolpe & Raul338 & BlackZer0x & Karmany
  12. ' º Reference : http://www.elguille.info/colabora/vb2006/karmany_centrartextolistbox.htm
  13. ' º Recommended Websites :
  14. '       http://visual-coders.com.ar
  15. '       http://InfrAngeluX.Sytes.Net
  16. '==================================================================================================
  17.  
  18. Private Declare Function GetDialogBaseUnits Lib "user32" () As Long
  19. Private Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long
  20. Private Declare Function ReleaseDC Lib "user32" (ByVal hwnd As Long, ByVal hDC As Long) As Long
  21. Private Declare Function GetClientRect Lib "user32" (ByVal hwnd As Long, lpRect As RECT) As Long
  22. Private Declare Function SelectObject Lib "gdi32" (ByVal hDC As Long, ByVal hObject As Long) As Long
  23. Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
  24. Private Declare Function GetTextExtentPoint32 Lib "gdi32" Alias "GetTextExtentPoint32A" (ByVal hDC As Long, ByVal lpString As String, ByVal cbString As Long, lpSize As SIZE) As Long
  25.  
  26. Private Type RECT
  27.    Left    As Long
  28.    Top     As Long
  29.    Right   As Long
  30.    Bottom  As Long
  31. End Type
  32.  
  33. Private Type SIZE
  34.    cX      As Long
  35.    cY      As Long
  36. End Type
  37.  
  38. Private Const LB_SETTABSTOPS                        As Long = &H192&
  39. Private Const WM_GETFONT                            As Long = &H31&
  40.  
  41. Private Const CHARS_LIST                            As String = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"
  42. Private Const CHARS_LEN                             As Long = &H3E&
  43.  
  44. Private myListBox                                   As ListBox
  45. Private lListhWnd                                   As Long
  46. Private lWidth                                      As Long
  47.  
  48. Public Sub SetListBox(myList As ListBox)
  49.    If Not (myList Is Nothing) Then
  50.        Set myListBox = myList
  51.        lListhWnd = myListBox.hwnd
  52.        SetRightTab
  53.    End If
  54. End Sub
  55.  
  56. Public Sub AddAlignItem(ByVal Item As String, ByVal Align As AlignmentConstants, Optional ByVal Index As Long = (-1))
  57. Dim lCenterAlign                                    As Long
  58.  
  59.    With myListBox
  60.        lCenterAlign = Int(.Width - PixelsPerUnit(Item))
  61.        If lCenterAlign < 0 Then Align = vbLeftJustify
  62.  
  63.        If Index = (-1) Then Index = .ListCount
  64.  
  65.        Select Case Align
  66.            Case vbRightJustify
  67.                .AddItem vbTab & Item, Index
  68.                If Not (lWidth = GetListSize) Then SetRightTab
  69.            Case vbCenter
  70.                .AddItem Space$(Abs(Int(lCenterAlign / PixelsPerUnit(Space$(1)) / 2) - 1.5)) & Item, Index
  71.            Case Else
  72.                .AddItem Item, Index
  73.        End Select
  74.    End With
  75. End Sub
  76.  
  77. Public Sub ChangeListBoxAlign(Optional ByVal Index As Long = (-1), Optional ByVal Align As AlignmentConstants = vbAlignLeft)
  78. Dim Q                                               As Long
  79.  
  80.    If Index > -1 Then
  81.        SetAlign Index, Align
  82.    Else
  83.        For Q = 0 To (myListBox.ListCount - 1)
  84.            SetAlign Q, Align
  85.        Next Q
  86.    End If
  87. End Sub
  88.  
  89. Public Function GetItem(ByVal Index As Long) As String
  90.    GetItem = LTrim$(myListBox.List(Index))
  91.  
  92.    If (GetItem Like (vbTab & "*")) Then
  93.        GetItem = Right$(GetItem, (Len(GetItem) - 1))
  94.    End If
  95. End Function
  96.  
  97. Private Sub SetAlign(ByVal Index As Long, ByVal Align As AlignmentConstants)
  98. Dim sItem                                           As String
  99.  
  100.    With myListBox
  101.        sItem = GetRealItem(Index)
  102.        If Not (.List(Index) = sItem) Then
  103.            .RemoveItem (Index)
  104.            AddAlignItem sItem, Align, Index
  105.        End If
  106.    End With
  107. End Sub
  108.  
  109. Private Sub SetRightTab()
  110. Dim lRightAlignTab                                  As Long
  111.  
  112.    lWidth = GetListSize
  113.    lRightAlignTab = -(lWidth / PixelsPerUnit)
  114.  
  115.    SendMessage lListhWnd, LB_SETTABSTOPS, &H0&, ByVal &H0&
  116.    SendMessage lListhWnd, LB_SETTABSTOPS, &H1&, lRightAlignTab
  117.  
  118.    myListBox.Refresh
  119. End Sub
  120.  
  121. Private Function GetListSize() As Long
  122. Dim RCT                                             As RECT
  123.  
  124.    GetClientRect lListhWnd, RCT
  125.    With RCT
  126.        GetListSize = (.Right - .Left)
  127.    End With
  128. End Function
  129.  
  130.  
  131. Private Function PixelsPerUnit(Optional ByVal sText As String) As Single
  132. Dim hDC                                             As Long
  133. Dim hFont                                           As Long
  134. Dim hFontOld                                        As Long
  135. Dim SZ                                              As SIZE
  136.  
  137.    hDC = GetDC(lListhWnd)
  138.    If CBool(hDC) = True Then
  139.        hFont = SendMessage(lListhWnd, WM_GETFONT, &H0&, ByVal &H0&)
  140.        hFontOld = SelectObject(hDC, hFont)
  141.  
  142.        If sText = vbNullString Then
  143.            If GetTextExtentPoint32(hDC, CHARS_LIST, CHARS_LEN, SZ) Then
  144.                PixelsPerUnit = CSng((2 * CLng(SZ.cX / CHARS_LEN)) / (GetDialogBaseUnits And &HFFFF&))
  145.            End If
  146.        Else
  147.            If GetTextExtentPoint32(hDC, sText, Len(sText), SZ) Then
  148.                PixelsPerUnit = (SZ.cX * Screen.TwipsPerPixelX)
  149.            End If
  150.        End If
  151.  
  152.        SelectObject hDC, hFontOld
  153.        ReleaseDC lListhWnd, hDC
  154.    End If
  155. End Function
  156.  
  157. Private Sub Class_Initialize()
  158.    Debug.Print "--> cListBoxMultiAlign.cls By Mr.Frog © <--"
  159. End Sub

Una imagen vale mas que 1000 palabras:

DoEvents! :P
67  Programación / Programación Visual Basic / [SRC] [Tip] AlignListBox [by Mr. Frog ©] en: 12 Diciembre 2010, 22:02 pm
Me encontre con estas constantes para alinear un ListBox e hice esta sencilla función, poner en un módulo:
Solo incluyo alineamiento de items a la derecha e izquierda, porque para centrarlos hay que hacerlo de forma diferente. :silbar:
Posteado en http://www.visual-coders.com.ar/

Código
  1. Option Explicit
  2. '=========================================================
  3. ' º Function : AlignListBox
  4. ' º Author   : Mr. Frog ©
  5. ' º Mail     : vbpsyke1@mixmail.com
  6. ' º Recommended Websites :
  7. '       http://visual-coders.com.ar
  8. '       http://InfrAngeluX.Sytes.Net
  9. '       http://twitter.com/#!/PsYkE1
  10. '=========================================================
  11.  
  12. Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
  13. Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
  14.  
  15. Private Const GWL_EXSTYLE                       As Long = (-20)
  16. Private Const WS_EX_RIGHT                       As Long = &H1000&
  17. Private Const WS_EX_LEFT                        As Long = &H0&
  18. Private Const WS_EX_LEFTSCROLLBAR               As Long = &H4000&
  19. Private Const WS_EX_RIGHTSCROLLBAR              As Long = &H0&
  20.  
  21. Public Enum AlignConstants
  22.   aLeft = 0
  23.   aRight = 1
  24. End Enum
  25.  
  26. Public Enum OptionAlign
  27.   Items = 0
  28.   ScollBar = 1
  29. End Enum
  30.  
  31. Public Function AlignListBox(ByVal myListBox As ListBox, _
  32.                               ByVal ThingToAlign As OptionAlign, _
  33.                               Optional ByVal Align As AlignConstants = aLeft) As Long
  34. Dim lStyle                                              As Long
  35. Dim lHwnd                                               As Long
  36.    If Not (myListBox Is Nothing) Then
  37.        lHwnd = myListBox.hwnd
  38.        lStyle = GetWindowLong(lHwnd, GWL_EXSTYLE)
  39.        If Align = aRight Then
  40.            If ThingToAlign = Items Then
  41.                lStyle = lStyle Or WS_EX_RIGHT
  42.            Else
  43.                lStyle = lStyle And WS_EX_RIGHTSCROLLBAR
  44.            End If
  45.        Else
  46.            If ThingToAlign = Items Then
  47.                lStyle = lStyle And WS_EX_LEFT
  48.            Else
  49.                lStyle = lStyle Or WS_EX_LEFTSCROLLBAR
  50.            End If
  51.        End If
  52.        AlignListBox = SetWindowLong(lHwnd, GWL_EXSTYLE, lStyle)
  53.    End If
  54. End Function

Ejemplo:

Código
  1. Option Explicit
  2.  
  3. Private Sub Form_Load()
  4. Dim Q                               As Long
  5.    For Q = 0 To (Screen.FontCount - 1)
  6.        List1.AddItem Screen.Fonts(Q)
  7.    Next Q
  8.  
  9.    AlignListBox List1, Items, aRight
  10.    'AlignListBox List1, Items, aLeft
  11.    AlignListBox List1, ScollBar, aLeft
  12.    'AlignListBox List1, ScollBar, aRight
  13. End Sub

Resultado:

DoEvents! :P
68  Media / Juegos y Consolas / Crear server Left 4 Dead [No Steam] en: 4 Diciembre 2010, 17:30 pm
Hola buenas, estoy intentando crear un server para el Left 4 Dead No Steam, he googleado y me he bajado unos parches, ademas ponia que tenia que usar Garena. (Según esto : http://www.taringa.net/posts/juegos/5682254/tutorial-para-jugar-al-left-4-dead-online-y-crear-partidas.html)
Me baje el programa de Garena, me registre, pero dice que es imposible conectar con el servidor...
Si alguien sabe que puede ocurrir o lo ha conseguido de otra manera agradecería su ayuda.

DoEvents! :P
69  Programación / Programación Visual Basic / [SRC] FrogCheat v1.1 [by Mr. Frog ©] en: 30 Noviembre 2010, 01:58 am





Hola a todos, os presento uno de mis últimos proyectos : FrogCheat v1.1.
Es un Cheat para los shooters (juegos de disparar). :)
Al principio empezó siendo la segunda versión de el NRC v1.0. :xD
(Esta versión ha sido presentada con prisas para entregarlo dentro de la fecha del concurso de programación de elhacker.net, asi que es posible que tenga algún pequeño error)





1.- Estabiliza el arma al disparar, todo ello con un nivel de intensidad modificable y la posibilidad de tener dos niveles diferentes guardados (arma primaria y arma secundaria). ;)
2.- Dibuja una mirilla estatica la cual aporta mayor precisión a el usuario a la hora de apuntar (disponibles tres modelos: Circular, cruz, equis ; con la posibilidad de elegir hasta entre ocho colores diferentes).  ::)
   * Nota importante: Para poder disfrutar de esta opción debes jugar en modo ventana (soporta OpenGl  :D).
3.- Teclas de acceso rápido para habilitar/deshabilitar la mirilla/NoRecoil asi como el valor de éste (Las teclas pueden ser cambiadas por el usuario).  :P
4.- Una voz te informara de las opciones que habilites/deshabilites y tambien el nivel de NoRecoil actual... (la voz se puede deshabilitar en la sección de configuración)
5.- Alto nivel de compatibilidad, ha sido testeado en varios juegos y en varios SO.
6.- Tengo el orgullo de poder decir que es 100% indetectable (puesto que no actuo directamente sobre el proceso del juego)
7.- Es totalmente portable, no requiere instalación, ni depende de ningún OCX ni libreria adicional.


Bueno, aqui hay algunas capturas que los testers y yo hemos ido tomando para que os hagais una idea de la mirilla estática :




Un video-tutorial que hizo VanHan para que veais como va la cosa :




* Autor : Mr. Frog ©
* Excelente diseño  : VanHan
* Agradecimientos  : Raul338 & BlackZer0x & Dessa & LeandroA
* Testers (los más pacientes :P) : Guru6 & Elemental Code & aaronduran2 & VanHan & _kazte_



Esto es todo, espero que os guste, y si así es, no lo dudes y dejame tu voto en el concurso de programación. ;D
Ir al hilo de votaciones del concurso de programación de elhacker.net

Gracias, aqui puedes descargar el código fuente + proyecto compilado



La web del proyecto es http://frogcheat.com.ar/


DoEvents! :P



No os lo vais a creer, me han copiado la idea!!!  :-(
http://goo.gl/pEHMk
 :laugh: :laugh: :laugh: :laugh: :laugh: :laugh:
En fin... :xD
70  Programación / Programación Visual Basic / [RETO] Matriz Bidimensional {FrogMatrix algorithm} en: 29 Noviembre 2010, 01:48 am
Bueno, aqui traigo un reto bastante fácil digo yo, la idea es armar una matriz de las dimensiones indicadas siguendo las explicaciones:

Si introduzco 5 en la función:
Citar
0     1     2     3     4    
1     3     5     7     4    
9    15    16    7     4    
47   42    16    7    4    
116   42    16    7    4

Cada numero viene dado de la suma del que tenga arriba mas tantas columnas a la derecha como el numero fila actual.
En caso de sobrepasar el limite de columnas es igual a el numero de arriba.
Si no me explico bien postea o mándame un MP. :silbar:

El reto ha sido pensado por mi... :rolleyes:

Mucha suerte, yo me pongo ya a hacerlo!! ;)

DoEvents! :P

EDIT: Ya lo tengo, mañana posteo... ;)
Páginas: 1 2 3 4 5 6 [7] 8 9 10 11 12 13 14 15 16 17
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines