1. Al Getz Display Server
- Posted by jondolar <lavigne.s at videotron.ca> Jul 26, 2003
- 501 views
I Have some problems with Display Server. Lokk at my previous message RE: A nice window vs Win console jondolar Thanks Serge
2. Re: Al Getz Display Server
- Posted by Juergen Luethje <j.lue at gmx.de> Jul 27, 2003
- 475 views
Hello Al, you wrote: <snip> > This is a very simple but VERY handy program, but > if any other problems come up, feel free to let me know > about them. I like the idea in general, and I like your program. Nevertheless, *for me* it has ATM no practical advantage over the console window. For my needs, the most important improvement would be, to make the text inside the window scrollable, so that your server can show much more lines than currently (say 500 -- but I think, Windows allows even more). Secondly, displaying the text in a non-proportional font (such as "Courier New") is IMHO more versatile, than using a proportional font. In a non-proportional font, also tables and ASCII art will be shown correctly. Just try include connect.ew ServerPrint(" |\\ _,,,---,,_") ServerPrint(" /,`.-'`' -. ;-;;,_") ServerPrint(" |,4- ) )-,_..;\\ ( `'-'") ServerPrint("'---''(_/--' `-'\\_)") and see, what currently happens to the kitty. An advanced option also could be, that the user can choose a font. *If* your DisplayServer should act as replacement for the console window, IMHO it should show the output of an Eu program in a similar way, especially - don't start with a new line after each call - interpret the "\n" as "newline" character. Also a button for clearing the window would be useful. You see, there is always room for improvement. Best regards, Juergen -- Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x].
3. Re: Al Getz Display Server
- Posted by gertie at visionsix.com Jul 27, 2003
- 486 views
On 27 Jul 2003, at 9:23, Juergen Luethje wrote: > > > Hello Al, you wrote: > > <snip> > > > This is a very simple but VERY handy program, but > > if any other problems come up, feel free to let me know > > about them. > > I like the idea in general, and I like your program. Nevertheless, > *for me* it has ATM no practical advantage over the console window. > > For my needs, the most important improvement would be, to make the text > inside the window scrollable, so that your server can show much more > lines than currently (say 500 -- but I think, Windows allows even more). > > Secondly, displaying the text in a non-proportional font (such as > "Courier New") is IMHO more versatile, than using a proportional font. > In a non-proportional font, also tables and ASCII art will be shown > correctly. Just try > include connect.ew > ServerPrint(" |\\ _,,,---,,_") > ServerPrint(" /,`.-'`' -. ;-;;,_") > ServerPrint(" |,4- ) )-,_..;\\ ( `'-'") > ServerPrint("'---''(_/--' `-'\\_)") > > and see, what currently happens to the kitty. > An advanced option also could be, that the user can choose a font. You can do that with the Eu-mirc bot code, using mirc to select any font at any time you wish. Changing a window font redraws the screen. I have used mirc as a Eu display. Al's Eu code is good too, for what it does. Mirc 6.03 can load up literally 100's of fonts, i use it for Chinese, Russian, and Japanese, but it has more: Korean, Thai, etc.. Kat
4. Re: Al Getz Display Server
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Jul 27, 2003
- 461 views
On Sun, 27 Jul 2003 00:27:18 -0400, Elliott Sales de Andrade <quantum_analyst at hotmail.com> wrote: >It appears the Display Server does not work on Windows XP. I just tried = it. I've put up a little program using Thomas Parslow's ipc handler, which is still in proof-of-concept stage. Can someone test it on XP? The url is http://palacebuilders.pwp.blueyonder.co.uk/euphoria.html It is the last item on that page. Originally I wrote this for an entirely different purpose. The files are: run.exw - similar-ish to the display server, it runs in the background. If you run this, it starts up test.exw automatically. test.exw - a test program. If you run this it will automatically load run.exw if it is not already running (there is a lost focus bug - tho I'm sure that can be fixed fairly easily). test2.exw is a tiny message_box example. Pressing Run should fire up the message box, closing that should post a message back to the calling program and display it. It is not at this stage supposed to look anything like Display Server. If (*IF*) it works on XP, it would have some advantages over Al Getz's Display Server: it is written entirely in Euphoria, so it would be easy for someone to make it scrollable, change the font, add a clear button, etc, and it is not necessary to remember to fire up the display server beforehand. Maybe someone would like to tidy it up? It needs a complete rewrite really, but hey, it's only 300 lines of code. The demo uses win32lib, but I don't think it would be too hard to make it cross-lib. Pete
5. Re: Al Getz Display Server
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Jul 27, 2003
- 477 views
On Sun, 27 Jul 2003 13:32:55 +0000, jondolar <lavigne.s at videotron.ca> wrote: >Hi Pete > >I tried your little program on my Win XP machine and it seems to work=20 >correctly. When I fire test.exw, I get a little witndow and a counter=20 >incrementing and scroling up automatically on the left side of the RUN=20 >button. If I press RUN, I get the win console with some various called=20 >functions from win32. Closing the box produce essentially the same=20 >effect with a longer list of called functions. Very droll. Never mind Pete
6. Re: Al Getz Display Server
- Posted by jbrown105 at speedymail.org Jul 27, 2003
- 467 views
On Sun, Jul 27, 2003 at 03:41:48AM -0500, gertie at visionsix.com wrote: <snip> > > You can do that with the Eu-mirc bot code, using mirc to select any font at > any time you wish. Changing a window font redraws the screen. I have used > mirc as a Eu display. Al's Eu code is good too, for what it does. Mirc 6.03 > can load up literally 100's of fonts, i use it for Chinese, Russian, and > Japanese, but it has more: Korean, Thai, etc.. > > Kat > I think a clear source Eu program would be best for this task (so that it would be portable and easily modified for new versions of Windows, and users could add other desired features, etc.) Using mIRC for this task would be overkill IMHO. jbrown > > > TOPICA - Start your own email discussion group. FREE! > > -- /"\ ASCII ribbon | http://www.geocities.com/jbrown1050/ \ / campain against | Linux User:190064 X HTML in e-mail and | Linux Machine:84163 /*\ news, and unneeded MIME | http://verify.stanford.edu/evote.html
7. Re: Al Getz Display Server
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Jul 27, 2003
- 500 views
On Sun, 27 Jul 2003 17:47:55 +0000, jondolar <lavigne.s at videotron.ca> wrote: > > >Pete Lomax wrote: >>=20 >>=20 >> On Sun, 27 Jul 2003 13:32:55 +0000, jondolar <lavigne.s at videotron.ca> >> wrote: >>=20 >> >Hi Pete >> > >> >I tried your little program on my Win XP machine and it seems to work= =20 >> >correctly. When I fire test.exw, I get a little witndow and a counter= =20 >> >incrementing and scroling up automatically on the left side of the = RUN=20 >> >button. If I press RUN, I get the win console with some various = called=20 >> >functions from win32. Closing the box produce essentially the same=20 >> >effect with a longer list of called functions. >>=20 >> Very droll. >>=20 >> Never mind >> Pete > >What's the matter Pete. Why do find that Funny ? Just trying to help. I thought you were taking the mick. What you describe is both programs crashing. It needs debugging on XP, so not much I can do anyway. Pete
8. Re: Al Getz Display Server
- Posted by Elliott Sales de Andrade <quantum_analyst at hotmail.com> Jul 28, 2003
- 468 views
It appears that you are using a file name, or path, for something in there. The IPC call uses Shared Memory. Somehow, the path you are giving is used as the name of the shared segment of memory. This is not allowed. I'm not familiar with the IPC include, but you will have to change some parameter so that it does not use any backslashes. Backslashes aren't supposed to be allowed on Win 9x/ME either. >From: Pete Lomax <petelomax at blueyonder.co.uk> >Subject: Re: Al Getz Display Server > > >On Sun, 27 Jul 2003 00:27:18 -0400, Elliott Sales de Andrade ><quantum_analyst at hotmail.com> wrote: > > >It appears the Display Server does not work on Windows XP. I just tried >it. > >I've put up a little program using Thomas Parslow's ipc handler, which >is still in proof-of-concept stage. Can someone test it on XP? > >The url is http://palacebuilders.pwp.blueyonder.co.uk/euphoria.html >It is the last item on that page. > >Originally I wrote this for an entirely different purpose. >The files are: >run.exw - similar-ish to the display server, it runs in the >background. If you run this, it starts up test.exw automatically. >test.exw - a test program. If you run this it will automatically load >run.exw if it is not already running (there is a lost focus bug - tho >I'm sure that can be fixed fairly easily). >test2.exw is a tiny message_box example. > >Pressing Run should fire up the message box, closing that should post >a message back to the calling program and display it. It is not at >this stage supposed to look anything like Display Server. > >If (*IF*) it works on XP, it would have some advantages over Al Getz's >Display Server: it is written entirely in Euphoria, so it would be >easy for someone to make it scrollable, change the font, add a clear >button, etc, and it is not necessary to remember to fire up the >display server beforehand. Maybe someone would like to tidy it up? It >needs a complete rewrite really, but hey, it's only 300 lines of code. >The demo uses win32lib, but I don't think it would be too hard to make >it cross-lib. > >Pete >
9. Re: Al Getz Display Server
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Jul 28, 2003
- 475 views
On Mon, 28 Jul 2003 01:09:53 -0400, Elliott Sales de Andrade <quantum_analyst at hotmail.com> wrote: > > > It appears that you are using a file name, or path, for something in= =20 >there. The IPC call uses Shared Memory. Somehow, the path you are giving= is=20 >used as the name of the shared segment of memory. This is not allowed. I didn't know that. I've removed the path and put a revised version up I also cured the focus bug. <snip> >>The url is http://palacebuilders.pwp.blueyonder.co.uk/euphoria.html >>It is the last item on that page. Pete
10. Re: Al Getz Display Server
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Jul 28, 2003
- 479 views
On Mon, 28 Jul 2003 16:12:38 +0000, Al Getz <Xaxo at aol.com> wrote: >Dont you have any original ideas to code? LOL. Actually it is just a bit of code I wrote last year, for an entirely different reason (so I could exec a program from MEditor without waiting for a result code, and hence preventing any further edits until the app closed, the purpose of my 'server' was to do that and fire a message back to MEditor should the app signal an error). The program is just a proof-of-concept test for that, flawed and unfinished. I just wondered if it worked on XP, as a possible alternative. BTW, is Display Server written in Eu? I shall cease and desist if you like Pete
11. Re: Al Getz Display Server
- Posted by Elliott Sales de Andrade <quantum_analyst at hotmail.com> Jul 28, 2003
- 471 views
Alright, now it appears to work. The only problem is that your call to ShellExecute does not put quotes around the name of the Euphoria file to run. >From: Pete Lomax <petelomax at blueyonder.co.uk> >Subject: Re: Al Getz Display Server > > >On Mon, 28 Jul 2003 01:09:53 -0400, Elliott Sales de Andrade ><quantum_analyst at hotmail.com> wrote: > > > > > It appears that you are using a file name, or path, for something in > >there. The IPC call uses Shared Memory. Somehow, the path you are giving >is > >used as the name of the shared segment of memory. This is not allowed. >I didn't know that. I've removed the path and put a revised version up >I also cured the focus bug. ><snip> > >>The url is http://palacebuilders.pwp.blueyonder.co.uk/euphoria.html > >>It is the last item on that page. > >Pete >
12. Re: Al Getz Display Server
- Posted by Juergen Luethje <j.lue at gmx.de> Jul 30, 2003
- 466 views
Hi Al, you wrote: > Juergen Luethje wrote: >> >> >> Hello Al, you wrote: >> >> <snip> >> >>> This is a very simple but VERY handy program, but >>> if any other problems come up, feel free to let me know >>> about them. >> >> I like the idea in general, and I like your program. Nevertheless, >> *for me* it has ATM no practical advantage over the console window. >> >> For my needs, the most important improvement would be, to make the text >> inside the window scrollable, so that your server can show much more >> lines than currently (say 500 -- but I think, Windows allows even more). >> >> Secondly, displaying the text in a non-proportional font (such as >> "Courier New") is IMHO more versatile, than using a proportional font. >> In a non-proportional font, also tables and ASCII art will be shown >> correctly. <snip> >> An advanced option also could be, that the user can choose a font. >> >> *If* your DisplayServer should act as replacement for the console >> window, >> IMHO it should show the output of an Eu program in a similar way, >> especially >> - don't start with a new line after each call >> - interpret the "\n" as "newline" character. >> >> Also a button for clearing the window would be useful. >> You see, there is always room for improvement. >> >> Best regards, >> Juergen >> > > Hello again Juergen, > > The practical advantage of something isnt always noticed > at first. I have no doubt about that. > Sometimes you have to use it a few times to > see the difference. It's not only a matter of the times I use it, but also a matter of how I use it. > In particular, when you are debugging and you wish to see > variables over and over as you are doing something else in > your program, the console window gets slower sometimes > causing a delay in returning to the exw program. This is > a real pain when trying to debug. On the other hand, > after printing to the server it returns control to the calling > program very fast, so your program doesnt get interrupted. > The is especially true when trying to print data returned to > a Windows callback function. I believe you, and I didn't say, that your progranm is useless or something like that. I wrote "*for me*", that has something to do with my personal needs. You can believe me, *I* know my needs. > To see the difference, try printing values passed to a window > procedure with the console, then with the server. The difference > is quite noticable. The server doesnt make the program skip a > beat, while the console sometimes delays the calling program by > a second or two. > > Also, there's no reason why this program cant be updated > to allow changing fonts and format printing and stuff like > that. I already had ideas for multiple fonts and coloration. > > If this turns out to be something anyone would like to see > in this just let me know. I already wrote some suggestions for improvement, and "Mr Trick" wrote, that he also would like to see a scrollbar. Best regards, Juergen -- The difference between men and boys is the price of the toys.
13. Re: Al Getz Display Server
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Jul 30, 2003
- 478 views
On Wed, 30 Jul 2003 05:41:51 +0200, Juergen Luethje <j.lue at gmx.de> wrote: >I already wrote some suggestions for improvement, and "Mr Trick" wrote, >that he also would like to see a scrollbar. I also think it would be quite cool to allow the application to pass a function which can be called by the display server to obtain the current values (and format) of selected named variables, and save the position for use in one session to the next, eg. integer v1 integer init1 init1=3D0 sequence v2 integer init2 init2=3D0 ... v1=3D?? init1=3D1 ... function ServerCallBack(sequence name) if equal(name,"v1") then if not init1 then return {"<no value>","%s"} end if return {v1,"%d"} end if if equal(name,"v2"...... end function SetServerCallBack(routine_id("ServerCallBack")) Pete