1. To Run .ex or .exw App in Crimson Editor using only 1 hot key ?? Any Help

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

new topic     » topic index » view message » categorize

2. Re: To Run .ex or .exw App in Crimson Editor using only 1 hot key ?? Any Help

Selgor said...

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.

new topic     » goto parent     » topic index » view message » categorize

3. Re: To Run .ex or .exw App in Crimson Editor using only 1 hot key ?? Any Help

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.

new topic     » goto parent     » topic index » view message » categorize

4. Re: To Run .ex or .exw App in Crimson Editor using only 1 hot key ?? Any Help

Selgor said...

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

new topic     » goto parent     » topic index » view message » categorize

5. Re: To Run .ex or .exw App in Crimson Editor using only 1 hot key ?? Any Help

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

new topic     » goto parent     » topic index » view message » categorize

6. Re: To Run .ex or .exw App in Crimson Editor using only 1 hot key ?? Any Help

You can just use exw.exe for both DOS and Windows programs.

new topic     » goto parent     » topic index » view message » categorize

7. Re: To Run .ex or .exw App in Crimson Editor using only 1 hot key ?? Any Help

Selgor said...

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

new topic     » goto parent     » topic index » view message » categorize

8. Re: To Run .ex or .exw App in Crimson Editor using only 1 hot key ?? Any Help

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

new topic     » goto parent     » topic index » view message » categorize

9. Re: To Run .ex or .exw App in Crimson Editor using only 1 hot key ?? Any Help

Selgor said...

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

new topic     » goto parent     » topic index » view message » categorize

10. Re: To Run .ex or .exw App in Crimson Editor using only 1 hot key ?? Any Help

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

new topic     » goto parent     » topic index » view message » categorize

11. Re: To Run .ex or .exw App in Crimson Editor using only 1 hot key ?? Any Help

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

new topic     » goto parent     » topic index » view message » categorize

12. Re: To Run .ex or .exw App in Crimson Editor using only 1 hot key ?? Any Help

Selgor said...

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.

new topic     » goto parent     » topic index » view message » categorize

13. Re: To Run .ex or .exw App in Crimson Editor using only 1 hot key ?? Any Help

Selgor here

Thanks Derek

Give it a spin.

Cheers

Selgor

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu