|
8673
|
Programación / Scripting / Re: Dejar algún tipo de registro al abrir un Batch
|
en: 2 Julio 2013, 21:33 pm
|
La forma en la que estás usando el comando es la correcta para ejecutar la ventana del hta minimizada, quizás el problema debe estar en el contenido de ese script hta.
PD: Aunque el /wait te lo puedes ahorrar, no es necesario.
Yo no he querido decir nada, pero a mi todo esto de hacer una aplicación en VB.NET para luego usar hta y bats me parece una insensatez, pero lo que me parece complétamente innecesario es tener que recurrir a un programa como WinRar, porque no creo que ningún programador en su sano juicio use o se le pase por la cabeza usar WinRar para distribuir su aplicación de manera oficial... existe algo que se llama "Install builder", que es mucho mejor que hacer un doble sfx junto a un script bat, y otro script hta, y no se cuantas cosas más ...según tu tutorial.
Luego no te extrañes si tu instalador SFX es detectado por 30 antivirus... porque es lo que te va a pasar.
Es mi opinión, guste o no.
Saludos!
|
|
|
8676
|
Sistemas Operativos / Windows / Re: ¿Alguien que tenga algún Windows que no sea el 7 podría hacerme un favor?
|
en: 2 Julio 2013, 15:19 pm
|
Ingeniería Social?... Dudo que alguien con 800 mensajes sea así de lammer, para acabar baneado por una tontería, de todas formas yo lo he probado en un win8 virtual por si las moscas @OmarHack En windows 8 x64 se instala, el lynx funciona, los comandos del beta mastershell no lo se, porque no los he encontrado. PD: si pones "cmd" en el mastershell se ejecuta la cmd y finaliza el mastershell, quizás quieras evitarlo. saludos
|
|
|
8677
|
Programación / .NET (C#, VB.NET, ASP) / Re: Librería de Snippets !! (Posteen aquí sus snippets)
|
en: 2 Julio 2013, 07:27 am
|
He extendido y mejorado la función para buscar texto en la colección de Items de un listview: PD: la versión antigua la pueden encontrar aquí: http://foro.elhacker.net/net/libreria_de_snippets_posteen_aqui_sus_snippets-t378770.0.html;msg1865639#msg1865639#Region " [ListView] Find ListView Text "
' [ListView] Find ListView Text Function ' ' // By Elektro H@cker ' ' Examples : ' MsgBox(Find_ListView_Text(ListView1, "Test")) ' MsgBox(Find_ListView_Text(ListView1, "Test", 2, True, True)) ' If Find_ListView_Text(ListView1, "Test") Then...
Private Function Find_ListView_Text(ByVal ListView As ListView, _ ByVal SearchString As String, _ Optional ByVal ColumnIndex As Int32 = Nothing, _ Optional ByVal MatchFullText As Boolean = True, _ Optional ByVal IgnoreCase As Boolean = True) As Boolean
Dim ListViewColumnIndex As Int32 = ListView.Columns.Count - 1
Select Case ColumnIndex
Case Is < 0, Is > ListViewColumnIndex ' ColumnIndex is out of range
Throw New Exception("ColumnIndex is out of range. " & vbNewLine & _ "ColumnIndex Argument: " & ColumnIndex & vbNewLine & _ "ColumnIndex ListView: " & ListViewColumnIndex)
Case Nothing ' ColumnIndex is nothing
If MatchFullText AndAlso IgnoreCase Then ' Match full text, All columns, IgnoreCase For Each Item As ListViewItem In ListView.Items For X As Int32 = 0 To ListViewColumnIndex If Item.SubItems(X).Text.ToLower = SearchString.ToLower Then Return True Next Next ElseIf MatchFullText AndAlso Not IgnoreCase Then ' Match full text, All columns, CaseSensitive For Each Item As ListViewItem In ListView.Items For X As Int32 = 0 To ListViewColumnIndex If Item.SubItems(X).Text = SearchString Then Return True Next Next ElseIf Not MatchFullText AndAlso IgnoreCase Then ' Match part of text, All columns, IgnoreCase If ListView1.FindItemWithText(SearchString) IsNot Nothing Then _ Return True _ Else Return False ElseIf Not MatchFullText AndAlso Not IgnoreCase Then ' Match part of text, All columns, CaseSensitive For Each Item As ListViewItem In ListView.Items For X As Int32 = 0 To ListViewColumnIndex If Item.SubItems(X).Text.Contains(SearchString) Then Return True Next Next End If
Case Else ' ColumnIndex is other else
If MatchFullText AndAlso IgnoreCase Then ' Match full text, ColumnIndex, IgnoreCase For Each Item As ListViewItem In ListView.Items If Item.SubItems(ColumnIndex).Text.ToLower = SearchString.ToLower Then Return True Next ElseIf MatchFullText AndAlso Not IgnoreCase Then ' Match full text, ColumnIndex, CaseSensitive For Each Item As ListViewItem In ListView.Items If Item.SubItems(ColumnIndex).Text = SearchString Then Return True Next ElseIf Not MatchFullText AndAlso IgnoreCase Then ' Match part of text, ColumnIndex, IgnoreCase For Each Item As ListViewItem In ListView.Items If Item.SubItems(ColumnIndex).Text.ToLower.Contains(SearchString.ToLower) Then Return True Next ElseIf Not MatchFullText AndAlso Not IgnoreCase Then ' Match part of text, ColumnIndex, CaseSensitive For Each Item As ListViewItem In ListView.Items If Item.SubItems(ColumnIndex).Text.Contains(SearchString) Then Return True Next End If
End Select
Return False
End Function
#End RegionEDITO:Vuelto a mejorar: (El anterior no medía la cantidad de subitems de cada item, por ejemplo en un listview con 3 columnas, un item con dos subitems y otro item con 3 subitems entonces daba error porque el primer item no tenia un tercer subitem) #Region " [ListView] Find ListView Text " ' [ListView] Find ListView Text Function ' ' // By Elektro H@cker ' ' Examples : ' MsgBox(Find_ListView_Text(ListView1, "Test")) ' MsgBox(Find_ListView_Text(ListView1, "Test", 2, True, True)) ' If Find_ListView_Text(ListView1, "Test") Then... Private Function Find_ListView_Text(ByVal ListView As ListView, _ ByVal SearchString As String, _ Optional ByVal ColumnIndex As Int32 = Nothing, _ Optional ByVal MatchFullText As Boolean = True, _ Optional ByVal IgnoreCase As Boolean = True) As Boolean Select Case ColumnIndex Case Is < 0, Is > ListView.Columns.Count - 1 ' ColumnIndex is out of range Throw New Exception("ColumnIndex is out of range. " & vbNewLine & _ "ColumnIndex Argument: " & ColumnIndex & vbNewLine & _ "ColumnIndex ListView: " & ListView.Columns.Count - 1) Case Nothing ' ColumnIndex is nothing If MatchFullText Then ' Match full text in all columns For Each Item As ListViewItem In ListView.Items For X As Int32 = 0 To Item.SubItems.Count - 1 If String.Compare(Item.SubItems(X).Text, SearchString, IgnoreCase) = 0 Then Return True End If Next Next ElseIf Not MatchFullText Then ' Match part of text in all columns Select Case IgnoreCase Case True ' IgnoreCase If ListView1.FindItemWithText(SearchString) IsNot Nothing Then Return True End If Case False ' CaseSensitive For Each Item As ListViewItem In ListView.Items For X As Int32 = 0 To Item.SubItems.Count - 1 If Item.SubItems(X).Text.Contains(SearchString) Then Return True Next Next End Select End If Case Else ' ColumnIndex is other else If MatchFullText Then ' Match full text in ColumnIndex For Each Item As ListViewItem In ListView.Items If String.Compare(Item.SubItems(ColumnIndex).Text, SearchString, IgnoreCase) = 0 Then Return True End If Next ElseIf Not MatchFullText Then ' Match part of text in ColumnIndex For Each Item As ListViewItem In ListView.Items Select Case IgnoreCase Case True ' IgnoreCase If Item.SubItems(ColumnIndex).Text.ToLower.Contains(SearchString.ToLower) Then Return True End If Case False ' CaseSensitive If Item.SubItems(ColumnIndex).Text.Contains(SearchString) Then Return True End If End Select Next End If End Select Return False ' Any matches End Function #End Region
|
|
|
8678
|
Programación / .NET (C#, VB.NET, ASP) / Re: Necesito iconos de estilo mínimal para reproductor de música
|
en: 1 Julio 2013, 20:13 pm
|
Asi que lo pongo por medio de un "PictureBox" Pero ese no es el chiste :/ No entendí eso, ¿Cual es el problema? Un textbox es un textbox, no es un control para mostrar imágenes, quiero decir que no te preocupes, la forma de hacerlo es como lo estás haciendo, usando un picturebox. o creando un usercontrol de un TextBox para poner tu imagen xD, pero eso mejor no lo intentes (todavía) es dificil. EDITO: Bueno, o puedes dibujar un gráfico usando GDI Saludos
|
|
|
|
|
|
|