Re: Hotkey Toolbar Quick Program Launcher AGAIN!

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi Greg

OOPS - just discovered I forgot to send this.

Greg Haberek wrote:
 > i would suggest getting the directory of the .exw file from command_line()
 > it will be the second element of the returned sequence:  { "path to
 > interpreter", "path to exw file", "additional command line options", ... }

OK, I have done this and it works. What confuses me is that it worked to
begin with with my file name just "quick.ini" so I assumed that the
default dir was the one where the quick.exw was double clicked. I got a
real surprise when the next time I booted it couldn't find it.

later you wrote:
  > function startup_dir()
  > -- get the directory the program started in
  > sequence cmd
  > integer slash
... and a lot of code.

I cheated on this, just knocking off the exw and putting the ini in place
as follows (it will even work if I change the program name)  smile

cmd=command_line()
inifn=open(cmd[2][1..length(cmd[2])-3]&"ini", "r")

Euphoria is the first language I have come across that is BETTER than
BASIC at manipulating strings, and I have come across a few (started
programming in the 60s). Hey while I am reminiscing, I also had a C64 and
an Amiga before getting a 286 then various Pentiums. But before the C64 I
had a Compucolor! The C64 and Amiga were great machines and some things
have never caught up with the Amiga yet. I have a C64 emulator on the PC
and it will run some of the old games; also a game "Jumpman lives!".

Not sure about your ascii table so I haven't done that. I am going by the
principle that if it isn't broke don't fix it.

 > -- no need for a for loop, since ClickBut() will only be called
 > -- once per button press, rather do the following:
...

Yes, good point, why loop if not needed - find is faster. I will change
this too.

Many thanks Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu