if i wanted to paste a string+string+string etc to the clipboard, how do i do it? I have a .decl file for b3d that does this and need the equivalent.
the following read and write funcs work in b3d with the api decs in the userlibs:
the following read and write funcs work in b3d with the api decs in the userlibs:
Extern "win32" Function api_CloseClipboard:Int ()= "CloseClipboard" Function api_EmptyClipboard:Int ()= "EmptyClipboard" Function api_GetClipboardData:Int (wFormat%) = "GetClipboardDataA" Function api_GetClipboardtext:String(format%)="GetClipboardData" Function api_SetClipboardData:Int (wFormat%, hMem%) = "SetClipboardDataA" Function api_SetClipboardText:Int(format%,txt$)="SetClipboardData" Function api_OpenClipboard:Int (hwnd%)="OpenClipboard" Function api_IsClipboardFormatAvailable:Int (wFormat%) = "IsClipboardFormatAvailable" End Extern '----------------------------------- Function WriteClipboardText(txt$) Local cb_TEXT:Int=1 If txt$="" Then Return If api_OpenClipboard(0) api_EmptyClipboard api_SetClipboardtext%(cb_TEXT,txt$) api_CloseClipboard EndIf End Function '----------------------------------- Function ReadClipboardText$() Local cb_TEXT:Int=1 Local txt$="" If api_OpenClipboard(0) If api_IsClipboardFormatAvailable(cb_TEXT) txt$=api_GetClipboardtext$(cb_TEXT) EndIf api_CloseClipboard EndIf Return txt$ End Function