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

Just starting out? Need help? Post your questions and find answers here.
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

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

Post 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
ARGENTINA WORLD CHAMPION
rory-games
User
User
Posts: 39
Joined: Sun Feb 02, 2020 9:14 am
Contact:

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

Post by rory-games »

try this, win API only, sorry

Code: Select all

keybd_event_(#vk_a,0,#keyeventf_keyup,0)
rory-games
User
User
Posts: 39
Joined: Sun Feb 02, 2020 9:14 am
Contact:

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

Post 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.
rory-games
User
User
Posts: 39
Joined: Sun Feb 02, 2020 9:14 am
Contact:

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

Post 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)
Post Reply