PasteFromClipboard() depends on file's INS/OVR mode

The documentation for PasteFromClipboard() says that it “inserts” the clipboard data, but in reality, it either inserts or overwrites depending on the current INS/OVR mode of the target binary file. This makes it risky to use the function, because for as far as I can tell, scripts can’t query or change this mode, leading to unpredictable results. Maybe PasteFromClipboard() could be extended with an optional argument for explicitly specifying how to write the data?

Somewhat relatedly, the manual entry for OverwriteBytes() refers to InsertBytes(), but the link is broken.

1 Like

Yes, we agree that PasteFromClipboard should always insert data, regardless of the overwrite mode in the hex editor. This change should be made in the update: http://download.sweetscape.com/010EditorWin64Installer16.0.2c.exe and this should also fix the link in the manual. In the future we may provide an extra argument to control whether to overwrite.

Graeme
SweetScape Software

2 Likes