i haven't tried your latest posted code yet but with the following I got an Error E1516: Invalid memory area, named CAT in the error message. Maybe cause it pastes beyond the string length?


Code:
function inkey_paste()
{
  if(inkey_active) 
  {
  	 char *text="";
	 if(OpenClipboard(NULL))
	 {
		HANDLE data=GetClipboardData(CF_OEMTEXT);
		if(data!=NULL)
		{
			text=GlobalLock(data);
			GlobalUnlock(data);
		}
		CloseClipboard();
	 }
  	 
  	 str_cat((input_txt.pstring)[0], text);
  	 reset(inkeyoptions_pan, SHOW);
  }	
}



The input text just incase:

Code:
TEXT* input_txt =
{
   layer = 31;
   font = calibri18;
   strings = 1;
}