I would like to write a macro to click the print icon (Alt+P) within print preview window in IE11. I thought of using FindWindow, FindWindowEx, SendMessage and PostMessage functions. But when I checked the window info, there seemed to be no button for clicking the print icon.Print Preview Window Info
Wherever I click within the window, it displays only InternetExplorer_TridentDlgFrame in Class. So how should I click the print icon?
I do not want to use Sendkeys or to perform mouse click based on the location as I would be using this macro in different systems.
So is there any suitable way to do this? Any ideas will be very useful. Thanks in advance.
try this code
see here for details https://msdn.microsoft.com/en-us/library/aa752117(v=vs.85).aspx