Kibor Bot Autoclicker » Kibor - Integrated development environment for bots » About Kibor » Version 5.24 Adding sendkeydown and sendkeyup

Страниц (1): [1]
 

1. Kibor - 24 Июля, 2018 - 04:24:31 - перейти к сообщению
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);

Powered by ExBB FM 1.0 Final