how to prgramatically trigger mouse click in c .net - c++

I am new to c++.net. I want to programatically trigger mouse click event of webBrowser, the reason is that I use the webBrowser control to display the .ppt file and I want it to automatically jump to the second page without clicking the mouse. Is there any way to trigger the mouse click event programatically?
thanks.

Related

is there a function in win32 API to detect the "refresh" action and create a notification when the user refresh either right click or pressing F5?

I made a program (with C++) using FindFirstChangeNotification(), but this function does not have a way to detect the "refresh" action.

Is there any button click event in Sitecore Tracker in version 9.1

I am looking for a personalization event that have to occur when a click event takes place.
No, there is not and you have to track your button click event on the server side in Sitecore.
Add an onclick() JavaScript event to your button to make the server call and pass details about the clicked button. Then register the click event as a Goal on the server side.
You can create a Goal and then trigger it as a pre-built Sitecore event using
the Sitecore.Analytics.Tracker.Current.CurrentPage.RegisterGoal() method to register your Goal against the current page as follows:
var goalId = "{Your Goal ID}"; // ID of your goal
var goalDefinition = Sitecore.Analytics.Tracker.MarketingDefinitions.Goals[goalId];
Sitecore.Analytics.Tracker.Current.CurrentPage.RegisterGoal(goalDefinition);
Read more about the pre-built events in Sitecore here.

How to disable right click for IWebBrowser2 (C++)

I embedded a web browser in MFC dialog by using IWebBrowser2 class.
Every time when the dialog is opened, this browser will display a pdf.
However, when I right click on this pdf, it will have the context menu. I don't want the web browser has the context menu, is there any way for me to disable it?
I tried to edit pdf content, but seems like there is not way to disable the right click by editing the pdf. By checking the interface of IWebBrowser2 and its parent class, I didn't seen any API like OnRightClickButton etc.
I use PreTranslateMessage in the dialog, but it cannot be triggered when I right click on the web browser

CDialog with IWebBrowser component, backspace doesn't work

I have an MFC CDialog with an IWebBrowser2 in it. I get to a page that has a HTML text area, I can input text but backspace doesn't erase it.
When an ATL ActiveX control that subclasses an edit control is hosted in Internet Explorer, pressing the BACKSPACE key when focus is set to the Edit control causes Internet Explorer to navigate to the previous Web page. If there are no Web pages previous to the one with the control, the BACKSPACE key functions as normal.
When the user clicks on the subclassed control, the control is not UI Activated. This means that any accelerator keys are processed by the Internet Explorer frame. The control is never given a change to process the BACKSPACE accelerator key.
refer: http://support.microsoft.com/kb/190044

winapi - Hooking an app's taskbar tab events

I'm having trouble hooking event messages sent when a user left/right clicks on the app's tackbar tab. I have tried implementing OnNcLButtonDown and the like but no events are ever triggered when I click on the app's tab. Is there a possible COM solutions?
There is an undocumented windows message: code 0x0313 that is send when a user right clicks on the app's taskbar button. Dunno whether its stable to hook though.