Do we have?

 
Is it possible to write a code which does the same task as alt+2?  I don't mean ChartSetInteger(chart_ID,CHART_MODE,value)!
For example the script does press alt+2 keys. Or open taskmngr by pressing F2? Do we have?
 
pavelion: Is it possible to write a code which does the same task as alt+2?  I don't mean ChartSetInteger(chart_ID,CHART_MODE,value)!
For example the script does press alt+2 keys. Or open taskmngr by pressing F2? Do we have?
Yes, but only by using DLL calls to the Windows API, to simulate Windows messaging or keystrokes.