Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Screensaver
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
gohan




PostPosted: Thu Apr 21, 2005 9:18 am   Post subject: Screensaver

ok....my project simple asks to make a screensaver, but you can not press the run button to start it. It has too start by itself, and i have NO CLUE on how to get it to start itself. Let alone end it as well.


And here another problem.... the screensaver should not stop until you enter a password. Mad

So. Plzzzz...someone help.

I Would be greatly appreciated
Sponsor
Sponsor
Sponsor
sponsor
TheEvilOne




PostPosted: Thu Apr 21, 2005 9:26 am   Post subject: (No subject)

Well.. the running on its own, im not so sure of...

but, I know im going to get flamed for this, but you can fork a process.
You could fork a process, then run the screensaver animation in that process. In your main process you could have a getch, or input.pause or something that waits for user input. When they hit a button, you could make a Window.Open command that asks for a password, and compare it, if the password is right, exit the fork.

Once again, ill probably get flamed for proposing such blasphemy =X
gohan




PostPosted: Thu Apr 21, 2005 11:21 am   Post subject: (No subject)

thnx for the info on the password part...but that is only half the problem...can anyone else tell me how to get a program to start by itself without pressing the RUN button, or F1.

Plzzz...and thnx
jamonathin




PostPosted: Thu Apr 21, 2005 11:49 am   Post subject: (No subject)

code:
put Sys.Exec("program name.exe")

you'll have to compile it first obviously.

or if you mean just run by itself, no turing, just compile it, and I'm sure you can have your computer run it on a timer, or when your computer boots up have it run the compiled program.
[Gandalf]




PostPosted: Thu Apr 21, 2005 3:32 pm   Post subject: (No subject)

Put it in the "startup" folder Very Happy or just use a macro or something...

You can't just have the program run by doing nothing... You need some sort of input.

Also, I dont see the point of
put Sys.Exec("program name.exe")

Why have that if you're already running the program?
Cervantes




PostPosted: Thu Apr 21, 2005 4:02 pm   Post subject: (No subject)

http://www.wischik.com/scr/howtoscr.html
You need to make an executable of your code and rename it as a .scr. You'll also have to do some extra stuff, as detailed in there (I think. I haven't read much of it. Wink)
gohan




PostPosted: Fri Apr 22, 2005 8:32 am   Post subject: (No subject)

Yesss...i got the password part of the screensaver....but now..I,m working on the open the window part of it.

I think i may still need to get help with it...

I don't the part of

put Sys.Exec("program name.exe")

I think i would still need to start a program for it to begin.
Wow...this a difficult project...but it is fun cause I'm really really enjoying turning....

Can't wait for the FINAL Project.......HA HA HA

Thnx for the updates so far pplz....
I still need help...lol.... Smile
balldragger




PostPosted: Fri Apr 22, 2005 5:03 pm   Post subject: (No subject)

just go to run then Generate stand-alone program and then it will save it as an exe file and should execute when u open it

i dont know if that would solve your problem but its a sugestion
Sponsor
Sponsor
Sponsor
sponsor
Lazarus




PostPosted: Sat Apr 23, 2005 5:02 pm   Post subject: (No subject)

Generate a stand-alone, it will be compiled as an executable, rename the extension to ".scr" and try to open it that way, if it works, open display settings, go to screensaver and click on browse, locate your file (the scr one) then click on settings, it gives you a password option etc.
jamonathin




PostPosted: Sat Apr 23, 2005 5:02 pm   Post subject: (No subject)

[Gandalf] wrote:

Also, I dont see the point of
put Sys.Exec("program name.exe")

Why have that if you're already running the program?

That's why i suggested this.
I wrote:

or if you mean just run by itself, no turing, just compile it, and I'm sure you can have your computer run it on a timer, or when your computer boots up have it run the compiled program.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 10 Posts ]
Jump to:   


Style:  
Search: