15,898,946 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Leecherman (Top 39 by date)
Leecherman
6-Dec-15 17:19pm
View
Now I see your point, I designing the GUI for
easy doing a batch sfv\md5 verification\creation using the console application...
and as i mentioned before, the console application is a 3rd party.
Leecherman
6-Dec-15 4:36am
View
hmmm, I answered it in my first reply...
Leecherman
5-Dec-15 14:19pm
View
I'm using a 3rd party console, not created by me...
and I want to read it's output in real-time and also i want to send keys to it!
Leecherman
5-Dec-15 6:48am
View
I'm making a GUI application that run a console application
and fetch it's output in real-time, and that console support input method ( like pressing 'P' to pause\resume, 'C' to cancel )
If I set the process windows to hidden it doesn't work, so I used CreateNoWindows to hide it, but unfortunately I cannot send any key to the console application when CreateNoWindows enabled.
Leecherman
25-Aug-13 8:40am
View
unfortunately i have more than 10 columns ( not just have size values but other values which have numerics followed by strings ) so this will not be a proper method to do that.
thanks again.
Leecherman
25-Aug-13 7:49am
View
thanks for your reply.
this solution doesn't works if there is a numeric followed by strings ( like 1230 KB )
Leecherman
25-Jul-13 20:05pm
View
Thanks a lot Sergey Alexandrovich Kryukov, that's exactly what I want (5Stars)
@Ron Beyer, Yeah that's right, and by using it (Sergey Alexandrovich Kryukov's solution) the problem is solved, thanks all.
Leecherman
25-Jul-13 14:16pm
View
hmmm, I don't know which is better to use, Enum or Structure
here is it:
Public Structure IntValues
Public Shared MP2 As Integer = 1
Public Shared MP3 As Integer = 2
Public Shared MP4 As Integer = 4
Public Shared MOV As Integer = 16
Public Shared OGG As Integer = 256
Public Shared WAV As Integer = 512
End Structure
Leecherman
13-Feb-13 22:47pm
View
Oh I meant it solved my question not my answer! ( will edit it )
Also thank you again for the useful answer :)
Leecherman
13-Feb-13 18:33pm
View
Thanks a lot again, this solved my question :)
Leecherman
13-Feb-13 7:43am
View
Thank you very much 5 stars, Really appreciate it.
OK this process 1gb chunk in a loop, and it doesn't exit 'while loop' until I write 'Exit While' if I found some bytes, also if i doesn't use ProcessChunk sub it loop without end, so any workaround for this if possible?
Leecherman
12-Feb-13 20:50pm
View
thanks again for your replies, please can you post the code?
tried to chunk it but with no luck at all...
Leecherman
11-Feb-13 0:33am
View
Thank you two for your replies, the first solution I know it and it didn't helped me, it works with small size of files but not the big one, the second one is not what I want, all what I want is to read a bytes from a large file.
Any posted code will be really appreciated...
thanks
Leecherman
5-Feb-13 11:18am
View
thanks, but this doesn't accept {&H89, &H50, &H4E, &H47}
it only accept one byte!
Leecherman
5-Feb-13 10:14am
View
No problem while getting bytes from file, but the problem is when finding the exact byte, and loop until there is null byte.
Leecherman
4-Feb-13 22:05pm
View
I'm trying to read specie bytes from file, then after finding it, i will make the start position from the founded bytes, then seek and writing to binary file until null bytes is found.
Leecherman
30-Jan-13 6:53am
View
When i read the file it returned mismatch values:
Original Value that opened in HxD program:
56 47 7B FA 81 51 00 AF A7 AA CE 9C 7A 23 DA 4D
Returned value from this code:
56 47 7B FA 81 51 0 AF A7 AA CE 9C 7A 23 DA 4D
Original Value that opened and copied from HxD program:
Dim rawData As Byte() = { _
&H56, &H47, &H7B, &HFA, &H81, &H51, &H00, &HAF, &HA7, &HAA, &HCE, &H9C, _
&H7A, &H23, &HDA, &H4D _
}
So any solution please?
Edit: After looking into the output value, i determined the problem that It returned 0 instead of 00 if it's empty
Also after getting the hex values, can i convert it back to byte and write it to a file?
Leecherman
28-Jan-13 1:11am
View
Deleted
Thanks for your reply...
When i read the file it returned mismatch values:
Original Value that opened in HxD program:
56 47 7B FA 81 51 00 AF A7 AA CE 9C 7A 23 DA 4D
Returned value from this code:
56 47 7B FA 81 51 0 AF A7 AA CE 9C 7A 23 DA 4D
Original Value that opened and copied from HxD program:
Dim rawData As Byte() = { _
&H56, &H47, &H7B, &HFA, &H81, &H51, &H00, &HAF, &HA7, &HAA, &HCE, &H9C, _
&H7A, &H23, &HDA, &H4D _
}
So any solution please?
Edit: After looking into the output value, i determined the problem that It returned 0 instead of 00 if it's empty
Also after getting the hex values, can i convert it back to byte and write it to a file?
Leecherman
18-Jul-12 6:32am
View
thanks for your reply, the problem that if there is more than one item that it's forecolor is red, if I loop it will return default color, and also if i select the item which forecolor is red all the selected items will be in red same too for items with default color!
So i guess it will be not possible?
Leecherman
18-Jul-12 5:14am
View
thanks for your reply.
tried that and it's worked, but didn't do what i want, i don't want all the selected items to be in red color, i want the species items to be in red when selected. so i tried also that on ItemMouseHover
If e.Item.ForeColor = Color.Red Then
ListView1.ForeColor = Color.Red
ElseIf e.Item.ForeColor = Color.Black Then
ListView1.ForeColor = Color.Black
End If
but the color goes when select or hover into another items that it's forecolor is black
Leecherman
18-Jul-12 5:13am
View
thanks for your reply.
tried that and it's worked, but didn't do what i want, i don't want all the selected items to be in red color, i want the species items to be in red when selected. so i tried also that on ItemMouseHover
If e.Item.ForeColor = Color.Red Then
ListView1.ForeColor = Color.Red
ElseIf e.Item.ForeColor = Color.Black Then
ListView1.ForeColor = Color.Black
End If
but the color goes when select or hover into another items that it's forecolor is black
Leecherman
14-Jul-12 13:54pm
View
OK thanks a lot again, your replies are very helpful to me.
Leecherman
13-Jul-12 13:11pm
View
thanks for your reply, ok do you know any plugins or scripts which do that?
Leecherman
11-Jul-12 13:50pm
View
Thanks pillbug99 for your answers, i gave you 5/5 cause it's very helpful :)
So now I don't know if it will works if converted to VB.NET or not!
BTW does also NSIS launcher have the same things that JauntePE and ThinApp does?
Leecherman
9-Jul-12 11:18am
View
OK, but how?
IMO virtual machine is like VMWare that runs MS windows etc.
Leecherman
9-Jul-12 0:02am
View
OK here is the code:
[code]
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
For Each fileName As String In IO.Directory.GetFiles("C:\")
ImageList1.Images.Add(Icon.ExtractAssociatedIcon(fileName))
ListView1.Items.Add(IO.Path.GetFileName(fileName), ImageList1.Images.Count - 1)
Next
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim OpenFile As New OpenFileDialog
With OpenFile
.Multiselect = True
If .ShowDialog = Windows.Forms.DialogResult.OK Then
For Each fileName As String In .FileNames
ImageList1.Images.Add(Icon.ExtractAssociatedIcon(fileName))
ListView1.Items.Add(IO.Path.GetFileName(fileName), ImageList1.Images.Count - 1)
Next
End If
End With
End Sub
Private Sub TrackBar1_Scroll(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TrackBar1.Scroll
If Me.TrackBar1.Value = 0 Then
ImageList1.ImageSize = New Size(16, 16)
ElseIf Me.TrackBar1.Value = 1 Then
ImageList1.ImageSize = New Size(20, 20)
ElseIf Me.TrackBar1.Value = 2 Then
ImageList1.ImageSize = New Size(24, 24)
ElseIf Me.TrackBar1.Value = 3 Then
ImageList1.ImageSize = New Size(32, 32)
End If
End Sub
[/code]
Leecherman
8-Jul-12 23:40pm
View
I want to do a portable launcher for any executable files like this :
Run "firefox.exe" or any executable in isolated mode without saving any files to system folder or registry.
So is this possible?
Leecherman
8-Jul-12 23:39pm
View
No not a virtual machine, i want to do a portable launcher for any executable like this:
Run "firefox.exe" or any executable in isolated mode without saving any files to system folder or registry.
is this possible?
Leecherman
8-Jul-12 7:19am
View
Thanks for your reply, and sorry for late reply...
the link is not working = Page Not Found
Using browser dialog for files will be good, but will not be for the folders, because i want to selected multi folders...
Leecherman
13-Mar-12 19:45pm
View
So how can i make my app more privileges?
Leecherman
13-Mar-12 0:15am
View
thanks for your reply, but this program CCleaner running as admin and also it allow drag & drop files into it! ( CCleaner in options tab -> include )
Leecherman
13-Mar-12 0:06am
View
the app required to run as admin in windows 7 ( to edit the registry ) also the UAC is enabled, so drag and drop is not working with me until i disabled the UAC
Leecherman
11-Dec-11 0:54am
View
ReadtoEnd is not an option to me because i don't want to wait until the read end.
i want to capture characters in real time instead of capture readline.
so how to do it?
thanks
Leecherman
11-Dec-11 0:54am
View
ReadtoEnd is not an option to me because i don't want to wait until the read end.
i want to capture characters in real time instead of capture readline.
so how to do it?
thanks
Leecherman
11-Dec-11 0:51am
View
I want to read the output in real time, so ReadToEnd is not an option to me.
And how to read characters instead of readLine ?
Leecherman
11-Dec-11 0:29am
View
no, i cannot access to the console app because it's not mine, and it has 10%~100% PROGRESS
but it doesn't printed in new line, so i cannot capture it.
Leecherman
10-Dec-11 23:40pm
View
Thanks for your reply.
Yes i have tried that too, but also not working...
here is my code:
Dim myProcess As New Process()
myProcess.StartInfo.FileName = My.Application.Info.DirectoryPath & "\sfv_md5.exe"
myProcess.StartInfo.Arguments = "C:\filename.sfv"
myProcess.StartInfo.WorkingDirectory = My.Application.Info.DirectoryPath
myProcess.StartInfo.RedirectStandardOutput = True
myProcess.StartInfo.UseShellExecute = False
myProcess.StartInfo.CreateNoWindow = True
myProcess.Start()
myProcess.BeginOutputReadLine()
AddHandler myProcess.OutputDataReceived, New DataReceivedEventHandler(AddressOf OutputDataReceived)
myProcess.WaitForExit()
This code doesn't work, it only work if the console printed a new line otherwise it will not working.
i have uploaded the console app that i want to capture it's output.
NOTE: i want to capture the progress %% that doesn't printed in new line ( but in cache i think )
http://www.mediafire.com/?6qunr1jgg5t2ypq
Leecherman
2-Aug-11 0:25am
View
I tried to do that but still no output until the application is closed.
some app work normal and display the output, but also some other app doesn't show output until it closed ( but it shows in normal windows command line )
so i have contact the author of the program and he said to me i must use buffer or pipe because some application doesn't show line and the data is saved in VB.NET internal buffer... also he said :
You must read raw data from stream by Read() command.
You should use multi-tread or timer event,
because the Read() stop until data coming.
You keep 1KB size buffer for line by yourself,
and save data each time it reads from stdout stream.
so i don't know how to make it...
So any help please?
Leecherman
1-Aug-11 9:24am
View
Here is the registry entries :
<pre>
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Folder\shell\JPG2LV]
@="Run JPG2LV"
"Icon"="\"D:\\JPG2LV\\JPG2LV.exe\""
[HKEY_CLASSES_ROOT\Folder\shell\JPG2LV\command]
@="\"D:\\JPG2LV\\JPG2LV.exe\" "%1\""
</pre>
when i select only one folder and run JPG2LV from context menu it's work OK, but when i select more folders ( example : 5 folders ) it's open a 5 JPG2LV
And when i check ( Make single instance application ) JPG2LV open and work but a lot of crash appears!
And when i used ( Configure FileMenu Tools ) and uncheck ( Make single instance application )
it's open only one JPG2LV and work great without any problems.
Please Any idea!
Show More