Double clicking doesn't work well

I am using the following code to record screen while recording while using mouse to double click on some item like double click ppt to open it in PowerPoint, it is not very responsive. I have tried and it is much better when using the screen recorder feature of Windows Media Encoder 9. Any ideas what is wrong?

My environment: Windows Vista + Windows Media Encoder 9 + VSTS 2008 + C #. I have written the following code in the initialization code of a Windows Forms Application and I suspect there is something wrong with my Windows Forms Application?

My code,

IWMEncSourceGroup SrcGrp;
IWMEncSourceGroupCollection SrcGrpColl;
SrcGrpColl = encoder.SourceGroupCollection;
SrcGrp = (IWMEncSourceGroup)SrcGrpColl.Add("SG_1");

IWMEncVideoSource2 SrcVid;
IWMEncSource SrcAud;
SrcVid = (IWMEncVideoSource2)SrcGrp.AddSource(WMENC_SOURCE_TYPE.WMENC_VIDEO);
SrcAud = SrcGrp.AddSource(WMENC_SOURCE_TYPE.WMENC_AUDIO);

SrcVid.SetInput("ScreenCap://ScreenCapture1", "", "");
SrcAud.SetInput("Device://Default_Audio_Device", "", "");

// Specify a file object in which to save encoded content.
IWMEncFile File = encoder.File;
string CurrentFileName = Guid.NewGuid().ToString();
File.LocalFileName = CurrentFileName;
CurrentFileName = File.LocalFileName;

// Choose a profile from the collection.
IWMEncProfileCollection ProColl = encoder.ProfileCollection;
IWMEncProfile Pro;
for (int i = 0; i < ProColl.Count; i++)
{
    Pro = ProColl.Item(i);

    if (Pro.Name == "Screen Video/Audio High (CBR)")
    {
        SrcGrp.set_Profile(Pro);
        break;
    }
}
encoder.Start();

      

thanks in advance george

+1


a source to share


2 answers


I faced the same problem. But the problem is not your code or mine. When I tried to capture the screen from the Windows Media Encoder app, I faced the same issue in about 50% of the sessions. Obviously this is a bug in the WindowsMediaEncoder itself.



George

+2


a source


Here are a couple of options (from http://www.windowsmoviemakers.net/Forums/ShowPost.aspx?PostID=1982 ):



  • Turn on MouseKeys Accessibility and type + to double click
  • Start the encoder and the target application on different computers and start a remote desktop session.
0


a source







All Articles