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

 

 


Tema destacado:


  Mostrar Mensajes
Páginas: 1 ... 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 [752] 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 ... 1236
7511  Programación / .NET (C#, VB.NET, ASP) / [SOURCE] MP3 Tag Remover en: 25 Enero 2014, 19:54 pm
DESCRIPCIÓN:

MP3 Tag Remover es una aplicación con una interfaz de usuario sencilla para eliminar metadatos de archivos mp3




IMÁGENES:









DEMOSTRACIÓN:







DESCARGA:

v1.1:
http://www.mediafire.com/download/h91571226ho3do9/MP3%20Tag%20Remover.rar

Incluye el código fuente, compilación, portable, e instalador.
7512  Programación / .NET (C#, VB.NET, ASP) / Re: ¿Como puedo crear un auto-clicker en C#? Con SetPoint (X,Y). en: 25 Enero 2014, 19:43 pm
Me pone : Error   1   No se puede encontrar el tipo o el nombre de espacio de nombres 'DllImport' (¿falta una directiva using o una referencia de ensamblado?)   C:\Users\Daniel\Desktop\Proyectos del C#\Autoclick Exterminium\Autoclick Exterminium\Form1.cs   19   10   Autoclick Exterminium

Error   2   No se puede encontrar el tipo o el nombre de espacio de nombres 'DllImportAttribute' (¿falta una directiva using o una referencia de ensamblado?)   C:\Users\Daniel\Desktop\Proyectos del C#\Autoclick Exterminium\Autoclick Exterminium\Form1.cs   19   10   Autoclick Exterminium

La solución a tus errores:
Código:
System.Runtime.InteropServices

Si te fijases mejor en VisualStudio puedes corregir este tipo de errores (missing usings) con 2 clicks.
7513  Programación / .NET (C#, VB.NET, ASP) / Re: ¿Como puedo crear un auto-clicker en C#? Con SetPoint (X,Y). en: 25 Enero 2014, 17:06 pm
En el VB.Net e creado muchos autoclicks pero en el Visual Studio C# no me deja poner los códigos invertidos.

Con el button y demás también me salta error , timers , RadioButton .. Si alguien tiene los códigos estaría muy agradecido . Gracias.

No se si te das cuenta que debería cerrar el post sólamente por ese tipo de comentarios.

Puedes buscar la definición correcta en Google:
Citar
Código
  1. [DllImport("kernel32", EntryPoint= "GetComputerNameA")]
  2. private static extern int GetComputerName(byte[] lpBuffer, ref int nSize);

O puedes leer un libro sobre como iniciarte en CSharp, sobran las palabras.
saludos!
7514  Informática / Software / Re: ¿Qué software de copia es el mejor para windows?. en: 23 Enero 2014, 05:32 am
Aporto un poco más a lo que ya han comentado: de los programas que ha nombrado _Slash_, el yasu es archi-conocido para saltarse protecciones (por si no sabes por cual decidirte entre los varios que nombró), y en www.gamecopyworld.com encuentras cracks del RE4 a patadas.

saludos
7515  Programación / .NET (C#, VB.NET, ASP) / Re: Librería de Snippets !! (Compartan aquí sus snippets) en: 23 Enero 2014, 00:46 am
Un mini bot para IRC usando la librería Thesher IRC.

Y digo mini bot, porque sólamente le implementé dos funciones muy básicas, !Kick y !KickAll.

El código está bastante hardcodeado.

Código
  1. ' [Thresher IRC] Bot example
  2. ' (By Elektro)
  3. '
  4. ' Instructions
  5. ' 1. Add a reference to 'Sharkbite.Thresher.dll'.
  6. '
  7. ' Usage Examples:
  8. ' Public  BOT As New IRCBot("irc.freenode.net", "#ircehn", "ElektroBot")
  9.  
  10. #Region " Imports "
  11.  
  12. Imports Sharkbite.Irc
  13.  
  14. #End Region
  15.  
  16. Public Class IRCBot
  17.  
  18. #Region " Members "
  19.  
  20. #Region " Properties "
  21.  
  22.    ''' <summary>
  23.    ''' Indicates the IRC server to connect.
  24.    ''' </summary>
  25.    Private Property Server As String = String.Empty
  26.  
  27.    ''' <summary>
  28.    ''' Indicates the IRC channel to join.
  29.    ''' </summary>
  30.    Private Property Channel As String = String.Empty
  31.  
  32.    ''' <summary>
  33.    ''' Indicates the nickname to use.
  34.    ''' </summary>
  35.    Private Property Nick As String = String.Empty
  36.  
  37. #End Region
  38.  
  39. #Region " Others "
  40.  
  41.    ''' <summary>
  42.    ''' Performs the avaliable Bot commands.
  43.    ''' </summary>
  44.    Public WithEvents BotConnection As Connection
  45.  
  46.    ''' <summary>
  47.    ''' Handles the Bot events.
  48.    ''' </summary>
  49.    Public WithEvents BotListener As Listener
  50.  
  51.    ''' <summary>
  52.    ''' Stores a list of the current users on a channel room.
  53.    ''' </summary>
  54.    Private RoomUserNames As New List(Of String)
  55.  
  56.    ''' <summary>
  57.    ''' Indicates the invoked command arguments.
  58.    ''' </summary>
  59.    Private CommandParts As String() = {String.Empty}
  60.  
  61. #End Region
  62.  
  63. #End Region
  64.  
  65. #Region " Constructor "
  66.  
  67.    ''' <summary>
  68.    ''' Initializes a new instance of the <see cref="IRCBot"/> class.
  69.    ''' </summary>
  70.    ''' <param name="Server">Indicates the IRC server to connect.</param>
  71.    ''' <param name="Channel">Indicates the IRC channel to join.</param>
  72.    ''' <param name="Nick">Indicates the nickname to use.</param>
  73.    Public Sub New(ByVal Server As String,
  74.                   ByVal Channel As String,
  75.                   ByVal Nick As String)
  76.  
  77.        Me.Server = Server
  78.        Me.Channel = Channel
  79.        Me.Nick = Nick
  80.  
  81.        CreateConnection()
  82.  
  83.    End Sub
  84.  
  85. #End Region
  86.  
  87. #Region " Private Methods "
  88.  
  89.    ''' <summary>
  90.    ''' Establishes the first connection to the server.
  91.    ''' </summary>
  92.    Public Sub CreateConnection()
  93.  
  94.        Console.WriteLine(String.Format("[+] Bot started........: '{0}'", DateTime.Now.ToString))
  95.  
  96.        Identd.Start(Me.Nick)
  97.        BotConnection = New Connection(New ConnectionArgs(Me.Nick, Me.Server), False, False)
  98.        BotListener = BotConnection.Listener
  99.  
  100.        Try
  101.            BotConnection.Connect()
  102.            Console.WriteLine(String.Format("[+] Connected to server: '{0}'", Me.Server))
  103.  
  104.        Catch e As Exception
  105.            Console.WriteLine(String.Format("[X] Error during connection process: {0}", e.ToString))
  106.            Identd.Stop()
  107.  
  108.        End Try
  109.  
  110.    End Sub
  111.  
  112.  
  113.    ''' <summary>
  114.    ''' Kicks everybody from the channel room unless the user who invoked the command.
  115.    ''' </summary>
  116.    ''' <param name="UserInvoked">Indicates the user who invoked the command.</param>
  117.    ''' <param name="CommandMessage">Indicates the command message to retrieve the command arguments.</param>
  118.    Private Sub KickEverybody(ByVal UserInvoked As String,
  119.                              ByVal CommandMessage As String)
  120.  
  121.        ' Renew the current nicknames on the channel room.
  122.        BotConnection.Sender.AllNames()
  123.  
  124.        ' Get the Kick Reason from the CommandMessage.
  125.        CommandParts = CommandMessage.Split
  126.  
  127.        Select Case CommandParts.Length
  128.  
  129.            Case Is > 1
  130.                CommandParts = CommandParts.Skip(1).ToArray
  131.  
  132.            Case Else
  133.                BotConnection.Sender.PublicMessage(Me.Channel, String.Format(
  134.                    "[X] Can't process the invoked command, 'KickReason' parameter expected."))
  135.  
  136.                BotConnection.Sender.PublicMessage(Me.Channel, String.Format(
  137.                    "[i] Command Syntax: !KickAll ""Kick Reason"""))
  138.  
  139.                Exit Sub
  140.  
  141.        End Select
  142.  
  143.        ' Kick each users one by one.
  144.        For Each User As String In (From Nick As String
  145.                                    In RoomUserNames
  146.                                    Where Not Nick = UserInvoked _
  147.                                          AndAlso Not Nick = Me.Nick)
  148.  
  149.            BotConnection.Sender.Kick(Me.Channel, String.Join(" ", CommandParts), User)
  150.  
  151.        Next User
  152.  
  153.    End Sub
  154.  
  155.    ''' <summary>
  156.    ''' Kicks the specified user from the channel.
  157.    ''' </summary>
  158.    ''' <param name="CommandMessage">Indicates the command message to retrieve the command arguments.</param>
  159.    Private Sub Kick(ByVal CommandMessage As String)
  160.  
  161.        ' Renew the current nicknames on the channel room.
  162.        BotConnection.Sender.AllNames()
  163.  
  164.        ' Get the user to Kick and the Kick Reason.
  165.        CommandParts = CommandMessage.Split
  166.        Select Case CommandParts.Length
  167.  
  168.            Case Is > 2
  169.                CommandParts = CommandParts.Skip(1).ToArray
  170.  
  171.            Case Is < 2
  172.                BotConnection.Sender.PublicMessage(Me.Channel, String.Format(
  173.                    "[X] Can't process the invoked command, 'NickName' parameter expected."))
  174.  
  175.                BotConnection.Sender.PublicMessage(Me.Channel, String.Format(
  176.                    "[X] Command Syntax: !Kick ""NickName"" ""Kick Reason"""))
  177.  
  178.                Exit Sub
  179.  
  180.        End Select
  181.  
  182.        BotConnection.Sender.Kick(Me.Channel, String.Join(" ", CommandParts.Skip(1)), CommandParts(0))
  183.  
  184.    End Sub
  185.  
  186.  
  187. #End Region
  188.  
  189. #Region " Event Handlers "
  190.  
  191.    ''' <summary>
  192.    ''' Occurs when the Bot joins to a channel.
  193.    ''' </summary>
  194.    Private Sub OnRegistered() Handles BotListener.OnRegistered
  195.  
  196.        Try
  197.            Identd.Stop()
  198.            BotConnection.Sender.Join(Me.Channel)
  199.            Console.WriteLine(String.Format("[+] Channel joined.....: '{0}'", Me.Channel))
  200.  
  201.        Catch e As Exception
  202.            Console.WriteLine(String.Format("[X] Error in 'OnRegistered' Event: {0}", e.Message))
  203.  
  204.        End Try
  205.  
  206.    End Sub
  207.  
  208.    ''' <summary>
  209.    ''' Occurs when an unexpected Bot error happens.
  210.    ''' </summary>
  211.    ''' <param name="code">Indicates the ReplyCode.</param>
  212.    ''' <param name="message">Contains the error message information.</param>
  213.    Private Sub OnError(ByVal code As ReplyCode,
  214.                        ByVal message As String) Handles BotListener.OnError
  215.  
  216.        BotConnection.Sender.PublicMessage(Me.Channel, String.Format("[X] Unexpected Error: {0}", message))
  217.        Console.WriteLine(String.Format("[X] Unexpected Error: {0}", message))
  218.        Debug.WriteLine(String.Format("[X] Unexpected Error: {0}", message))
  219.  
  220.    End Sub
  221.  
  222.    ''' <summary>
  223.    ''' Occurs when a user sends a public message in a channel room.
  224.    ''' </summary>
  225.    ''' <param name="user">Indicates the user who sent the public message.</param>
  226.    ''' <param name="channel">Indicates the channel where the public message was sent.</param>
  227.    ''' <param name="message">Indicates the content of the public message.</param>
  228.    Public Sub OnPublic(ByVal User As UserInfo,
  229.                        ByVal Channel As String,
  230.                        ByVal Message As String) Handles BotListener.OnPublic
  231.  
  232.  
  233.        Select Case True
  234.  
  235.            Case Message.Trim.StartsWith("!KickAll ", StringComparison.OrdinalIgnoreCase)
  236.                KickEverybody(User.Nick, Message)
  237.  
  238.            Case message.Trim.StartsWith("!Kick ", StringComparison.OrdinalIgnoreCase)
  239.                Kick(Message)
  240.  
  241.        End Select
  242.  
  243.    End Sub
  244.  
  245.    ''' <summary>
  246.    ''' Occurs when the Bot invokes one of the methods to retrieve the nicks of a channel.
  247.    ''' For example, the 'Sender.AllNames' method.
  248.    ''' </summary>
  249.    ''' <param name="Channel">Indicates the channel to list the nicks.</param>
  250.    ''' <param name="Nicks">Indicates the nicks of the channel.</param>
  251.    ''' <param name="LastError">Indicates the last command error.</param>
  252.    Private Sub OnNames(ByVal Channel As String,
  253.                        ByVal Nicks() As String,
  254.                        ByVal LastError As Boolean) Handles BotListener.OnNames
  255.  
  256.        If Channel = Me.Channel AndAlso Not RoomUserNames.Count <> 0 Then
  257.  
  258.            RoomUserNames.Clear()
  259.            RoomUserNames.AddRange((From Name As String In Nicks
  260.                                    Select If(Name.StartsWith("@"), Name.Substring(1), Name)).
  261.                                    ToArray)
  262.  
  263.        End If
  264.  
  265.    End Sub
  266.  
  267.    ''' <summary>
  268.    ''' Occurs when the bot invokes the Kick command.
  269.    ''' </summary>
  270.    ''' <param name="user">Indicates the user who invoked the Kick command.</param>
  271.    ''' <param name="channel">Indicates the channel where the user was kicked.</param>
  272.    ''' <param name="kickee">Indicates the kickee.</param>
  273.    ''' <param name="reason">Indicates the kick reason.</param>
  274.    Private Sub OnKick(ByVal user As UserInfo,
  275.                       ByVal channel As String,
  276.                       ByVal kickee As String,
  277.                       ByVal reason As String) Handles BotListener.OnKick
  278.  
  279.        Console.WriteLine(String.Format("[+]: User kicked: '{0}' From channel: '{1}' With reason: '{2}'.",
  280.                                        user.Nick,
  281.                                        channel,
  282.                                        reason))
  283.  
  284.    End Sub
  285.  
  286. #End Region
  287.  
  288. End Class
7516  Media / Multimedia / Re: Bordes negros en peliculas en: 22 Enero 2014, 21:11 pm
Se denomina cropping, simplemente utiliza la función "crop" de cualquier editor de videos para recortar las bandas laterales o verticales y asunto resuelto...
...eso sí, es un proceso que requiere re-codificación del video.

PD: Yo uso StaxRip.

Saludos
7517  Programación / Desarrollo Web / Re: Formatear documento HTML en: 22 Enero 2014, 17:46 pm
Netbeans tiene su propio formateador aunque creo que no vas a querer usar un IDE pesado solo para formatear código xD.

http://ctrlq.org/beautifier/

Muchas gracias Drvy, pero ciértamente como has comentado no es lo que busco, el tipo de formtao que le da NetBeans es idéntico al que le puede dar cualquier formateador normalito online, para eso como bien has dicho no me apetece usar una IDE XD, aunque ...si que usaría esa IDE si fuese capaz de darle un formato más avanzado como al que a mi me gustaría, pero no es el caso.

A mi por ej, me gusta mucho TinyMCE

Gracias por la recomendación, yo estoy usando WYSIWYG Web Builder y prefiero este producto que estoy usando por su semejanza con la IDE de VisualStudio y lo sencillo que es de manejar absolútamente todo de esa manera, aparte de la cantidad de templates y otros addons que existen por google para el producto.

Lo único malo es eso ...la basura de HTML que genera.

Saludos!
7518  Programación / .NET (C#, VB.NET, ASP) / Re: Como puedo saber los números que faltan dentro del rango ? en: 22 Enero 2014, 17:28 pm
A simple vista, no hay nada erroneo en la instrucción.

comprueba si la linea que me has mostrado es la misma que hace referencia a esta:
Citar
Código:
Form1.vb   78   

Comprueba que todos los valores que usas en el método de LINQ seán Integers, no longs no shorts no otra cosa, y prueba así, sin especificar el datatype de retorno:
Código
  1. Result11 = Result11.Select(Function(Value) If(Value < MAX, Value, Rand.Next(0, MAX)))

De todas formas aún sigo esperando a que des un maldito detalle sobre el tipo de excepción de la que se trata, si en tiempo de ejecución o un error de compilación, aunque está claro que es de compilación pero bueno... para la próxima vez.

PD: Siempre puedes ponerle un par de breakpoints para inspeccionar más detalládamente los sucesos si se trata de una excepción en tiempo de ejecución.

saludos
7519  Programación / .NET (C#, VB.NET, ASP) / Re: Como puedo saber los números que faltan dentro del rango ? en: 22 Enero 2014, 16:34 pm
seguimos :)
error de resolucion de sobre carga pongo codigo entero

Código:
Result11 = Result11.Select(Function(Value As Integer) If(Value < MAX, Value, Rand.Next(0, MAX))) <----------------------aca 

Veo que has marcado el error en la misma linea ...pero con la modificación que te puse arriba debería funcionar corréctamente.

Esto que dijiste la verdad es que no me sirve de nada:
Citar
error de resolucion de sobre carga

Si puedes modifica el lenguaje de la IDE para mostrar el mensaje de error en Inglés, pero muestra el mensaje completo no como has hecho las dos veces anteriores xD, debes mostrar el tipo de excepción además de los detalles del error y el número de linea donde te salta la excepción.


saludos
7520  Programación / .NET (C#, VB.NET, ASP) / Re: Como puedo saber los números que faltan dentro del rango ? en: 22 Enero 2014, 14:19 pm
El código de arriba lo escribí al vuelo, no me di cuenta de un fallo muy grande, en lugar de un Return le puse ReadOnly xD, déjalo asi:

Código
  1. Result11 = Result11.Select(Function(Value As Integer) If(Value < MAX, Value, Rand.Next(0, MAX)))

Y por cierto, esto tal vez quieras revisarlo...:
Citar
Código
  1. (Result1.Concat(Result3).Concat(Result3)

(concatenas dos veces Result3).

Saludos
Páginas: 1 ... 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 [752] 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 ... 1236
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines