PDA

Click to See Complete Forum and Search --> : Simulating ""CTRL+C""


gprassad
Jan 17th, 2002, 01:02 AM
hi vb's .....
iam writing an application that will post the "blocked or selected text" from any of the open windows to my website...
this is done on pressing a hot key...
when the user selects a text and presses the hot key,i need to copy the selected text to the clipboard and then retrieve it from there and post it to my website.....
iam unable to simulate the ""CTRL+C"" event when the user presses the hot key combination....can any one help me in this..
thanks in advance....

da_silvy
Jan 17th, 2002, 04:05 AM
clipboard.settext "mytext"

?

gprassad
Jan 18th, 2002, 01:33 AM
"mytext" is the text i select using the mouse or the keyboard..is there amy API for getting the text ???

da_silvy
Jan 20th, 2002, 04:46 AM
sendkeys "^C"


?