View Full Version : ClipExtendHack 1.0
pruss
01-18-2007, 08:58 AM
Remove the 1000 character limit on clipboard copy and cut with this hack that works on all devices with OS 3.1 (and perhaps earlier, but you'll need a different hack manager) and up, including OS 5. Includes source code (learn how to make dual 68K/ARM hacks!)
Yes, I know there are other hacks that do this. Some are not free, some do more (clipboard viewing), but this is simple, free, and includes source code.
http://palmgear.com/index.cfm?prodID=129560&fuseaction=software.redirector&file=ClipExtendHack.zip&type=zip&PartnerREF=&siteid=1
LanMan
01-18-2007, 11:50 AM
Alex, thanks again for going above and beyond to keep the Palm OS alive.
Church Punk
01-18-2007, 12:21 PM
Thanks!!! :d
Drunkard
01-18-2007, 01:04 PM
Works great! So far no trouble copying 5KB of text from a memo to a text file edited in RescoExplorer, and back again. :D Nice work pruss!!!
Edit: Just crashed after trying to paste twice in a row 34KB of text from a memo into a text file in RescoExplorer. Something tells me RescoExplorer doesn't use the same copy/paste routine. :confused:
dmitrygr
01-18-2007, 01:26 PM
34K+34K=68K
textfields in POS do not handle more then 64
Drunkard
01-18-2007, 01:39 PM
34K+34K=68K
textfields in POS do not handle more then 64
Well, then that would explain it. Nonetheless, super useful app pruss!
dmitrygr: I never did get your app PowerClip to work for me by the way.
tosbsas
01-18-2007, 03:13 PM
@dimitry
me neither, sadly (:-(( Cause I don't like yahm
Ruben
shsmith
01-18-2007, 04:30 PM
Any ideas on how to make this work with Documents To Go 8? It seems to use a different clipboard method that still has the 1000 character limit.
pruss
01-18-2007, 09:18 PM
@dimitry
me neither, sadly (:-(( Cause I don't like yahm
Ruben
Why don't you like YAHM? It is an extremely stable way of patching the OS.
pruss
01-18-2007, 09:20 PM
Works great! So far no trouble copying 5KB of text from a memo to a text file edited in RescoExplorer, and back again. :D Nice work pruss!!!
Edit: Just crashed after trying to paste twice in a row 34KB of text from a memo into a text file in RescoExplorer. Something tells me RescoExplorer doesn't use the same copy/paste routine. :confused:
A memo can't hold more than 32K. So I don't know how you pasted 34K.
pruss
01-18-2007, 09:25 PM
Any ideas on how to make this work with Documents To Go 8? It seems to use a different clipboard method that still has the 1000 character limit.
The issue isn't with the clipboard--the clipboard can hold up to about 64K. The issue is with the field edit routines which will refuse to put the text in the clipboard if there is more than 1000 characters selected.
My suspicion is that the limit comes from the time when there was very little heap, and so putting more than 1000 chars of data on the heap would decrease available memory too much. Moreover, the API to put data into the clipboard does not have any error check. If PalmOS allowed one to put, say, 30K into the clipboard, there would be a greater chance of failure, and no error check. But the lack of an error check can be overcome (one can simply fetch the data back from the clipboard and compare; if it matches, all is OK).
The Docs2Go people may have simply lazily copied code from the OS (OK under Palm's OS 4 partial source release license). Anyway, since the problem is within Docs2Go, I probably can't patch it easily, without modifying Docs2Go, and that would probably violate the Docs2Go EULA.
tosbsas
01-18-2007, 11:33 PM
Why don't you like YAHM? It is an extremely stable way of patching the OS.
Let me answer with a question - Why did you make fs become a standalone app? I kind if think hacks are "old" (:;-))
Ruben
pruss
01-19-2007, 08:14 AM
Let me answer with a question - Why did you make fs become a standalone app? I kind if think hacks are "old" (:;-))
For marketing reasons: To make it easier to install for inexperienced users (I don't think you are one) and for users who have a false perception that hacks are somehow less table. In fact, the new FontSmoother is no more reliable than the old, except for the few bug fixes which I could have just as well rolled into the old, and it continues to use YAHM code, but now has that code licensed and built in.
From a point of view other than marketing, keeping FS based on YAHM would have been better. With YAHM you can have multiple hacks in a single interface, therefore saving memory, and you could (while YAHM was still being actively developed) always upgrade YAHM if a bug there was discovered, without having to separately upgrade hacks.
Moreover, the sheer ease of writing hacks--less code for the developer to write since most of the code is already built into the hack manager--makes them tend to be less bug-prone than stand-alone applications.
There is much less room for a bug in the code, since it's all so simple. For instance, here is the complete code for Igor's hack to turn off the "No beam" dialog after beaming something. The C code is very brief and entirely straightforward.
// NoBeam.c
#include <Standalone.h>
#include "../Include/endianutils.h"
#include "../Include/palmos5.h"
#define RESID 1000
STANDALONE_CODE_RESOURCE_TYPESTR_ID("armc", RESID);
typedef UInt32 (*pfnFrmCustomAlert)(UInt32 alertId, const char * s1, const char * s2, const char * s3);
UInt32 MyFrmCustomAlert1(UInt32 alertId, char * s1, const char * s2, const char * s3){
pfnFrmCustomAlert oldTrap;
if (alertId == 11730){ //beam off
return 1;
}
FtrGet(MY_CRID, RESID, (UInt32 *)&oldTrap);
return oldTrap(alertId, s1, s2, s3);
}
// NoBeam.rcp
APPLICATIONICONNAME ID 3000 "NoBeamDialog"
VERSION ID 1 "1.2"
FORM 3000 AT (2 2 156 156)
MODAL
USABLE
HELPID 3000
BEGIN
TITLE "About NoBeamDialog"
LABEL "NoBeamDialog v0.1" AUTOID AT (CENTER 20) USABLE FONT 1
LABEL "Freeware" AUTOID AT (CENTER PREVBOTTOM + 4) USABLE
LABEL "(C) 2003, Igor Nesterov" AUTOID AT (CENTER PREVBOTTOM + 4) USABLE
BUTTON "Done" 1 AT (7 140 AUTO AUTO) USABLE
END
STRING ID 3000 "First arm hack."
ALERT ID 2000
INFORMATION
BEGIN
TITLE "NoBeamDialog"
MESSAGE "^1\n^2"
BUTTONS "OK"
END
HEX "TRA5" ID 1000
00 00 00 12
00 00 02 04
00 00 00 00
00 00 00 00
00 00 00 00
tosbsas
01-19-2007, 08:22 AM
ah, ok
Thanks for shining some light on this (:-)) Anyway I will try the clipextend (.-))
And keep on hoping to get sd spprot for FS (:-))
Thanks for all your great and wellthought apps
Ruben
Church Punk
01-19-2007, 09:26 AM
From a point of view other than marketing, keeping FS based on YAHM would have been better. With YAHM you can have multiple hacks in a single interface, therefore saving memory, and you could (while YAHM was still being actively developed) always upgrade YAHM if a bug there was discovered, without having to separately upgrade hacks.
yes, and that is exactly why i didnt update to the application :o
hope you will give support to those fellow YAHM users :D
yoovee
01-19-2007, 10:55 AM
Speaking of YAHM - does anyone know the difference between the latest "2.5.113" PRC on Igor Nestrov's site compared to the "official" 2.3.6? (besides the Zodiac support which was added at 2.3.9...)
Alex Pruss - thanks for a great hack & for sharing the code!
pruss
01-20-2007, 09:41 AM
Speaking of YAHM - does anyone know the difference between the latest "2.5.113" PRC on Igor Nestrov's site compared to the "official" 2.3.6? (besides the Zodiac support which was added at 2.3.9...)
Alex Pruss - thanks for a great hack & for sharing the code!
2.5.113 is designed to be more reliable on NVFS devices. It is, however, less reliable on pre-NVFS devices. In fact, I have never had any problems with 2.3.6 on NVFS or non-NVFS devices, except for the Zodiac.
drwho
01-22-2007, 08:20 AM
Is this compatible with TX? Works great on my T3, but with TX I still get the 'Clipboard limit of 1000 bytes exceeded' message.
Edit. Just found it does work with ChronMemo, but not standard Memo application.
pruss
01-22-2007, 09:26 AM
Is this compatible with TX? Works great on my T3, but with TX I still get the 'Clipboard limit of 1000 bytes exceeded' message.
Works fine on my TX. Are you sure it's on? And that message seems unfamiliar to me. On my TX, it just says that the limit is exceeded, but does not say what the limit is. Maybe you're using some app that does its own clipboard handling?
drwho
01-22-2007, 10:39 AM
Works fine on my TX. Are you sure it's on? And that message seems unfamiliar to me. On my TX, it just says that the limit is exceeded, but does not say what the limit is. Maybe you're using some app that does its own clipboard handling?
It's definitely on. If I turn it off then I get an error message in ChronMemo: same message as you mentioned, with no mention of limit size.
I don't think I have any app that does it's own clipboard handling. At least there's nothing obvious to me on my system.
I have installed the TX WiFi update. Since doing so, I can longer do a Wifi hotsync without the system locking up: it seems to be more than just a Wifi update. Do you have the update?
pruss
01-22-2007, 10:51 AM
It's definitely on. If I turn it off then I get an error message in ChronMemo: same message as you mentioned, with no mention of limit size.
I don't think I have any app that does it's own clipboard handling. At least there's nothing obvious to me on my system.
I have installed the TX WiFi update. Since doing so, I can longer do a Wifi hotsync without the system locking up: it seems to be more than just a Wifi update. Do you have the update?
No, I don't have that update.
Is this in one of the PIM apps?
drwho
01-22-2007, 10:57 AM
No, I don't have that update.
Is this in one of the PIM apps?
No. See here Wifi Update (http://www.brighthand.com/default.asp?newsID=8862)
I think it updates the whole TX rom, which is what makes me wonder if it also changes other things
Drunkard
01-22-2007, 01:40 PM
A memo can't hold more than 32K. So I don't know how you pasted 34K.
I can't remember now what I was exactly doing. Your right, the Memo wasn't over 34KB, in fact was half that, as I had double pasted into the TXT file, and then tried to copy paste that in RescoExplorer.
Anyways, just now I was using RescoExplorer to create and edit a TXT file and I copied 59KB from one TXT file into another with any issues. :)
pruss
01-22-2007, 03:38 PM
No. See here Wifi Update (http://www.brighthand.com/default.asp?newsID=8862)
I think it updates the whole TX rom, which is what makes me wonder if it also changes other things
What I meant was whether you were using the clipboard in a PIM application?
drwho
01-22-2007, 05:02 PM
What I meant was whether you were using the clipboard in a PIM application?
No. On its own.
pruss
01-22-2007, 05:06 PM
No. On its own.
I don't understand. You can only copy text into the clipboard from a text field. The text field must be in some application.
drwho
01-23-2007, 12:49 AM
I don't understand. You can only copy text into the clipboard from a text field. The text field must be in some application.
I see what you mean. To clarify, when I use the Memo application, I get the clipboard error message. This happens whether ClipExtendHack is enabled or not. ChronMemo, by contrast, works with ClipExtendHack.
pruss
01-23-2007, 07:04 AM
I see what you mean. To clarify, when I use the Memo application, I get the clipboard error message. This happens whether ClipExtendHack is enabled or not. ChronMemo, by contrast, works with ClipExtendHack.
My guess is that in the ROM update they decided to add their own friendlier message in the Memo application, and thereby they broke ClipExtendHack.
ziggy
01-23-2007, 08:34 AM
I also have the WiFi update, and ClipExtendHack seems to work fine on my TX. Similar problem with Docs2Go though; from a text document all can be selected and copied, but pasting in a memo only gives part of the document.
pruss
01-23-2007, 12:47 PM
The limit is entirely artificial--the clipboard can hold more than 1000 chars. ClipExtend removes the artificial limit on FldCut() and FldCopy(). Docs2Go doesn't use FldCut() or FldCopy().
drwho
01-23-2007, 01:37 PM
My guess is that in the ROM update they decided to add their own friendlier message in the Memo application, and thereby they broke ClipExtendHack.
Thanks. It's not a big deal really. I'm using ChronMemo now, which is excellent.
vovka1965
09-05-2007, 09:49 AM
I am using ClipExtendHack with YAHM and it works fine on my TX. However, two questions:
1. Are there other useful OS5 hacks that I should know about now that I am using YAHM?
2. Since YAHM messed up my DIAstate on reboot, I tried an alternative hack manager: TealMaster (not free, but that is what Demos are for). And guess what: TealMaster barfs at ClipExtend. Says it is not an OS5-ready hack and crashes?? So, what is up with that??
juggernaut#2
09-05-2007, 10:17 AM
YAHM is the *only* hackmanager that really copes with OS5 hacks.
To answer your question 1: Actually, most of the old days hacks are either not needed any more or have become stand-alone applications. Besides that, youīll find a huge collection within palmgearīs "Hacks" section.
The only hack that I am personally using is "DateFormatHack", which puts leading zeros in front of dates consisting of only one digit (i.e., it makes "02.09.2007" out of "2.9.2007"). I like it because lists containing dates get ugly if they are not aligned like this.
Oh, one more thing concerning your messed up screen: either you tell YAHM not to wait at all, or you use something like "SoftReset" by RNS: to have your launcher start after reset - this will take care of the little window as well. But to be honest, after trying a hack I donīt see any need to be able to disable them during boot-up ... PAGE-UP does the very same thing.
phreakonaleash
09-05-2007, 01:58 PM
dmitrygr: I never did get your app PowerClip to work for me by the way.
iirc, this was written for a zire sth or other... He never tested it on the TX, or any other device.
vovka1965
09-05-2007, 02:07 PM
you use something like "SoftReset" by RNS: to have your launcher start after reset - this will take care of the little window as well. But to be honest, after trying a hack I donīt see any need to be able to disable them during boot-up ... PAGE-UP does the very same thing.
I am using something like SoftReset, except the sequence is reversed. First, my launcher starts up after reset and THEN YAHM pops up and messes up the screen I have YAHM "start up delay" set to 0,. but it still messes up the screen.. If I could only reverse that sequence..
vovka1965
09-06-2007, 12:18 PM
Actually, now YAHM seems to behave:I got the latest version, 2.5.113, I set the startup delay to "0" and it seems to behave better.
Church Punk
09-06-2007, 12:34 PM
when you say "better" you mean no pop up at all???
vovka1965
09-06-2007, 04:20 PM
when you say "better" you mean no pop up at all???
No pop-up and, thus, no messed up DIA state. I guess the upgrade to YAHM 2.5 is what did it?
At any rate, now that I have a reliable and happy hack manager, I need more useful hacks!
dmccunney
09-06-2007, 05:32 PM
I am using ClipExtendHack with YAHM and it works fine on my TX. However, two questions:
1. Are there other useful OS5 hacks that I should know about now that I am using YAHM?My primary use is an OS5 version of Fonthack.
http://www.palmgear.com/index.cfm?fuseaction=software.showsoftware&prodid=53318&PartnerREF=&siteid=1
I also use Pruss's 5WayEm hack for a couple of applications that don't grok the Zodiac's 5WayNav emulation.
There are links to a few others from the YAHM home page.
2. Since YAHM messed up my DIAstate on reboot, I tried an alternative hack manager: TealMaster (not free, but that is what Demos are for). And guess what: TealMaster barfs at ClipExtend. Says it is not an OS5-ready hack and crashes?? So, what is up with that??TealMaster is intended to run a subset of OS 3/4 hacks under OS 5. It operates by intercepting the system call the hack uses and converting it to an OS 5 "Notification". Unfortunately, not all of the things hacks do have equivalent notifications, so only a subset of existing hacks is supported.
TealMaster is not intended to handle newer hacks written specifically for OS 5. Those are pure ARM code, and only YAHM will run them.
Based on some experimentation a while back, it looks like it's possible to run both TealMaster and YAHM, each handling a specific set of hacks, but substantial fiddling would be required.
______
Dennis
Church Punk
09-06-2007, 06:37 PM
No pop-up and, thus, no messed up DIA state. I guess the upgrade to YAHM 2.5 is what did it?
At any rate, now that I have a reliable and happy hack manager, I need more useful hacks!
are you sure you have no pop up? cuz i still have the same pop up after the reset... Maybe your hacks are not enabled?
@dmccunney: cool avatar :D
dmccunney
09-06-2007, 06:46 PM
@dmccunney: cool avatar :DThank you. Pop quiz: where is it from? ;)
______
Dennis
scottl
09-06-2007, 06:55 PM
Maybe your hacks are not enabled?
That happened to me. I didn't realize it until I tried a big cut'n'paste and it failed. I went to YAHM and saw it didn't initialize. I added it to Uncache and now it works fine after soft resets. YAHM 2.5.113 set to Timeout=0 with no pop-up.
kennyd
09-06-2007, 07:18 PM
DocsToGo...I wonder if the developer of "MultiClip Hack" would be willing to shed some light on DocsToGo clip board. If I remember correctly (if that's possible when remembering an app that stopped supporting post OS4 devices) MultiClip was the only clip extension that I had found that supported DTG, iSilo, and WordSmith clip boards. I forgot who the developer even was. Great memory
juggernaut#2
09-07-2007, 02:03 AM
are you sure you have no pop up? cuz i still have the same pop up after the reset... Maybe your hacks are not enabled?
Sure they are and sure, thereīs no popup if set to 0.
flkin
11-23-2007, 04:17 AM
ClipExtend doesnt' work with my Treo 680. In the memo program when I try to copy a larger chunk of text, the message
"Clipboard limit of 1000 bytes exceeded."
is shown.
I'm using YAHM 2.5.113 and the clipextend hack is on.
Pruss, any chance you will update your nice hack?
Try Dmitry's PowerClip; it works on my T|X, so it might work on a 680. It also has the benefit of not requiring YAHM. It doesn't include source code, however.
scottl
11-23-2007, 10:47 AM
For some reason PowerClip didn't extend my buffer so I had to take the Hack approach. It's a bummer, but it works for me. I should try PowerClip again though.. It's been a while and maybe I've learned more and can make it work :)
vovka1965
11-23-2007, 07:12 PM
PowerClip did not work on my TX, then I read somewhere that it was not written for the TX
Clie Patra
07-24-2008, 03:48 AM
I have been using Clipextendhack for a long time on my Sony TH55, but now that I have a Centro, it will not work. It always displays the "1000 character limit" error. Anybody successfully used this on a Centro?
Thanks.
pruss
07-24-2008, 08:31 AM
I have been using Clipextendhack for a long time on my Sony TH55, but now that I have a Centro, it will not work. It always displays the "1000 character limit" error. Anybody successfully used this on a Centro?
Thanks.
Which app is this in? Some apps impose their own limit, over and beyond the OS's limit. :-( If it's in Memos, replace the built-in memo app with something else, like my ChronMemo.
Clie Patra
07-25-2008, 03:11 AM
Which app is this in? Some apps impose their own limit, over and beyond the OS's limit. :-( If it's in Memos, replace the built-in memo app with something else, like my ChronMemo.
It was CardTXT (http://cardtxt.en.softonic.com/palm). I didn't use this editor much on my TH55, but now I tested it, and the same problem occurs. So I don't think it's related to your (excellent) hack.
Anyway thanks for replying.
wozofoz
07-25-2008, 05:46 AM
I have ClipExtendHack and CardTXT so just tested this on my TX.
CardTXT does not have a 'Select All' option so I had to select the text by dragging the stylus down the page.
I could only select part of the text and it stopped at 24576 according to CutPaste5 (www.freewarepalm.com/authors/mark_tamura.shtml).
I did not get a warning message.
I copied this 24576 from CardTXT then pasted it in ChronMemo (pruss.mobi/dl) using the standard Palm clipboard and CutPaste5. No problems.
CardTXT was updated not so long ago so if you contact the author then they may be able to have a look at the situation :)
All the best, woz of oz
Clie Patra
07-30-2008, 02:29 PM
I have tried ClipExtendHack with the ascii editor that comes with Resco Explorer: works like a charm! I ditched CardTXT right away.
Thanks Alex for this great program. And thanks to the Resco guys for including such a great text editor with their file explorer :)
vBulletin v3.0.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.