Mouse copy/paste support (Windows)

Here you can discuss the development of patches.

Re: Mouse copy/paste support

Postby truth_deleted » 2014-11-01 @ 03:59

I entirely agree. I updated the above post with a suggestion to compile the SDL library + SDL_Clipboard in OSX. It would require a custom SDL build which is far from an ideal approach.

Given that the OSX system clipboard is mainly accessible by objective-C, and dosbox is in C++, it seems that the pdcurses/SDL approach is the best solution at this time.
truth_deleted
 

Re: Mouse copy/paste support

Postby Wengier » 2014-11-01 @ 16:01

Actually, it is probably not that bad or "unideal" however. Somehow I have already found a solution for real clipboard copy/paste in OS X by now, which does not only work inside of DOSBox but also outside DOSBox. It combines pdcurses and SDL_Clipboard, with the latter only defined if the system is OS X so that it will be used for communication with the OS X system clipboard directly. The usage is actually very simple: just link to the SDL_Clipboard OS X binary for your arch (i386 or x86-64) when compiling DOSBox (with the updated source file) as you would do with libpdcurses.a, and then DOSBox will be able to able to use OS X system clipboard directly. I have tested it myself and confirmed it will work (put the SDL_Clipboard file in the same directory as the dosbox executable).

Attached is the updated sdlmain.cpp and SDL_Clipboard x86-64 OS X binary. Also the SDL_Clipboard.h header file (put in the include directory when compiling DOSBox).
You do not have the required permissions to view the files attached to this post.
Wengier
Member
 
Posts: 110
Joined: 2014-9-03 @ 19:56

Re: Mouse copy/paste support

Postby truth_deleted » 2014-11-01 @ 22:43

That's a brilliant idea and implementation! It seems you designed a gate (an open binary blob) into apple's "walled garden". :)
truth_deleted
 

Re: Mouse copy/paste support

Postby Wengier » 2014-11-03 @ 17:51

Just want to mention that the Windows binary package now includes both a documentation file README.TXT and the 256KEYS.COM program in order to be more convenient for users. The README.TXT file provides information such as features and settings of both the LFN and the mouse copy/paste features, and the 256KEYS.COM file is automatically loaded in dosbox.conf to expand the default BIOS keyboard buffer to 256. I have also attached an updated mouse.cpp source file which will remove any trailing spaces during mouse selection and copy (the Windows binary has now incorporated this functionality too).

The link for the latest Windows binary package (along with all required DLLs, zipped) as mentioned above:
http://bit.ly/12jANWF

And the updated mouse.cpp source file:
You do not have the required permissions to view the files attached to this post.
Wengier
Member
 
Posts: 110
Joined: 2014-9-03 @ 19:56

Re: Mouse copy/paste support

Postby oldpaddler » 2015-3-18 @ 15:01

I am not technically literate on this stuff. My DOS application is not a game but works perfectly, including its own mouse function, in DOSBox. It would be nice to copy & paste to the OS like I could in WinXP.

I installed DOSBox from http://bit.ly/12jANWF and created a shortcut to it. the target is "C:\Program Files (x86)\DOSBox-new\dosbox.exe" -noconsole "c:\dosfils1\qpro\q.exe". The [autoexec] is mount d c:\dosfils1, d:, d:\qpro\Q.exe, exit

I can copy the contents of Win7 clipboard into the application in DOSBox but the display is too compressed to be useful. None of the [sdl] settings make any difference to the display. However with DOSBox-0.74 plus [sdl] settings windowresolution=1280x720 & output=ddraw the display is larger & usable

Anything stored in the Win7 clipboard can be pasted (up to 15 characters) into the application in DOSBox with ALT-F10 - no matter what value is entered into the clipboardmodifier. Right click does nothing.

I don't know how to copy to the Win7 clipboard while in DOSBox.

Any suggestions?
oldpaddler
Newbie
 
Posts: 3
Joined: 2015-3-15 @ 22:32

Re: Mouse copy/paste support

Postby Jorpho » 2015-3-18 @ 16:07

oldpaddler wrote:My DOS application is not a game
Use vDOS instead. It has better clipboard support.
User avatar
Jorpho
l33t++
 
Posts: 7043
Joined: 2003-2-14 @ 19:50
Location: Canada

Re: Mouse copy/paste support

Postby oldpaddler » 2015-3-18 @ 20:05

Thanks Jorpho. It works perfectly.
oldpaddler
Newbie
 
Posts: 3
Joined: 2015-3-15 @ 22:32

Re: Mouse copy/paste support

Postby aljardet » 2015-4-01 @ 16:12

Does this copy/paste support work into or out of the DOS window? I see the drop down menu with the edit option when I click on the frame of the status window. When I try the same on the frame of the DOS window, where I execute my programs, the drop down does not show the edit option.
aljardet
Newbie
 
Posts: 5
Joined: 2015-4-01 @ 16:08

Re: Mouse copy/paste support

Postby Jorpho » 2015-4-01 @ 17:15

The Status window operates in an entirely different fashion from the main DOSBox window.

Have you tried vDOS?
User avatar
Jorpho
l33t++
 
Posts: 7043
Joined: 2003-2-14 @ 19:50
Location: Canada

Re: Mouse copy/paste support

Postby aljardet » 2015-4-19 @ 17:09

vDOS seems to be a good option for what I want to do. Thanks!
aljardet
Newbie
 
Posts: 5
Joined: 2015-4-01 @ 16:08

Re: Mouse copy/paste support

Postby aljardet » 2015-4-20 @ 23:24

After further testing, vDOS does not do what I need it to do. Compatibility in DOSBox was excellent. There are several things that don't work in vDOS. The only thing missing for me in DOSBox was copy/paste into and out of the DOSBox main window. Really copying from the DOSBox window out to notepad for example. Is there a way to do that from DOSBox?
aljardet
Newbie
 
Posts: 5
Joined: 2015-4-01 @ 16:08

Re: Mouse copy/paste support

Postby Wengier » 2015-5-05 @ 15:42

aljardet wrote:After further testing, vDOS does not do what I need it to do. Compatibility in DOSBox was excellent. There are several things that don't work in vDOS. The only thing missing for me in DOSBox was copy/paste into and out of the DOSBox main window. Really copying from the DOSBox window out to notepad for example. Is there a way to do that from DOSBox?


I think you can do so using this DOSBox build with mouse copy/paste support. There is obviously no drop down menu with the edit option, but you can use the right mouse button to do the copy and paste. This is the way it is designed to work.
Wengier
Member
 
Posts: 110
Joined: 2014-9-03 @ 19:56

Re: Mouse copy/paste support

Postby aljardet » 2015-7-28 @ 22:29

I finally got back to this and did figure out how to make it work. It does do exactly what I need! Will this always be a separate build or might these features be incorporated into the main builds? I'm looking for a version number for this so I can be sure I have the right version. I don't see any identifier. Am I missing something? Thanks for your help and I am so glad this works!
aljardet
Newbie
 
Posts: 5
Joined: 2015-4-01 @ 16:08

Re: Mouse copy/paste support

Postby Jorpho » 2015-7-31 @ 19:18

aljardet wrote:I finally got back to this and did figure out how to make it work. It does do exactly what I need! Will this always be a separate build or might these features be incorporated into the main builds?
As it has nothing to do with games, it is very unlikely that it will end up in the official DOSBox 0.75 if it is ever released. It might end up in the Daum build, but I kind of doubt it.
User avatar
Jorpho
l33t++
 
Posts: 7043
Joined: 2003-2-14 @ 19:50
Location: Canada

Re: Mouse copy/paste support

Postby aljardet » 2015-8-17 @ 19:15

Why is the file size smaller than the main build? Are there things that you had to take out?
aljardet
Newbie
 
Posts: 5
Joined: 2015-4-01 @ 16:08

Re: Mouse copy/paste support

Postby Wengier » 2015-8-22 @ 16:37

aljardet wrote:Why is the file size smaller than the main build? Are there things that you had to take out?


No, nothing is taken out, really. I only added features, and did not take out any existing features. The size is smaller probably due to optimization during building process, etc.
Wengier
Member
 
Posts: 110
Joined: 2014-9-03 @ 19:56

Re: Mouse copy/paste support

Postby Zaqu75 » 2016-1-03 @ 02:34

Thank you, Wengier, for your great job, but when I try to open the exe it gets an error which says "MSVCP140.dll is missing". Why is this issue happening and how can I fix it?
Zaqu75
Newbie
 
Posts: 6
Joined: 2016-1-03 @ 00:55

Re: Mouse copy/paste support

Postby collector » 2016-1-03 @ 06:18

Zaqu75 wrote:Thank you, Wengier, for your great job, but when I try to open the exe it gets an error which says "MSVCP140.dll is missing". Why is this issue happening and how can I fix it?

Do you even try to add MSVCP140.dll to the folder with this build of DOSBox?
User avatar
collector
l33t
 
Posts: 4036
Joined: 2003-1-15 @ 10:39

Re: Mouse copy/paste support

Postby Zaqu75 » 2016-1-03 @ 10:16

Yes, I added it and also I had to find and add another file named "vcruntime140.dll". Now my DosBox is able to run...
Zaqu75
Newbie
 
Posts: 6
Joined: 2016-1-03 @ 00:55

Re: Mouse copy/paste support

Postby Zaqu75 » 2016-1-03 @ 10:25

Now my DosBox is able to run...

collector wrote:
Zaqu75 wrote:Thank you, Wengier, for your great job, but when I try to open the exe it gets an error which says "MSVCP140.dll is missing". Why is this issue happening and how can I fix it?

Do you even try to add MSVCP140.dll to the folder with this build of DOSBox?


But I think that two additional files, which I mentioned above (msvcp140.dll, vcruntime140.dll), should be added to the link for the latest Windows binary package (along with all required DLLs, zipped)...
Zaqu75
Newbie
 
Posts: 6
Joined: 2016-1-03 @ 00:55

PreviousNext

Return to DOSBox Patches

Who is online

Users browsing this forum: No registered users and 1 guest