cancel
Showing results for 
Search instead for 
Did you mean: 

Global send keys and global send key events.

harathi_salla
Level 3
Hi, In the foundation course, it is mentioned that the global send keys are used for THIN client applications. But when i tried to work with Remote desktop connected system, Im not able to send the keystrokes using "Global Send Keys", but the same is working with GLOBAL SEND KEY EVENTS. would like to know where exactly can be GLOBAL SEND KEYS are used ? would like to know where exactly can be GLOBAL SEND KEY EVENTS are used ? What is the difference between both. ( what i know is, global send keys works when the application is attached. where as the global send key events works on the active desktop application ) thank you !
2 REPLIES 2

John__Carter
Staff
Staff
There's no real way to tell where you'd use one technique or another, it depends on the app you're working with. GSK Events is the lowest level action where BP simulates the keyboard, with key down and key up actions. GSK is a little different where BP sends keys to the app. Both require the app to be in focus for the keys to 'hit', and both can send keys to the wrong app if you're not careful.

MelissaSuarez_G
Level 6
With Global Send Keys you can only interact with the application that is currently attached. For example, in you use GSK with Notepad, BP will be able to send the key strokes only to Notepad. With Global Send Keys Events, you can send keystrokes to ANY application that is currently active, regardless of if it's attached or not. With the same example, let's say that you are using GSK Events with Notepad but an instance of Excel is activated, then BP will send those keystrokes to Excel.