Computer Science Canada Open, Write etc. |
Author: | uberwalla [ 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] |
Author: | Clayton [ Fri Dec 01, 2006 4:50 pm ] |
Post 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 ![]() |
Author: | uberwalla [ Fri Dec 01, 2006 5:13 pm ] | ||
Post 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? |
Author: | uberwalla [ Fri Dec 01, 2006 11:13 pm ] | ||
Post 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?
|
Author: | ericfourfour [ Sat Dec 02, 2006 12:25 am ] |
Post 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. |
Author: | uberwalla [ Sat Dec 02, 2006 12:26 am ] |
Post subject: | |
ok ill try it ![]() |
Author: | uberwalla [ Sat Dec 02, 2006 12:29 am ] |
Post subject: | |
your right i did get an error ![]() ![]() |