World: r3wp
[View] discuss view related issues
older newer | first last |
Maarten 22-Apr-2006 [4845] | yep |
Anton 22-Apr-2006 [4846x5] | Ok, well I have shown how to mimic do event, so: wake-event mimic-do-event either event-is-for-local-view-of-remote-desktop? [ send-event-to-remote-desktop ][ handle-event-as-usual ] forever [ wait-for-remote-desktop-message update-our-view-of-remote-desktop ] |
I think the difficult part is the compression of the remote desktop image so it can be sent down the wire quickly (if that's what they do.) | |
I think there must be a simple dialect to help updates. When a window is moved, the remote desktop probably sends "move 40x100 300x320 to 50x110" to the local machine, and also small background chunks to clean up the window drag trash left behind. | |
(An image of the background could be sent when the connection is first established, so it doesn't need to be resent all the time.) | |
So you could have a number of remote desktops on a rotating 3D cube :-) | |
Volker 22-Apr-2006 [4851x2] | You would not need to send images. send the samee events to two apps and both behave the same. At least as long as no timers are involved, else you need a mimic-time too :) |
(forgot to mention: very cool demo :) | |
Henrik 22-Apr-2006 [4853] | I'd wish they'd use this perspective twisted GUI stuff more in first person shooter games, instead of simple panels you poke with your gun or just press a key to activate. |
Volker 22-Apr-2006 [4854] | This thread is heavily Croquet-related :) |
Anton 22-Apr-2006 [4855] | No Volker, you can't do that ! What if you only want to restart the remote computer for instance ? :-) |
Maarten 22-Apr-2006 [4856] | I once (in 1999) create a RemoteCanvas class in Java (sorry for that), it used the encoding that VNC has invented. I forgot the name, but it is fairly easy to implement (especially with rebcode ;-) |
Volker 22-Apr-2006 [4857x2] | I was thinking about shared apps. rebooting the computer would be more complicated.Then both computers would need to rebootin sync. Is that called dual boot? *gg* ;) |
Croquet uses vnc too, to run apps in a 3d-world. | |
Maxim 22-Apr-2006 [4859] | anton, you'll have sooooo much fun with glass. |
Anton 22-Apr-2006 [4860x3] | Oh I see. |
Here's an idea coming out of discussion of Maxim's Glass - combining facets of different styles together, eg, setting up a button, but then dressing it with text styles of the H1 style: | |
view layout compose [face "hello" (svv/vid-styles/button/facets) (svv/vid-styles/h1/facets)] | |
Graham 22-Apr-2006 [4863x2] | I just tried out the source code version .. if I type into the bottom one, nothing appears there until a click, but it appears immediately in the top layout. |
Application sharing sounds like a good use. | |
Brock 22-Apr-2006 [4865] | It appeared for me as soon as I moved my mouse. |
Tomc 22-Apr-2006 [4866x2] | Anton I see an alert with: "Windows Media Player eccountered an unknown error" |
You've encountered error message C00D11CD while using Windows Media Player. We are investigating the cause of this error. We will post more information about this error when it becomes available. | |
Graham 22-Apr-2006 [4868] | try saving it locally and then play it, or just run the script. |
Anton 23-Apr-2006 [4869x4] | Tomc, that' s because Microsoft is trying to kill XVID, probably. Try using another player such as ZoomPlayer |
(Or you don't have the XVID codec) | |
(probably the simpler explanation.. :) | |
Go to http://doom9.net/ and click on Codecs to find XVID 1.1 | |
Henrik 23-Apr-2006 [4873] | or use VLC from videolan.org |
Graham 23-Apr-2006 [4874] | Is there a function that returns the curret position in draw after an operation? |
Geomol 24-Apr-2006 [4875] | Good question, but I don't think so. And should it be position related to last command, or should transformations be taken into consideration? Like: .... effect [ draw [translate 234x123 matrix [1 0 0 0 -1 0] line 20x-20 40x40]] What is position? |
Pekr 24-Apr-2006 [4876] | can't live without some All-in-1 or ffdshow codec packs ... as for players, I do use older (ad-ware free) Bsplayer .... |
Graham 24-Apr-2006 [4877x2] | I think it should be relative to the current translation |
I'm particularly interested in positioning for precise text placement. | |
DideC 24-Apr-2006 [4879] | I have done some text placement calculation for my RT-style (rich text). Result is 99% Draw code. Graham, you should have a copy of in on your HD as lecture-forum use it to show the posts (search "rtd-styles.r" or maybe "rtf-styles.r" if it's too old). |
Graham 24-Apr-2006 [4880] | I really need a better way of indexing the rebol scripts on my drive. Using the windows search tool finds far too many viruses :( |
Anton 24-Apr-2006 [4881x2] | Do you have a recursive directory walker, ie. tree ? |
I finally got around to making a nice little "command line" function FIND-FILE. You can use it with optional arguments like this: find-file *.r ; just lists all files with ".r" suffix. find-file *.r "rebol" ; lists all files with ".r" suffix and containing "rebol" find-file * "rebol" ; all files containing "rebol" etc... | |
Graham 24-Apr-2006 [4883] | not currently. |
Anton 25-Apr-2006 [4884x4] | Ok try this: |
do http://www.lexicon.net/antonr/rebol/library/dir-utils.r dir-utils/only [push pop] ; needed for tree foreach [url words][ http://www.lexicon.net/antonr/rebol/library/tree.r[tree] ; needed for find-file http://home.wilddsl.net.au/anton/rebol/util/find-file.r[find-file] ][ foreach word words [set word get in do url word] ] find-file *.r | |
push, pop and tree are pretty stable. Find-file is pretty new, but so far no problems. Find-file is short, so it's a good example of how to use tree. | |
I would expect you would just modify find-file a little bit to suit your purposes. | |
Gregg 25-Apr-2006 [4888] | Anton, your demo is simply awesome. Just blows me away what you guys can do. |
Pekr 25-Apr-2006 [4889] | Anton - nice example .... I wonder how difficult would it be to get it working via shell environment, which is now available in all rebol versions? |
Anton 25-Apr-2006 [4890x2] | Thanks, Gregg. |
Pekr, what do you have in mind ? | |
Pekr 25-Apr-2006 [4892x2] | I mean - complete shell wrapper, so I can use rebol instead of windows shell ... |
your find-file function is really nice addition though ... | |
Anton 25-Apr-2006 [4894] | I don't think it's easy to completely replace windows shell. I use dir-utils and find-file for most simple file system tasks already, but I use windows DOS console for all those particular windows DOS things. |
older newer | first last |