Author |
Message |
uberwalla
![](http://www.mac-help.com/images/starwars.gif)
|
Posted: Fri Dec 01, 2006 4:24 pm Post subject: Open, Write etc. |
|
|
ok so i read the tutorial that freakman made which was very helpful. (thx freakman if u read this)
anyways it said that all u need is this really to write to a file
[Turing]
var stream : int
open : stream, "filename.txt", put
put : stream, "test"
[/Turing]
anyways i was wondering if there is a way to write to the file without get statement so that u do not have a output window. so basically u run the program and type with no window and it saves that stuff to the file.
is there a way to do that? if so could i get some help plz
[/code] |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Clayton
![](http://compsci.ca/v3/uploads/user_avatars/1718239683472e5c8d7e617.jpg)
|
Posted: Fri Dec 01, 2006 4:50 pm Post subject: (No subject) |
|
|
there shouldn't be any run window opening when you are creating a text file.... perhaps you are doing something wrong?
NOTE: I don't have turing on this laptop (YAY! I finally got one ) so i may be wrong. |
|
|
|
|
![](images/spacer.gif) |
uberwalla
![](http://www.mac-help.com/images/starwars.gif)
|
Posted: Fri Dec 01, 2006 5:13 pm Post subject: (No subject) |
|
|
im not talking about just opening and placing code but like
if u use get statement or w.e it is
example
that opens a window automatically.
what i would like if possible is to somehow use something else that when the program runs itll keep tracl of what u type (kinda like a key logger) except im make a typing program where it gives u the phrase and then closes the screen then u get to type then opens when u hit enter or w.e then tells you what u got right. its kinda memorization with typing skills.
i dont got the whole code yet cuz im trying to work on the typing with window closed part first. any ideas? plz like is there a way to use input.keydown with the window closed to also call upon every keyoboard peice well numbers, punctuation, letters so that is writes them to a file? |
|
|
|
|
![](images/spacer.gif) |
uberwalla
![](http://www.mac-help.com/images/starwars.gif)
|
Posted: Fri Dec 01, 2006 11:13 pm Post subject: (No subject) |
|
|
ok so this is what i got so far/// what i want but i cant get it to have no output window. any suggestions?
code: |
var stream : int
var ch : string (1)
open : stream, "filename.txt", put
loop
getch (ch)
put : stream, ch
end loop
|
|
|
|
|
|
![](images/spacer.gif) |
ericfourfour
|
Posted: Sat Dec 02, 2006 12:25 am Post subject: (No subject) |
|
|
I think the default run window in Turing has to be visible to get input from the keyboard (even with Input.KeyDown). You can try using Window.Hide () but I think you will get an error. |
|
|
|
|
![](images/spacer.gif) |
uberwalla
![](http://www.mac-help.com/images/starwars.gif)
|
Posted: Sat Dec 02, 2006 12:26 am Post subject: (No subject) |
|
|
ok ill try it thx |
|
|
|
|
![](images/spacer.gif) |
uberwalla
![](http://www.mac-help.com/images/starwars.gif)
|
Posted: Sat Dec 02, 2006 12:29 am Post subject: (No subject) |
|
|
your right i did get an error it said u cannot input from keoboard into a hidden window or w.e, is there a way to surpass that and do it anyway ![Razz Razz](images/smiles/icon_razz.gif) |
|
|
|
|
![](images/spacer.gif) |
|