1. To Run .ex or .exw App in Crimson Editor using only 1 hot key ?? Any Help
- Posted by Selgor Sep 28, 2010
- 1196 views
Hello,
Selgor here
In Crimson Editor
I have set up f11 as the hot key to run win dos progs
and f12 to run .exw progs.
Just wonder if there is a way that will allow only
the f11 or the f12 to run app.
I mean that only one hot key needed to execute the file in the editor
whether it is .ex or .exw
2. Re: To Run .ex or .exw App in Crimson Editor using only 1 hot key ?? Any Help
- Posted by DerekParnell (admin) Sep 29, 2010
- 1164 views
- Last edited Sep 28, 2010
I have set up f11 as the hot key to run win dos progs and f12 to run .exw progs.
Can you show us the command lines you set up for F11 and F12? That will help us understand what it is you are expecting.
3. Re: To Run .ex or .exw App in Crimson Editor using only 1 hot key ?? Any Help
- Posted by Selgor Sep 29, 2010
- 1113 views
Thank You for the reply
In the Preferences area of Crimson Editor
Menu Text exw
Command c:\euphoria\bin\exw.exe
Argument $[FilePath]
Initial Dir
HotKey F12
Then for the win dos .ex apps
Menu Text ex
Command c:\euphoria\bin\ex.exe
Argument $[FilePath]
Initial Dir
HotKey F11
I took a screen shot and saved as PNG file.
But, I don't know how to send you that The above are the boxes to fill in in the prog.
Hope it makes sense ??
Cheers
Selgor.
4. Re: To Run .ex or .exw App in Crimson Editor using only 1 hot key ?? Any Help
- Posted by DanM Sep 29, 2010
- 1154 views
Hello,
Selgor here
In Crimson Editor
I have set up f11 as the hot key to run win dos progs
and f12 to run .exw progs.
Just wonder if there is a way that will allow only
the f11 or the f12 to run app.
I mean that only one hot key needed to execute the file in the editor
whether it is .ex or .exw
From top of my head:
In your "Save" function, save a variable which indicates that you saved the file as either a .ex or a .exw;
then, when you hit your intended single hot key, test that var first to see which interpreter should be run.
Dan
5. Re: To Run .ex or .exw App in Crimson Editor using only 1 hot key ?? Any Help
- Posted by Selgor Sep 29, 2010
- 1179 views
Thank you for your reply
Dan I think you have the wrong idea.
Derek I hope I have not lead you astray too.
I am not writing a program.
I am trying to set up the Crimson Editor program
that I use to write my progs.
And the above are the hot keys the editor recognises
to run the programme that is in the editor.
I have to press f11 when prog. is .ex
and f12 if prog. is .exw
I am wondering if I can use f11 to run whatever the prog.
is in the editor.
or f12
Sorry for any misunderstanding.
Derek, you lead me to Crimson Editor.
Just thought you might have some way to simply use one hot key?
Cheers,
Selgor
6. Re: To Run .ex or .exw App in Crimson Editor using only 1 hot key ?? Any Help
- Posted by DerekParnell (admin) Sep 29, 2010
- 1165 views
You can just use exw.exe for both DOS and Windows programs.
7. Re: To Run .ex or .exw App in Crimson Editor using only 1 hot key ?? Any Help
- Posted by DanM Sep 29, 2010
- 1184 views
Thank you for your reply
Dan I think you have the wrong idea.
<snip>
Cheers,
Selgor
You're right, I completely misunderstood, sorry 'bout that, fortunately Derek did not misunderstand. I thought you were maybe wanting to MODIFY an editor WRITTEN IN EUPHORIA, didn't know anything at all about the Crimson editor in specific to know better.
Good thing Derek gave you the relatively obvious answer Dan
8. Re: To Run .ex or .exw App in Crimson Editor using only 1 hot key ?? Any Help
- Posted by Selgor Sep 29, 2010
- 1142 views
Hello
Selgor here
Derek,
You said :-
You can just use exw.exe for both DOS and Windows programs.
But Derek .......
No I can't
Because I used to use the one key in the Context editor
I thought it might work in Crimson
But alas ......... I get errors ...
use_vesa() not supported..
draw_line not supported..
when .ex defined to exw.exe
So I thought you might have a fix.
But errors still there..
Cheers.
Selgor
9. Re: To Run .ex or .exw App in Crimson Editor using only 1 hot key ?? Any Help
- Posted by DanM Sep 29, 2010
- 1149 views
Hello
Selgor here
Derek,
You said :-
You can just use exw.exe for both DOS and Windows programs.
But Derek .......
No I can't
Because I used to use the one key in the Context editor
I thought it might work in Crimson
But alas ......... I get errors ...
use_vesa() not supported..
draw_line not supported..
when .ex defined to exw.exe
So I thought you might have a fix.
But errors still there..
Cheers.
Selgor
Ok, I should by now know to keep quiet if I don't know what I'm talking about, but how's this:
Can the editor setup allow MULTIPLE parameters to be passed by the hot key? That is, one parameter would be a Euphoria interpreter, another would be a file name for a small Euphoria program to be explained below, and another would be the filename of the program being edited.
The Euphoria interpreter would run the "small Euphoria program", which would be a program to see if the NEXT paramter is a .ex or .exw named file, and would then choose the appropriate interpreter to call to run the actual program you're editing.
Does that seem like it could work?
(If that's a *completely* stupid idea, I think I'll shut my computer off for a while and give it a rest! !)
Dan
10. Re: To Run .ex or .exw App in Crimson Editor using only 1 hot key ?? Any Help
- Posted by ChrisB (moderator) Sep 29, 2010
- 1311 views
Hi
Why not write a euphoria program that runs the appropriate interpreter based on the extension of the file you supply to it?
eg (pseudocode)
if (extension) = ex then system(run dos interpreter) else (run windows interpreter) end psudoif
You would call this, passing the program name as the parameter whenever you pressed the hotkey
Chris
11. Re: To Run .ex or .exw App in Crimson Editor using only 1 hot key ?? Any Help
- Posted by Selgor Sep 29, 2010
- 1147 views
Selgor here
Thank you for your input.
All three of you
Derek, DanM. , ChrisB,
It is a trivial but annoying thing.
What makes one editor "better" than another.
So, after my system crash I thought I would try Crimson.
Works fine BUT....
So Download Context editor and revitalise
Or Just use 2 hot keys..
Sorry to cause you trouble.
Answer DanM.
Simple........ No It Does not Work.
Answer ChrisB.
Crimson does not savvy.
Thanks for your time.
One more solution ...
Rewrite all my 100 odd .ex programmes in .exw Windows.
Now won't that be something .. Ha!Ha!
Cheers.
Selgor
12. Re: To Run .ex or .exw App in Crimson Editor using only 1 hot key ?? Any Help
- Posted by DerekParnell (admin) Sep 29, 2010
- 1118 views
One more solution ...
Rewrite all my 100 odd .ex programmes in .exw Windows.
Now won't that be something .. Ha!Ha!
Ok, I see what you mean. I don't use the DOS features or Euphoria v3 so I'd forgotten that Euphoria v3 makes it hard for you.
I like Chris' idea. That should work for you.
13. Re: To Run .ex or .exw App in Crimson Editor using only 1 hot key ?? Any Help
- Posted by Selgor Sep 29, 2010
- 1160 views
Selgor here
Thanks Derek
Give it a spin.
Cheers
Selgor