Jump to content
IGNORED

Copy/Paste from PC to Adam Emulator (SmartBasic, CP/M, SmartWriter)


intvdave

Recommended Posts

I wanted a way to be able to edit SmarBasic code on my PC without having to type it again in the Adam emulator (CoolCV and AdamEm).

 

Attached is a tool that allows me to do this. Included in the ZIP file is a README that explains the steps. This text is below also.

 

Adam_Paste.zip

 

I have only tested this with SmartBasic and SmartWriter. I expect it to work with CP/M and T-Dos.

 

-------------------------------------------------------------------

 

Adam_Paste.exe is a Windows 32-bit Auto Hot Key script that will copy the
contents of the clipboard and paste it in the CoolCV or AdamEm emulator.

The main purpose of this tool is to copy SmartBasic code written on the PC in
a text editor and put it into the Adam Emulator.

This functionality has been testing with CoolCV 6.5 for Windows
and AdamEm 1.9 for Windows.

To use,
- Run the Adam_Paste.exe. You should see it in the Windows tray.
- Start CoolCV or AdamEM/Windows into SmartBasic
- Open up a text editor (Notepad, Textpad, UltraEdit, ect.)
- Write some SmartBasic code. Example shown below.

10 home
20 print "Hello World!"
run

- Hightlight all of the text
- Copy to the clipboard (CNTRL-C)
- Press CNTRL-B (this kicks off the Auto Hot Key Script

The emulator does *not* need to have focus. The script will activate the emulator
and paste the contents.

This will also work with SmartWriter. While in SmartBasic (v1 or v2), enter:

call 64743

This will start SmartWriter. Press CNTRL-B again to kick off the Auto Hot Key
script. The code you had in the clipboard should paste into SmartWriter.

  • Like 1
Link to comment
Share on other sites

It works great! Thank you so much for this...its really going to change how I write code.

 

I had to use CoolCV (didn't know it could run Adam software, huh.). It didn't like my AdamEm front-end/DOSBox combo.

 

I don't have AdamEm 1.9, only 1.81... where did you get 1.9 from?

Link to comment
Share on other sites

Sweet. I am glad someone else will find use in this. Now, when we find SmartBasic code from a website, we can now copy and paste it instead of typing it in. :)

 

This tool should work fine in AdamEm 1.8 as long as it is the Windows version. I have not tried it on the Dos version as AdamEm Dos does not run in 64-bit Windows... at least not the copy I have.

 

Let me know if there is anything you want changed in the way this tool works. The speed of the paste was determined by how the emulator consumed 255 characters in one SmartBasic line. I noticed characters would get lost when pasting at full speed. Pasting in AdamEm is slower than CoolCV. You will also notice a pause going from line to line. I might be able to fine tune this a bit more but I think it is right where it needs to be. There is a longer pause when the line is 255 characters and goes to the next line.

 

I have not tested it with CP/M or T-Dos. I am hoping the speed it paste in those environments works. The paste seems to work fine for SmartWriter.

Link to comment
Share on other sites

The reason Adam_Paste does not work in DosBox is because it looks specifically for CoolCV and AdamEm. It is not looking inside DosBox to see if AdamEm is running in there. I will test out pasting in DosBox to see if it will work.

 

Sorry. It is version 2.0 that I tested in and not 1.9. It was called 1.9 before. It really does not matter the version of AdamEm. It only matters that it is the Windows version.

 

 

post-6868-0-76363100-1521726638_thumb.png

Link to comment
Share on other sites

The reason Adam_Paste does not work in DosBox is because it looks specifically for CoolCV and AdamEm. It is not looking inside DosBox to see if AdamEm is running in there. I will test out pasting in DosBox to see if it will work.

 

Sorry. It is version 2.0 that I tested in and not 1.9. It was called 1.9 before. It really does not matter the version of AdamEm. It only matters that it is the Windows version.

 

 

attachicon.gifAdamEm.png

 

Thanks for the feedback!

It will be great to support the process name "DosBox"

See Virtual Adam

Where can I download the AdamEm SDL version 2.0?

Edited by AnnaWu
Link to comment
Share on other sites

 

Thanks for the feedback!

It will be great to support the process name "DosBox"

See Virtual Adam

Where can I download the AdamEm SDL version 2.0?

 

This version of Adam_Paste will support DosBox. I have not tested how well pasting works as my DosBox session was very slow. Perhaps you will test it out for me and let me know if it works well? One thing to keep in mind, there are two DosBox windows that get open. The last one you touch is the one that will activate. If you are on the Status window last, it show the messagebox saying an emulator is not running. Just click on the Adam/DosBox window and it will work.

 

Adam_Paste.zip

 

v.2.0 has not be released yet. Hopefully soon. I have a hacked version that supports my Adam keyboard connected to a USB port :) I still love using the Adam keyboard.

  • Like 1
Link to comment
Share on other sites

 

This version of Adam_Paste will support DosBox. I have not tested how well pasting works as my DosBox session was very slow. Perhaps you will test it out for me and let me know if it works well? One thing to keep in mind, there are two DosBox windows that get open. The last one you touch is the one that will activate. If you are on the Status window last, it show the messagebox saying an emulator is not running. Just click on the Adam/DosBox window and it will work.

 

attachicon.gifAdam_Paste.zip

 

v.2.0 has not be released yet. Hopefully soon. I have a hacked version that supports my Adam keyboard connected to a USB port :) I still love using the Adam keyboard.

 

Looks good, thanks a lot.

Link to comment
Share on other sites

v.2.0 has not be released yet. Hopefully soon. I have a hacked version that supports my Adam keyboard connected to a USB port :) I still love using the Adam keyboard.

 

This is a pity.

AdamEm SDL 1.8 (not SDL 1.81) is the only version which is working on my Vista 32-bit OS.

I do not know the difference between AdamEm SDL 1.8 and higher SDL version.

Link to comment
Share on other sites

 

I tried some lines and no problems.

 

Excellent. Thank you for the feedback. Please let me know if you try CP/M or T-Dos. Also, if there is anything I can add. I know some versions of Basic offer short cut commands for RUN, CATALOG, ect. We could make ^R type in "RUN" or some other similar shortcuts. I am not sure if this buys us much though.

Link to comment
Share on other sites

I noticed each line that was pasted in had a space inserted at the beginning. This version fixes that. No other changes have been made.

 

Inserting into SmartWriter seems to work fine but I noticed CoolCV was adding some strange character to the beginning of the file. Is there another text editor I can use to create text files?

 

Adam_Paste.zip

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...