Page 1 of 1

Using PushKey() in webgadget how to select all, cut paste?

Posted: Thu Jun 11, 2020 8:18 pm
by ricardo
Hi,


Im using PushKey(#VK_R), per example, to type in webgadget, but dont know how to sellect all, cut and paste.

Any help are welcome

Best Regards

Re: Using PushKey() in webgadget how to select all, cut past

Posted: Fri Jun 12, 2020 11:58 am
by rory-games
try this, win API only, sorry

Code: Select all

keybd_event_(#vk_a,0,#keyeventf_keyup,0)

Re: Using PushKey() in webgadget how to select all, cut past

Posted: Fri Jun 12, 2020 11:59 am
by rory-games
oh, and I forgot to say, just replace the #vk_a with #vk_c for copy, #vk_x for cut, and #vk_v for paste, #vk_z for undo if you need that too.

Re: Using PushKey() in webgadget how to select all, cut past

Posted: Fri Jun 12, 2020 12:02 pm
by rory-games
sorry, that last post didn't work properly

Code: Select all

keybd_event_(#VK_LCONTROL,0,0,0)
keybd_event_(#VK_A,0,0,0)
keybd_event_(#VK_LCONTROL,0,#KEYEVENTF_KEYUP,0)
keybd_event_(#VK_A,0,#KEYEVENTF_KEYUP,0)