PDA

View Full Version : ther is a guide for work whit a windows clipboard??


lnd
05-26-2006, 01:56 PM
i need to copy data from the internet whit CTRL+C and i wont to press a button in AMS6 and the text data paste to a input text in AMS6. i need a guide to this code, the ams6 guide dont help my needs.
plase help my

Brett
05-26-2006, 03:31 PM
- Go to Project > Plugins from within AMS60
- Check the checkbox beside "Clipboard"
- Click OK
- Go into the On Click events for the button that you want to attach this action to
- Put in the following code:


if(Clipboard.IsTextAvailable())then
strText = Clipboard.GetText();
-- Now do whatever you want with the clipboard text
end


- Replace the line "-- Now do whatever you want with the clipboard text" with whatever it is you want to do wiht the text.

lnd
05-26-2006, 05:16 PM
Thank you i dident know the clipboard is a plaugin and i searching it in the ams6 help file.
Thank you again