Most recent edit on 2005-09-03 13:53:26 by FrankVanHerreweghe
Additions:
Select Virtual i-Keynumber1 Numeric 3 (var A)
Select Virtual i-Keynumber2 Numeric 3 (var B)
Deletions:
Select Virtual i-Keynumber1 Numeric 3
Select Virtual i-Keynumber2 Numeric 3
Edited on 2005-08-29 17:45:53 by FrankVanHerreweghe
Additions:
Example:
Caps Lock : A=20 B=0
Edited on 2005-08-29 17:43:22 by FrankVanHerreweghe
Additions:
This little program makes it possible to simulate keystrokes.
%%Task properties: Batch
EndTask: Yes/Before
We are using two variable A and B tomake it possible to simulate codes which exists of 2 keys (f.e. Alt+P)
A list of keycodes can be found at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/WindowsUserInterface/UserInput/VirtualKeyCodes.asp∞
Edited on 2005-08-29 17:39:01 by FrankVanHerreweghe
Additions:
Record Main:
Select Virtual i-Keynumber1 Numeric 3
Select Virtual i-Keynumber2 Numeric 3
Task Prefix:
%%Press the Key
Remarks
- An application can simulate a press of the PRINTSCRN key in order to obtain a screen snapshot and save it to the clipboard. To do this, call keybd_event with the bVk parameter set to VK_SNAPSHOT.
- Windows NT/2000/XP: The keybd_event function can toggle the NUM LOCK, CAPS LOCK, and SCROLL LOCK keys.
- Windows 95/98/Me: The keybd_event function can toggle only the CAPS LOCK and SCROLL LOCK keys. It cannot toggle the NUM LOCK key.
Deletions:
%%TP:
Press the Key
Oldest known version of this page was edited on 2005-08-29 17:35:08 by FrankVanHerreweghe []
Page view:
How To simulate keyboard strokes
TP:
Press the Key
Evaluate CallDLLS ('user32.keybd_event','22444',A,0,0,0)
Evaluate CallDLLS ('user32.keybd_event','22444',B,0,0,0)
Release the key
Evaluate CallDLLS ('user32.keybd_event','22444',B,0,2,0)
Evaluate CallDLLS ('user32.keybd_event','22444',A,0,2,0)
Category
CategoryHowTo