intvdave Posted March 21, 2018 Share Posted March 21, 2018 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 thecontents 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 ina text editor and put it into the Adam Emulator.This functionality has been testing with CoolCV 6.5 for Windowsand 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 ScriptThe emulator does *not* need to have focus. The script will activate the emulatorand paste the contents.This will also work with SmartWriter. While in SmartBasic (v1 or v2), enter:call 64743This will start SmartWriter. Press CNTRL-B again to kick off the Auto Hot Keyscript. The code you had in the clipboard should paste into SmartWriter. 1 Quote Link to comment Share on other sites More sharing options...
LoTonah Posted March 21, 2018 Share Posted March 21, 2018 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? Quote Link to comment Share on other sites More sharing options...
intvdave Posted March 21, 2018 Author Share Posted March 21, 2018 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. Quote Link to comment Share on other sites More sharing options...
AnnaWu Posted March 22, 2018 Share Posted March 22, 2018 Adam_Paste works with CoolCV and AdamEM SDL 1.8With AdamEM DOS 1.81 + DOSBox it does not work. AdamEM 1.9 for Windows not exist. . Quote Link to comment Share on other sites More sharing options...
intvdave Posted March 22, 2018 Author Share Posted March 22, 2018 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. Quote Link to comment Share on other sites More sharing options...
AnnaWu Posted March 22, 2018 Share Posted March 22, 2018 (edited) 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. AdamEm.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 March 22, 2018 by AnnaWu Quote Link to comment Share on other sites More sharing options...
intvdave Posted March 22, 2018 Author Share Posted March 22, 2018 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. 1 Quote Link to comment Share on other sites More sharing options...
AnnaWu Posted March 22, 2018 Share Posted March 22, 2018 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. Looks good, thanks a lot. Quote Link to comment Share on other sites More sharing options...
Flojomojo Posted March 22, 2018 Share Posted March 22, 2018 I have nothing to add except to state that it is amazeballs that this utility exists and that intvdave is a genius. 1 Quote Link to comment Share on other sites More sharing options...
AnnaWu Posted March 22, 2018 Share Posted March 22, 2018 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. Quote Link to comment Share on other sites More sharing options...
NIAD Posted March 22, 2018 Share Posted March 22, 2018 Geoffrey Oltman is working on a new release of Adamen SDL and has sent out a couple betas for testing. No word yet if Doug Slopsema will follow suit with an updated DOS version yet. Quote Link to comment Share on other sites More sharing options...
AnnaWu Posted March 22, 2018 Share Posted March 22, 2018 This version of Adam_Paste will support DosBox. I have not tested how well pasting works as my DosBox session was very slow. I tried some lines and no problems. Quote Link to comment Share on other sites More sharing options...
intvdave Posted March 22, 2018 Author Share Posted March 22, 2018 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. Quote Link to comment Share on other sites More sharing options...
intvdave Posted March 27, 2018 Author Share Posted March 27, 2018 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.