I'm working with the following piece of code.
void XIClickMouse(string button, bool release)
{
if(!release)
{
// I want something like the following statement:
mouse_event(button+DOWN, 0, 0 ,0 ,0);
// to produce, in effect: mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
}
return;
}
How is this done?
You can't. Variable names exist only at compile time.