Computer Science Canada re:turing command |
Author: | boredstudent3 [ Mon Sep 27, 2004 1:12 am ] |
Post subject: | re:turing command |
hey guys is there a command in turing which can execute other .exe files i've made a splashscreen in turing and now when the user clicks on a button, i want turing to start up this other .exe prgm which i have made in C...is this possible at all? |
Author: | Mazer [ Mon Sep 27, 2004 7:26 am ] |
Post subject: | |
Yes, you'll want to look up Sys.Exec. |
Author: | Delos [ Mon Sep 27, 2004 10:00 am ] |
Post subject: | |
boredstudent3...this is the Tutorials section. I.e., this is the place where you post Tutorials... PM a mod and politely ask them to move this thread to the Turing Help Section. ![]() |
Author: | Mazer [ Mon Sep 27, 2004 10:26 am ] |
Post subject: | |
No worries, I didn't even notice that. If I did I would've moved it earlier. |
Author: | Jonny Tight Lips [ Mon Sep 27, 2004 4:48 pm ] |
Post subject: | |
Coutsos wrote: No worries, I didn't even notice that. If I did I would've moved it earlier.
Coutsos your not a mod... are you?... so how can you move things? ![]() |
Author: | Cervantes [ Mon Sep 27, 2004 5:09 pm ] |
Post subject: | |
Coutsos = Mazer. Mazer = mod. Coutsos / Mazer is included in The Staff Site. evil name changing ![]() EDIT: let's try to keep the spam down. -4 BITS: Jonnny Tight Lips |
Author: | Jonny Tight Lips [ Mon Sep 27, 2004 5:15 pm ] |
Post subject: | |
The why ins't Coutsos set as a mod aswell since he is one anyways? I would think that would be logical? UNless he uses both account which would be unlogical. |
Author: | Paul [ Mon Sep 27, 2004 5:24 pm ] |
Post subject: | |
sigh... cutsos is mazer, mazer has mod powers (if you'll be more observant when he logs in, you'll see it on the bottom of the index page), but he doesn't have an official rank. ... and its illogical ![]() |
Author: | boredstudent3 [ Mon Sep 27, 2004 11:10 pm ] |
Post subject: | |
i typed in sys.exec into turing but if gave me no syntax outline when i pushed F8 or F9 or clicked on those buttons in the help menu,, could u please aid me in my search a little more please. thanks for your time,,appreciate it -bored |
Author: | Genesis [ Mon Sep 27, 2004 11:23 pm ] |
Post subject: | |
What version are you using? I have 4.0.4c and it works fine. More importantly, (because I believe this command works with all versions of Turing) make sure your typing the proper syntax, with capitals and all, so it should be "Sys.Exec", not "sys.exec". This is what you should find in the help file: Sys.Exec Part of Sys module Syntax: Sys.Exec ( command : string ) : boolean Description: The Sys.Exec function is used to execute an application or more often, open a data file with its associated application. Sys.Exec can be used to launch such programs as the Internet Browser by specifying a URL. Sys.Exec launches the application associated with file's suffix. (In essence, it performs the same operation as if a user double clicked on the file.) Example: This program launches an internet browser and points it to Holt Software's home page. It then launches a movie using the default video player. if not Sys.Exec ("http://www.holtsoft.com/turing/support") then put "The Sys.Exec call failed" put "Error: ", Error.LastMsg end if if not Sys.Exec ("skate.avi") then put "The Sys.Exec call failed" put "Error: ", Error.LastMsg end if Details: When the Sys.Exec procedure is used, the executing program continues execution immediately while the launched application is running. Status: Exported qualified. This means that you can only call the function by calling Sys.Exec, not by calling Exec. |
Author: | Mazer [ Tue Sep 28, 2004 7:50 am ] | ||
Post subject: | |||
Yes, it was the capitalization of letters that got you. Also, if you aren't going to take the time to read through what Genesis has posted, remember that Sys.Exec is a function and that in turing you will have to do something with it's result. Most commonly, use it in an empty if statement like:
|
Author: | wtd [ Tue Sep 28, 2004 2:45 pm ] |
Post subject: | |
Functions have return values for a reason. Don't ignore them. ![]() |
Author: | Mazer [ Tue Sep 28, 2004 2:59 pm ] |
Post subject: | |
That's true, it's just that whenever I was using Sys.Exec back in the day, it was in a situation where it wouldn't help me any to have the user know why a certain part of my program didn't work. Especially when I didn't the user knowing about a certain part of said program. If you catch my meaning. |
Author: | boredstudent3 [ Tue Sep 28, 2004 11:22 pm ] |
Post subject: | |
alright thanks alot folks!...yeah it was indeed the capital letters that messed me up...but just for some clarification,, say if the .exe file that C generated was named Lab4.exe , would i just simply type this into turing? Sys.Exec (lab4.exe) i'm asking b/c in the example that genesis gave (thanks for taking the time to help me out,,appreciate it) he just put the website inside the brackets,,is that how i should enter prgm line in turing as well?... thanks bored- |
Author: | Genesis [ Wed Sep 29, 2004 12:39 am ] | ||||
Post subject: | |||||
Sys.Exec is a function, so you can't just stick it in the program on it's own. Like Coustos said, you have to do something with it's result. And like wtd said, functions have results for a reason. And like Coustos said again, it may not be necessary to use. But why not use it. To clarify that:
Will launch the Firefox browser. And if it doesn't work, say I didn't have Firefox installed, then it would return the error message: "There was a problem running this program, Error: File 'firefox.exe' not found." Coustos was saying that having that code was pointless, 'cause it wouldn't matter to the user to know that it didn't work. In which case:
Would work just the same, with no error message in the event that the .exe could not be run. Mod notice by Coutsos: RAAAAAARRRRRGGHHHH! IT IS SPELLED COUTSOS! YOU PRONOUNCE IT KOO-TSOES!! GYYYARRRRRRR!!!! Sorry to explode at you, it's just that it gets a bit annoying after a while. Now you know what to do if ever we meet in real life. |
Author: | Tony [ Wed Sep 29, 2004 12:57 am ] | ||
Post subject: | |||
well in larger projects it might be a good idea to have a debug going. Or say have two users levels - each having a specified level of feedback.
ofcourse the debug class is made up. Which btw is an interesting project for anyone bored. |
Author: | boredstudent3 [ Wed Sep 29, 2004 9:52 am ] |
Post subject: | |
so do i have to put the .exe file into the turing folder or will the command Sys.Exec find the file on the pc by itself?...i ask b/c i have my hdd partitioned into 2 seperate drives ,, but seeing that the example u people have provided for me which is great u just simply put Sys.Exec("firefox.exe") in b/w the if statements and is doesn't specify a location for the file so i'm just curious on this query. Thanks for your time boredstudent- |
Author: | Tony [ Wed Sep 29, 2004 11:09 am ] | ||
Post subject: | |||
if path is not specified, it will look in the execution folder. Otherwise its something like
notice the use of \\ |
Author: | wtd [ Wed Sep 29, 2004 11:09 am ] |
Post subject: | |
Though I don't actually know Turing, so it may do some kung fu I'm not aware of, the general rule is that an executable must either be in the same directory, or in a directory contained within the PATH environment variable. |
Author: | Mazer [ Wed Sep 29, 2004 12:53 pm ] |
Post subject: | |
You can give it a full path to the file, but you do not need double-back slashes. I could kill myself, and have it printed on my tombstone and nobody would remember this, but here it is: you CAN use single forward slashes! (If you want backslashes, they'll have to be double) |
Author: | Genesis [ Wed Sep 29, 2004 2:01 pm ] |
Post subject: | |
Actually if I run that code without specifying a directory, it still runs firefox. (Even though 'firefox.exe' is not in the main directory.) Though it makes more sense to have the path in there. And, Coutsos wrote: RAAAAAARRRRRGGHHHH! IT IS SPELLED COUTSOS! YOU PRONOUNCE IT KOO-TSOES!! GYYYARRRRRRR!!!!
Sorry to explode at you, it's just that it gets a bit annoying after a while. Now you know what to do if ever we meet in real life. I apologize. lol. I never noticed the spelling. |
Author: | Mazer [ Wed Sep 29, 2004 2:37 pm ] |
Post subject: | |
Don't worry about it, no harm done (unless I knew where you lived...) ![]() |
Author: | boredstudent3 [ Wed Sep 29, 2004 9:35 pm ] |
Post subject: | |
hmmm...turing if making prgm'ing hard b/c when i follow the format that u peeps give me it always gives me an error and directs me to the "if' line and says that the 'if' must be boolean type,,what does that mean?...am i missing sth in the if line: if not Sys.Exec("C:\\Program Files\\Mozilla Firefox\\firefox.exe") i've tried the same format of this line but replaced whatever was in the quotes w/ lab4.exe and after i hit F1 is says that if must be boolean...damnit,, boredstudent- |
Author: | Andy [ Thu Sep 30, 2004 1:05 pm ] |
Post subject: | |
Sys.Exec returns a value, so all u need to do is basicly set a variable to that ie var run:=Sys.Exec("C:\\Program Files\\Mozilla Firefox\\firefox.exe") |
Author: | wtd [ Thu Sep 30, 2004 1:42 pm ] | ||
Post subject: | |||
boredstudent3 wrote: hmmm...turing if making prgm'ing hard b/c when i follow the format that u peeps give me it always gives me an error and directs me to the "if' line and says that the 'if' must be boolean type,,what does that mean?...am i missing sth in the if line:
if not Sys.Exec("C:\\Program Files\\Mozilla Firefox\\firefox.exe") i've tried the same format of this line but replaced whatever was in the quotes w/ lab4.exe and after i hit F1 is says that if must be boolean...damnit,, boredstudent- Unless I'm mistaken (and that's entirely possible) such functions almost always return an integer value. This is because a boolean value can only indicate failure or success, but there are many ways a program can fail. Zero is typically reserved for success, and anything else is a code indicating which way the program failed. Try something like:
|
Author: | wtd [ Thu Sep 30, 2004 1:43 pm ] | ||
Post subject: | |||
dodge_tomahawk wrote: Sys.Exec returns a value, so all u need to do is basicly set a variable to that ie var run:=Sys.Exec("C:\\Program Files\\Mozilla Firefox\\firefox.exe")
Descriptive variable names are a good thing.
|
Author: | timmytheturtle [ Sun Oct 03, 2004 7:53 pm ] | ||
Post subject: | |||
try this one, your going to need a ie shortcut where u save this file before running.
|
Author: | Paul [ Sun Oct 03, 2004 8:48 pm ] |
Post subject: | |
wouldn't that just open alot of windows...? |
Author: | boredstudent3 [ Sun Oct 03, 2004 9:55 pm ] |
Post subject: | |
lol...what a prgm made by turtle,, if i made that into a turing stand alone prgm (.exe) and sent it to someone,,and once they open it up will it open like many IE windows on their pc until it crashed?...hah,,=) and since turtle said that i needed an IE shortcut wherever i saved the turing file will the IE shortcut on the other person's pc need to be in a certain place or just on their desktop?... boredstudent- |
Author: | timmytheturtle [ Sun Oct 03, 2004 10:13 pm ] |
Post subject: | |
Paul wrote: wouldn't that just open alot of windows...?
yes it does. boredstudent3 wrote: lol...what a prgm made by turtle,,
if i made that into a turing stand alone prgm (.exe) and sent it to someone,,and once they open it up will it open like many IE windows on their pc until it crashed?...hah,,=) and since turtle said that i needed an IE shortcut wherever i saved the turing file will the IE shortcut on the other person's pc need to be in a certain place or just on their desktop?... boredstudent- Im not sure if the icon has to be were the files saved, try to use a link right to the file (C:\program files\......). but if I make a .exe file and prevent the user from terminating it, they would either have to restart and close the process throug the Task Manager. I have another program that writes VERY LARGE blank arrays to junk binary files that take up alot of room. 3 people in my comp sci class ran it for 5 minutes and took up 4gb of the schools network harddrive space. What funny that was. |
Author: | DaVe g [ Mon Oct 04, 2004 6:09 am ] |
Post subject: | |
It's all here http://www.compsci.ca/v2/viewtopic.php?t=4077 |
Author: | boredstudent3 [ Thu Oct 07, 2004 12:48 pm ] |
Post subject: | |
well that post leads me to a code which allows me to shuitdwon and restart the pc, etc...but all i wanted to know how to do was eesentially have the user click on a button in turing and then it would open up an .exe file/prgm which i made in C,,this is b/c in my prgm'ing course i will be completing 2 assignments and thus i just want the GUi which i have created in turing to "host" these two C prgms,, nuff said...=) boredstudent- |
Author: | boredstudent3 [ Thu Oct 07, 2004 12:53 pm ] |
Post subject: | |
hey turtle how do i make turing .exe's so that the user can't terminate it?... is it sth i 'check off' in the menu to create a stand alone program? -bored |
Author: | Genesis [ Thu Oct 07, 2004 5:04 pm ] |
Post subject: | |
boredstudent3 wrote: hey turtle how do i make turing .exe's so that the user can't terminate it?...
is it sth i 'check off' in the menu to create a stand alone program? -bored When you compile it, there's a box that says "Allow user to terminate program." uncheck it. (Or maybe it's a box that you have to check...but that'll make it so they can't close it.) |
Author: | timmytheturtle [ Thu Oct 07, 2004 10:47 pm ] |
Post subject: | |
When compling it click the "Prevet User from Terminating Program" box and that will make it so the user must restart or use the task manager to end the process |
Author: | boredstudent3 [ Sun Oct 10, 2004 1:33 am ] |
Post subject: | |
ok peeps,,i've gotten the time to try sth in turing but it doesn't werk,,and what i mean by 'it doesn't werk' is that the .exe file won't start up when i run this code and click inside the button: setscreen ("graphics:640;480,nocursor") var x, y, bnum, bud : int drawbox (250,250,450, 450, black) buttonwait ("up", x, y, bnum, bud) if x >= 250 and x <= 450 and y >= 250 and y <= 450 then var success : int success := Sys.Exec ( "C:/Program Files/Internet Explorer/IEXPLORER.exe") else cls put "you missed the button" end if the IE window doesn't OPEN!!!,,,ARGH!...=(...like when i click on the button it just says "execution finished" in my turing window...please help me once again,, Thanks boredstudent- |
Author: | Genesis [ Sun Oct 10, 2004 2:37 am ] |
Post subject: | |
The problem is Turing stops reading the file name at the first space. So you have "C:/Program Files/Internet Explorer..." all Turing reads is "C:/Program" I forget how to write the paths so Turing includes spaces. It supposedly works with spaces, but it doesn't. (Not any version I've used at least.) |
Author: | wtd [ Sun Oct 10, 2004 2:42 am ] |
Post subject: | |
What happens if you escape the spaces with a backslash? |
Author: | Cervantes [ Sun Oct 10, 2004 7:15 am ] | ||
Post subject: | |||
After playing around with it for a few minutes, I got it to work this way:
first six characters followed by squigly line ( ~ ) followed by a 1. |
Author: | boredstudent3 [ Sun Oct 10, 2004 8:14 pm ] |
Post subject: | |
ok i don't really know what u mean by u got it to work cervantes,,i tried pasting that code into my turing but nth happened,was it supposed to open up a prgm?... like if i type in: setscreen ("graphics:640;480,nocursor") var x, y, bnum, bud : int drawbox (250,250,450, 450, black) buttonwait ("up", x, y, bnum, bud) if x >= 250 and x <= 450 and y >= 250 and y <= 450 then var success : int success := Sys.Exec ( "D:/lab3.exe") else cls put "you missed the button" end if ***Note the change in the Sys.Exec line brackets it WILL work and open up my C prgm .exe file which i compiled,, also i'm unsure if any of u ppl understand the C language and the Quincy compiler but when i have complied the .exe file and then start it up through windows explorer after the prgm has gotten it's inputs from the user in the DOS screen(yes my prgm runs in a DOS window b/c Quincy opens up one for the prgm) it will quickly display the outputs in the DOS screen but close itself after and thus u cna't see the outputs b/c it's too damn fast,,=( i was wondering if any one would know how to "stop" or "pause" the Dos window from closing on me so fast,,but if i run the prgm in the Quincy compiler itself,,after the prgm has ended it will tell u to hit a key to return to the source code screen and that means that the DOS window stays open until u punch a key which is what i essentially i want to do when i start the .exe file from "outside" of the Quincy compiler... ***maybe sth like the delay command in turing,,ie delay (3000) thanks for your help |
Author: | Cervantes [ Sun Oct 10, 2004 8:23 pm ] | ||
Post subject: | |||
Please make use of the
Did you copy and past what I wrote? Because if you did, you'd need an exe file called program in C:\Program Files for it to work. |
Author: | boredstudent3 [ Sun Oct 10, 2004 8:25 pm ] |
Post subject: | |
actually i think i know why turing will close the .exe file after it has finished executing... "When the Sys.Exec procedure is used, the executing program remains in memory while the command is executing, and once execution of the command is finished, control returns to the original program." ok,,so the question now is how can i stop control from returning to turing after the command of Sys.Exec has finished processing? |
Author: | Cervantes [ Sun Oct 10, 2004 8:42 pm ] | ||||
Post subject: | |||||
err, what version of turing are you using? I haven't experienced this closing the .exe once it's finished. does it do it for things like notepad?
or winipcfg
winipcfg is for pre XP computers I believe. On a side note, does anyone know the XP equivelent of winipcfg? |
Author: | boredstudent3 [ Sun Oct 10, 2004 8:55 pm ] |
Post subject: | |
turing release 3.0S october 1998,,i got it when i took a computer course gr9...lol... hmm,,funny thing,,when i put "notepad" in the Sys.Exec command line it opens up a DOS window and then it opens up a notepad window but notepad doesn't close!...yay!,,heh,,but how come my other .exe file closes?... |
Author: | Cervantes [ Mon Oct 11, 2004 8:38 am ] |
Post subject: | |
What is your other program? Internet Explorer? |
Author: | boredstudent3 [ Mon Oct 11, 2004 2:28 pm ] |
Post subject: | |
no i just tried to get turing to open up an IE window but it didn't werk and it's supposedly b/c of the length file name which contains spaces and thus turing only reads part of the line... |
Author: | Flea [ Mon Oct 11, 2004 3:33 pm ] |
Post subject: | |
if you know how many spaces there are, you can just get multiple variables on the same line and then combine them on the next line. i.e. "get var1,var2" |
Author: | Cervantes [ Mon Oct 11, 2004 5:07 pm ] | ||||
Post subject: | |||||
Well, boredstudent, if your internet explorer is here
you can use this:
that should work. |
Author: | boredstudent3 [ Mon Oct 11, 2004 7:55 pm ] | ||||||||
Post subject: | |||||||||
omg,,that does werk cervantes!!!...lol... ![]() it's nice and all,,but when i try replacing the
with
***wold it be possible to have turing just open up a DOS window and then have it type in:
b/c this is how u search in DOS and another alternative which i thought of to starting up the .exe file...but this will only werk if turing can type in things into DOS,,lol... |
Author: | Cervantes [ Mon Oct 11, 2004 8:44 pm ] |
Post subject: | |
I don't think turing can do that, no. Are you sure that its not that your program terminates on its own after doing whatever it does? either that, or try moving the file onto the c:/ though that probably woulldn't do anything. or maybe update turing.. I don't really know ![]() |
Author: | boredstudent3 [ Mon Oct 11, 2004 10:13 pm ] |
Post subject: | |
i'm thinking that it's the actual .exe file which is terminating on its own when it has finished processing,, i'll try the moving file onto my C: drive...i dun think that since i have the HDD partitioned it should make a difference but i'll try ne ways just for good measure... where can i get an update (possibly the latest version) of turing?...and if i do update it my prgm still should run though correct?...i dun see for any reason why it shouldn't...lol... ![]() |
Author: | Cervantes [ Tue Oct 12, 2004 12:18 am ] |
Post subject: | |
boredstudent3 wrote: and if i do update it my prgm still should run though correct?...i dun see for any reason why it shouldn't...lol...
![]() if you do update your program you should it still run through correct? do you mean, is the syntax the same? if so, yes. check the news forum if you're looking to update. |
Author: | wtd [ Tue Oct 12, 2004 12:38 am ] | ||
Post subject: | |||
For a program to be most maintainable given the possibility that files may move around, I suggest storing components of the file paths in variables.
|
Author: | boredstudent3 [ Fri Oct 15, 2004 9:11 am ] |
Post subject: | |
what can i type into Sys.Exec to have it open up a DOS window?...i've tried typing in 'dir' or 'DOS' but neither work,, thanks! |
Author: | Dan [ Fri Oct 15, 2004 1:58 pm ] |
Post subject: | |
i whould try "cmd" but i am not on windows right now nor do i have turing instaled so i could be wrong. |
Author: | timmytheturtle [ Fri Oct 15, 2004 2:34 pm ] | ||
Post subject: | |||
To open dos/command prompt through turing just type this in
|
Author: | boredstudent3 [ Sun Oct 24, 2004 12:00 am ] | ||
Post subject: | |||
this post is re: another different uring command which has been covered on this forum b4 but i don't think they quite address my problem,, i'm trying to just simply have a picture imported into turing and the purpos eof this pic is to serve as a background / backdrop whatever you want to interpret it as i've tried Pic.FileNew command but it seems to be giving me some trouble:
but yet i get some error when i run the program,,referring to the pm and copy part of the command Pic.Draw thanks for your time! boredstudent- |
Author: | Cervantes [ Sun Oct 24, 2004 7:08 am ] |
Post subject: | |
There are a few problems here. First, it's Pic.FileNew not Pic.NewFile. Second, your Pio.Draw line has too many parameters. Take out pm. Finally, it's not "Copy", it's "picCopy" hope that helps, |
Author: | boredstudent3 [ Sun Oct 24, 2004 4:18 pm ] |
Post subject: | |
cervantes: damn your good at turing commands and debugging!... hehe,,now it does werk for me,,thanks pal!!!...=) |
Author: | boredstudent3 [ Mon Oct 25, 2004 12:24 am ] | ||
Post subject: | |||
since turing won't play mp3 files,,any one know of a nice mp3 to wav converter?
|
Author: | Mazer [ Mon Oct 25, 2004 7:24 am ] |
Post subject: | |
Turing won't play mp3s?! What version do you have? As for your question, there are many such convertors available. I'd suggest looking through sourceforge for something nice (and free), and if you can't find anything you like there, try and find one that doesn't suck from download.com. Worst case scenario you could go with a trial version of musicmatch jukebox. |
Author: | the_short1 [ Mon Oct 25, 2004 10:06 am ] |
Post subject: | |
coutsos.. then why did u change yur name to such a anoying .. ahrd to spell name... go with emazer.. .. jeeze..!!! < refereing to post on first page where u exploded cuz of coustsos or something like that.. turing palys mp3s!!@!!!1 Music.PlayFile ("song.mp3") < pauses the prorgram to play the sound or if u have newest turing.. Music.PlayFileReturn ("song.mp3") < doesn;t stop the rest of the program to play the sound make shure ur path are correct.. if not u wont get an error.. but u wont hear anything,.. and to chagne between mp3 and wav... get AUDACITY from source forge... just point it to the lame_enc.dll from winamp plugin folder'!!!!! go winamp!!!!!! (except winamp 5.5 cuz its fucked rite now fo me.... i use 5.0..) <, the best musik player.. sepcially at school |
Author: | Mazer [ Mon Oct 25, 2004 11:56 am ] |
Post subject: | |
Pre 4.0 versions of Turing do not support MP3s. See here. |
Author: | boredstudent3 [ Mon Oct 25, 2004 2:13 pm ] |
Post subject: | |
yeah my turing version is like 3.0 or sth around that,,very old b/c i got it from skewl when i was taking computer engineering in grade 10...haha...so that was a few years ago,,but seeing no how they have many newer versions of turing,,can some1 give me a link where i can d/l a newer version of turing for free?... i've also noticed that in the latest release of turing u can have Sys.GetUserName and Sys.GetComputerName which is a pretty nice command,,but since i don't currently have the versiou of turing which can do this i cna't see the syntax for those two commands so could somebody please give me a link?...thanks alot peeps!... boredstudent- |
Author: | Cervantes [ Mon Oct 25, 2004 5:47 pm ] |
Post subject: | |
if you want an updated version of turing, you'd have to check through the turing 4.0.5 update section of the news forum. The Turing Reference wrote: Sys.GetComputerName Part of Sys module Syntax Sys.GetComputerName : string Description The Sys.GetComputerName function is used to determine the name of the computer. On the PC, this is the NetBIOS name. It returns "No Name" if a name could not be determined. Example This program outputs a greeting to the user . var computerName, userName : string computerName := Sys.GetComputerName userName := Sys.GetUserName put "Hello ", userName, " on ", computerName Status Exported qualified. This means that you can only call the function by calling Sys. GetComputerName, not by calling GetComputerName. See also Sys.GetUserName to obtain the user name of the user currently logged in. The Turing Reference wrote: Sys.GetUserName Part of Sys module Syntax Sys.GetUserName : string Description The Sys.GetUserName function is used to determine the name of the current user. It returns "Unknown" if a name could not be determined. Example This program outputs a greeting to the user . var computerName, userName : string computerName := Sys.GetComputerName userName := Sys.GetUserName put "Hello ", userName, " on ", computerName Status Exported qualified. This means that you can only call the function by calling Sys.GetUserName, not by calling GetUserName. See also Sys.GetComputerName to obtain the name of the computer. |
Author: | boredstudent3 [ Mon Oct 25, 2004 7:35 pm ] |
Post subject: | |
how come when i open my turing .t file which i used version 3.0S to create with the newer version of 4.0.5 all the graphic and Draw.Text positions and sizes are messed up and what i mean is out of proportion!...ARGH!,,does this mean that i'll have to do all this code-walk through and find new sizes for the fonts?...cuz all i did in the 3.0S version was put setscreen (and then define it as 640 by 480 in here) but how come when i use turing 4.0.5 to open it the damn thing is messed up...=((( |
Author: | Mazer [ Tue Oct 26, 2004 8:00 am ] |
Post subject: | |
That is quite weird. I remember something like that happening when I first switched over to 4.0. Well, yes, you might have to recode some things. |