I have this problem for some days now and i did not figure it out yet.When i use 2 buttons one for recording and one to stop recording is just fine, but when i use a timer to stop recording does not stop.
Here`s my First i have a button named start recording which calls the Public Sub record and enables timerRecordStop to TRUE.
The following is code is for a windows form that I took straight from the code project website. Everything is working fine except when I stop recording, it's not saving where I want it to. I think the problem is the very last sub, but I cannot figure out what it is.
I have a web cam connected through USB,I capturing and saving video it with avicap32.dll and user32.dll.But in the same time I need to starting other hardware and working with it trough COM port during capturing. And here appearing a problem, because then I send a command for start video capturing:
SendMessage(hWnd, WM_CAP_SEQUENCE, 0, 0) ' start video capture
the executing code stops at this line until I click to stop to capture. But in the capturing time I need to work with my hardware, to obtain the data from it, and after that to stop capturing.To make to work simultaneous video capturing and my hardware or its impossible to do that with avicap32.dll and user32.dll.
I need to record the screen when my user clicks start, and stop recording when he clicks stop.I've searched for a while on this subject, and I have found nothing.I want to do this without adding any files to my project, I just want to use some built in function in Visual Basic, and start recording, or even take a snapshot and add it to an AVI file or something...These are some sites I have found:
http:[url]......
This code is in VB6, but I am not sure how to even start using it?
I achieve to record and stop recording (manually with a button).
Now i want somehow to automatically stop recording after some seconds.
I used the following methods which did not work:
1. Used a timer to call the stoprecording function (I found out that while recording the timer did not work) I tested it with an msgbox and i was right, the msg box appeared 5 secs after pressing the stoprecording button!!!!
2. Used the System.Timers.Timer but nothing
3. I tried the CAPTUREPARMS structure but i`m doing something wrong and it doesn`t record.
Here`s my initialization:
Dim MyParams As New CAPTUREPARMS With MyParams .dwRequestMicroSecPerFrame = 66667
I want to include a functionality in my application such that when the user clicks on a button, the user should be able to record the voice, and when stopped, the sound should be saved. Here's what I wrote for the Start and Stop button.
I Would like to make an appliaction in c# (or vb.net) that records every sound that comes out from the speakers when i tell it to, and when im finished i want to push a button and save it as an mp3 (or some other format).
So far i have only found APIs that can record something from a microphone.
Is there anything in the .NET framework or is there some API for making this possible?
I'm working on a project and i need to record and save a users voice from the mic for like 1o min, does any one know how i can do this?NIMA -- Visit: [URL]..
I want to have an application, that records voice, saves and play it. I have a 3 buttons btnrecord btnsave btnplay What I did is Process.Start("SoundRecorder.exe") How can I make the sound recorder.exe start recording. It only opens the application.
I have a dataset along with code for validation. When I use a datagridview and setting the EditMode to OnEnter I get the red exclamations telling me that I have an error when this is needed. This works all good. when I click the save button on the BindingNavigator, the application saves the record even when this validation is showing. How do I filter up this validation code through a datagridview and stop the program saving the data? If you need the code for more information, I will add this to the forum.
I am using the avicap32.dll to capture images and videos from the webcam. but for some reason the code refuses to save the video files. I searched already on DIC and google and I found some topics on it, but I don't find the answer for my question
We are using avicap32.dll for capturing Pictures from Webcam,and we want to display the list of connected Webcam names but we are only able to get the driver name for webcam by using capGetDriverDescriptionA method. Is there any method to get the name of the webcam like "asus W120"
how do you display a webcam property page with avicap32? I am sending this message SendMessage(hHwnd, WM_CAP_EDIT_COPY, 0, 0) but the windows does not open
Alright, so I'm still working on the slot machine. I have three timers all independently going for my three "wheels" of the slot machine.
My issue, is that I'm trying to make a Stop button to stop each timer one at a time, and I'm not understanding why this code isn't working. The logic completely makes sense, and the first "wheel" stops when I click the button, however, it doesnt appear to stop the other two timers.
I have a simple application that use thread pool to read a file and input the data into a listbox. I want to be able to stop threadpool from running after clicking a stop button. How do I stop threadpool? Here is the code for my application below:
Imports System.Threading Public Class Form1 Private Delegate Sub StringDelegate(ByVal text As String)
I created a form and have the variable inputs for 4 motor run statements. Then with a start button the script starts and it is surrounded by a for next statement to loop 10 times. It works fine but if i need to stop the execution of the script with a stop button. I put the stop in a new section but of course does not work to do a motor stop. It just causes the exe to not respond till the loop is complete. Just need to be able to stop the Run1_Click button section.
Edit:I do not mind if it finishes the 4 motor run commands and then stops execution of the loop. So need to figure out a way to trigger a stop from a button on the form to stop the cycle. For the future the loop will be a variable integer input so 10 will not be the standard.
Edit::Does a ' Do ' statement sound like the thing to use? If so how and where would I place that? Have a Stop button on the form and it would stop after the 4th motor run command.
#End Region Declare Function InitStp Lib "stp.dll" () As Integer Declare Function RunMotor1 Lib "stp.dll" (ByVal steps As Integer, ByVal interval As Integer, ByVal direction As Integer, ByVal outputs As Integer) As Boolean
I am trying to record many small MP3 files from my computer's microphone. There are numberous examples using mciSendString Library "Winmm.dll" to record .wav files. I find the .wav quality to be lacking and I really want to record straight into the MP3 format rather than converting my .wav files.
I am trying to record many small MP3 files from my computer's microphone. There are numberous examples using mciSendString Library "Winmm.dll" to record .wav files. I find the .wav quality to be lacking and I really want to record straight into the MP3 format rather than converting my .wav files.
i recently downloaded a demo game "Delta Force Xtreme 2 BETA". the game it's self, looks like vb3 does when compared to vb.net 2oo8.. one thing about it, on the startup screen, it plays a decent track of music..
i want to record that sound, in wav format, i guess, directly from my speakers. i googled all day, hoping to learn something about playing/recording sound, and i got nowhere.. so i finally decided to post here, after searching the forum for answers, again, without any luck..
i'm not looking for links to sites that the code is not tested before the link is posted.
just a form with 3 buttons. 1 to record, 2 to stop and save, and 3 to play. again, the sound should be recorded directly from the speakers.
I am trying to record many small MP3 files from my computer's microphone. I know how to do this using mciSendString with the "Winmm.dll" to record .wav files. I need to record straight into the MP3 format from Visual Basic 2010.
Am new to the VB platform and have only been messing around with 2008 for a few months,off and on.Have built a rotational inertia based Dynamometer for personal use in my R/C hobby.Have written some code that allows me to read roller frequency,that is then figured to roller RPM,and eventually ,vehicle ground speed.
Now before anyone shoots me down,( I don't mean this to be sarcastic,but I have received negativity on other forums) I know that ,because of various interupts on my P.C.,that the windows timers aren't all that accurate,causing me to miss incoming signals that screw up my measurements, and the best thing is an external aquisition unit.Let me just say that I run my VB program parallel to an external frequency counter,and have at any given time a difference of max. 8 hz at higher revs.Also I use an external timer based counter that figures the ground speed ,and it also is within a half KmH.This is only a hobby for me and that's close enough.Someday I may build something that does the computing externally and gives it to VB,but for now.........So now to the good part
Here's my question: How can I write code that will let me record the RPM ,from TextBox2, at each timer interval,and have them listed?
I need this to calculate the RPM changes per interval in order to establish "angular acceleration" ,for further calculations.
In Addition,I need a way for my program to know when something changes or does'nt.If I start my programm and don't run the dyno ( no signals) then it will start saving a bunch of zero's that I don't need,and when I get to the end of the run,the RPM will top off(no change in signals)but keep saving.The best would be,start recording when the 1st signal is detected and stop recording when the signals stop changing, and tell me I can stop. But I'm not that advanced.........yet.
The next problem is that I have no idea,depending on what vehicle I test, how many intervals will be recorded, as one may or may not take longer to reach max.RPM.
Heres what I have so far:
Public Class Form1 Dim product1 As Double Dim product2 As Double
I am absolutely not making a key logger. Second of all, this is for personal use only, I just want to try it out since I am trying to build a virus scanner. What code would assist me in recording key strokes in the background?
My project uses an MS Access Database, and amongst other things records the current cost of a series of categories which are regularly updated, thereby erasing the previous entry. However, I need to retain all previous costs to produce a history graph for given periods. I have considered importing an Excel spreadsheet, but having a functioning database it seems sensible to use it.
I have a database in MSSQL that I'm using in a VB.NET project. Three of the fields are dates, so I leave the default DateTimePicker as the means of entry. The problem is, when I make a new record, the date from the DateTimePicker only makes it to the database if I select a date. If I leave it as the default(today), then the information does not record, leaving a NULL in the database.
I have been all over this site looking at and trying example code, but none of it seems to work properly on my computer. I just want a simple program in VB.NET 2010 that can record a .wav file from my computer / line-in microphone. I am somewhat familiar with VB, but I still consider myself a novice and I don't really know all of the audio jargin. [URL]..