Are you trying to execute the contents of the clipboard in the ijx window? Or are you trying to paste the contents of the clipboard into any window which may be one different from the current window.
If you are trying to execute what's in the clipboard use 0!:101]11!:0'clippaste' Other controls can be set using appropriate set commands. For example, use setedit to put something in an edit field. Just use the contents of the clipboard as what you want to set. On Fri, Jun 5, 2009 at 10:03 PM, bill lam <[email protected]> wrote: > On Sat, 06 Jun 2009, bill lam wrote: > > I guess that might be a bug in wd. In general wd implicitly works on the > > current parent form so that you may try using wd'psel ..' before > clippaste. > > > > Winapi for getting clipboard data. > > > > getclipdata=: 3 : 0 > > 'user32 OpenClipboard i x'&cd <0 > > h=. dllrv 'user32 GetClipboardData x i'&cd <y > > ms=. dllrv 'kernel32 GlobalSize x x'&cd <h > > mp=. dllrv 'kernel32 GlobalLock x x'&cd <h > > data=. memr mp, 0, ms > > 'kernel32 GlobalUnlock i x'&cd <h > > 'user32 CloseClipboard i'&cd '' > > data > > ) > > > > where dllrv is >@{. because it was written for older J. > > I forget to list the argument for getclipdata, eg. > > getclipdata CF_TEXT > 6 u: getclipdata CF_UNICODETEXT > > NB. Predefined Clipboard Formats > CF_TEXT=: 1 > CF_BITMAP=: 2 > CF_METAFILEPICT=: 3 > CF_SYLK=: 4 > CF_DIF=: 5 > CF_TIFF=: 6 > CF_OEMTEXT=: 7 > CF_DIB=: 8 > CF_PALETTE=: 9 > CF_PENDATA=: 10 > CF_RIFF=: 11 > CF_WAVE=: 12 > CF_UNICODETEXT=: 13 > CF_ENHMETAFILE=: 14 > > -- > regards, > ==================================================== > GPG key 1024D/4434BAB3 2008-08-24 > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 > 唐詩151 張籍 沒蕃故人 > 前年伐月支 城下沒全師 蕃漢斷消息 死生長別離 > 無人收廢帳 歸馬識殘旗 欲祭疑君在 天涯哭此時 > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
