keyevent

 

Hello,


a short questions to the key event function

i use actual

#import "user32.dll"
void  keybd_event(int bVk, int bScan, int dwFlags, int dwExtraInfo);
#import



//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
void KeyCTRLT() // Ctrl T
  {
   keybd_event(0x11, 0, 0, 0);
   Sleep(10);
   keybd_event('T', 0, 0, 0);
   Sleep(10);
   keybd_event('T', 0, 2, 0);
   Sleep(10);
   keybd_event(0x11, 0, 2, 0);
  }

to show the Toolbox with a button

      if(sparam=="Navigator")
        {
         KeyCTRLT();                                            // Other Functions, opens toolbox
        }


is there a possibility to make this without using .dll? bus MQ VPS do not allow dll


thanks

amando

 

anyone an idea?

 

Hello Wiliam, i use MT5, ok, this will be also work there, 

but how i simulate a key event with this?

 
amando: but how i simulate a key event with this?

My bad, I thought you were trying to process keys.

You don't need to. That way was always unreliable.

Just call the appropriate function. What are you trying to do?

 

I try to simulate the keyboard events

oben navigator

marketwatch

...