Added sendkeydown and sendkeyup
Clamp and release the keyboard keys in the inactive window.
The cyborg must be launched after the program in which automation will be performed ..
Syntax
sendkeydown (16, w); // Clamps the shift in the inactive window with the pointer w
sendkeyup (16, w); // Will release the shift in the inactive window with the pointer w
The first parameter is the numeric key code. The second pointer to the window.
Example
CODE: win w=window (-1, "Edit", window ("Untitled", "Notepad", -1));
loop ()
{
sendkeydown (16, w);
sendkey ('8', w);
sendkeyup (16, w);
sendkey ('8', w);
sleep (200);
}
Type * in the active window
CODE: win w=window (-1, "Edit", window ("Untitled", "Notepad", -1));
sendkeydown (16, w);
sendkey ('8', w);
sendkeyup (16, w);
Simply without sendkeydown and sendkeyup will print 8
CODE: win w=window (-1, "Edit", window ("Untitled", "Notepad", -1));
sendkey ('8', w);
----- The Visual Code Editor is Kibor. Creating bots without knowledge of programming.
Learning function for recognizing text.
----- |