SRL Archive - Help and Support

ScriptPath that includes Script name?


R0b0t1

2008-05-26 16:30:32

ScriptPath doesn't include the scripts name, is there a function that does?

ShowerThoughts

2008-05-26 16:39:01

Note: use Ctrl + Space

ScriptPath

Just type something like
GetScr then do ctrl+ space then us see it is nto there then you do Scr Ctrl + Space and see that ScriptPath is there :D

Edit:
lol Nvm :p

Sir R. M8gic1an

2008-05-26 16:45:06

function ExtractFileName(FileName: string): string;
Returns the name of a file from a string.
Example:
C:\somefolder\somefile.ext => somefile.ext

from Scar Manual


edit, nvm i think..

~RM

bullzeye95

2008-05-26 16:47:04

function GetScriptName: String;
begin
Result:= Copy(GetSelf.Caption, 1, Pos(' - SCAR Divi', GetSelf.Caption) - 1);
end;
:)

EDIT: Will only work if you don't mess with the title of the window at all.

R0b0t1

2008-05-26 16:47:36

You don't seem to get it…

ScriptPath doesn't include the name of the script its run from, which I want. Try it.


WriteLn(ScriptPath);

Dan Cardin

2008-05-26 16:53:49

you have to add the name. As far as i know, there isnt a function to do that for you

Freddy1990

2008-05-26 17:45:50

SCAR doesn't have a function that does this, maybe you should try suggesting it to Freddy on his forums, maybe he'll think it's a good idea and add it…

Hugolord

2008-05-26 17:47:39

From: Freddy1990
SCAR doesn't have a function that does this, maybe you should try suggesting it to Freddy on his forums, maybe he'll think it's a good idea and add it…


I lol'd real bad.. haha lol

Yeah I think this should be added too tbh never thought much about it..

Freddy1990

2008-05-26 17:54:33

It's on my list…

mixster

2008-05-26 18:01:07

Have that set as your desktop pic so you don't forget!

Freddy1990

2008-05-26 18:05:22

From: mixster
Have that set as your desktop pic so you don't forget!


I actually used a drawing tablet for that and I prefer my current background of a steaming hot… gascloud in a distant galaxy -_-

EDIT: For those who care, lol, it's the Rosette nebula, here's the beautiful wallpaper:
I've decided to switch to an awsome photo of Saturn though

R0b0t1

2008-05-26 18:47:30

Oh, cool, 1920x1200. Where'd you find that? My monitor is actually that big, and they're hard to find… (That dimension of pictures)


Thanks for thinking about it though… Uhm… What changes *are* you working on though?

Freddy1990

2008-05-27 10:19:23

Many :)

And I downloaded it in a packet of like 20 high res pictures from hubble and spitzer, my 2 screens hava a resolution of 1680 * 1050 so I have no choice but to find really big background, lol

R0b0t1

2008-05-27 13:18:56

/me wants mega-upload link

Freddy1990

2008-05-27 16:15:58

I didn't get it from mega-upload…

R0b0t1

2008-05-27 18:46:05

I know, I was hinting at that you might give me a link to those photos or post them on megaupload…

Freddy1990

2008-05-28 01:38:09

Well, I'm not going to do that seeing I don't have time for it and we're going slightly offtopic here

Daniel

2008-05-28 05:03:04

Err. I prefer the andromeda galaxy though. More spectacular ;)

Freddy1990

2008-05-28 07:01:06

From: IP-Drowner
Err. I prefer the andromeda galaxy though. More spectacular ;)


I have that as well…

n3ss3s

2008-05-28 09:11:48

I think SuperNovas are the best,



though they are a bit hard to find in desktop wallpaper sizes…

Freddy1990

2008-05-28 12:20:23

That supernova of urs is the Crab Nebula :)

Here's another supernova leftover:

n3ss3s

2008-05-28 13:01:55

Things that you get by Googling SuperNova anyway :p

Crab Nebula is sexay.

Freddy1990

2008-05-28 13:16:17

Well, the Crab Nebula is a remains of a supernova…

Bobarkinator

2008-05-28 13:29:02

Freddy while you are at it, since you are going to get the script name you should have a SetDefaultName procedure to set SCAR back to the default name.

Freddy1990

2008-05-28 14:35:37

I don't really see the point, but ok, but let's leave the thinking of a functionname to me :p

Bobarkinator

2008-05-28 14:44:32

Yeah lol, I couldn't think of a good name :p

R0b0t1

2008-05-28 14:50:50

Well, I just found two new wallpapers…

Freddy1990

2008-05-28 14:57:08

Heh, here's another one then :) The Andromeda galaxy

Btw, what was this thread about again?

R0b0t1

2008-05-28 15:00:50

I think it was about making a function that returned the scripts name… Like ScriptPath but with a script name…


But I like this topic way better :p


EDIT: Here's one I found on my HD… My files are all screwy, so I can't just upload the picture.


Naum

2008-05-28 15:09:35

Script Path –> Supernova :p

Freddy1990

2008-05-28 16:43:30

From: R0b0t1
I think it was about making a function that returned the scripts name… Like ScriptPath but with a script name…


But I like this topic way better :p


EDIT: Here's one I found on my HD… My files are all screwy, so I can't just upload the picture.



Nice, but that's just concept art :)

MylesMadness

2008-05-28 19:34:53

It's all mixster's fault this off topic *grabs pitch forks*

Gu3st...

2008-05-29 05:37:13

Sweet pictures there Freddy :)

Wow.. what about making a thread in 'Waste of Timeout'; 'Post you Galaxy Wallpapers here!' :O i got a car as background…


EDIT: Omfgzors! I Ruined it! oh noez *Hides* Ö

Daniel

2008-05-29 07:47:39

Here's my picture of the Andromeda Galaxy and it is my desktop wallpaper as-well ;):

R0b0t1

2008-05-29 13:03:31

May I direct all new posts here: http://www.villavu.com/forum/showthread.php?t=31151?p=412018#post412018