View previous topic :: View next topic |
Author |
Message |
gallomk Newbie cheater
Reputation: 0
Joined: 13 Feb 2016 Posts: 15
|
Posted: Wed Feb 24, 2016 2:03 am Post subject: script by time for the trainer is closed? |
|
|
script to add airtime to trainer and close?
|
|
Back to top |
|
 |
LastExceed Expert Cheater
Reputation: 1
Joined: 05 Nov 2014 Posts: 130
|
Posted: Wed Feb 24, 2016 8:00 am Post subject: Re: script by time for the trainer is closed? |
|
|
gallomk wrote: | script to add airtime to trainer and close? |
I have trouble understanding what you are looking for, please explicate.
|
|
Back to top |
|
 |
gallomk Newbie cheater
Reputation: 0
Joined: 13 Feb 2016 Posts: 15
|
Posted: Wed Feb 24, 2016 8:46 am Post subject: Re: script by time for the trainer is closed? |
|
|
chris20194 wrote: | gallomk wrote: | script to add airtime to trainer and close? |
I have trouble understanding what you are looking for, please explicate. |
use it for some time and it closes.
Sorry for the bad expression.
Description: |
|
Filesize: |
34.97 KB |
Viewed: |
6127 Time(s) |

|
|
|
Back to top |
|
 |
LastExceed Expert Cheater
Reputation: 1
Joined: 05 Nov 2014 Posts: 130
|
Posted: Wed Feb 24, 2016 10:00 am Post subject: |
|
|
Ah I get it now:
Code: | sleep(600000)
closeCE() |
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25796 Location: The netherlands
|
Posted: Wed Feb 24, 2016 10:24 am Post subject: |
|
|
i recommend running that in a thread , else look into the timer object
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
gallomk Newbie cheater
Reputation: 0
Joined: 13 Feb 2016 Posts: 15
|
Posted: Wed Feb 24, 2016 11:34 am Post subject: |
|
|
chris20194 wrote: | Ah I get it now:
Code: | sleep(600000)
closeCE() |
|
Thank you!
Dark Byte wrote: | i recommend running that in a thread , else look into the timer object |
Code: | function CloseTrainer()
sleep(600)
form_hide(MainGUI_1)
closeCE()
end
|
when I close the Triner takes that time. as I get it closes automatically after some time?
sorry for my bad English!
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25796 Location: The netherlands
|
Posted: Wed Feb 24, 2016 12:04 pm Post subject: |
|
|
sleep will freeze the thread it runs for the given amount in milliseconds (600000 ms = 600 seconds = 10 minutes)
calling sleep in the thread that handles user input will stop it from responding to mouse clicks, keyboard input, repaint request, etc... for the given amount of time
that is why i suggest createNativeThread, or the Timer object (interval is in milliseconds as well)
edit:you actually want it to wait after closing?
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
gallomk Newbie cheater
Reputation: 0
Joined: 13 Feb 2016 Posts: 15
|
Posted: Wed Feb 24, 2016 12:48 pm Post subject: |
|
|
Dark Byte wrote: | sleep will freeze the thread it runs for the given amount in milliseconds (600000 ms = 600 seconds = 10 minutes)
calling sleep in the thread that handles user input will stop it from responding to mouse clicks, keyboard input, repaint request, etc... for the given amount of time
that is why i suggest createNativeThread, or the Timer object (interval is in milliseconds as well)
edit:you actually want it to wait after closing? |
open the trainer and closes 10 minutes only
java example
Code: | <script language="JavaScript">
function cerrar() {
var ventana = window.self;
ventana.opener = window.self;
ventana.close();
}
setTimeout('cerrar()',5000); //5000 = 5 segundos.
</script>
|
|
|
Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Wed Feb 24, 2016 1:08 pm Post subject: |
|
|
I think he's wanting to make a 10-minute demo trainer. Although, I'm not sure how practical that would be.
Do as DB suggested and use create thread.
|
|
Back to top |
|
 |
gallomk Newbie cheater
Reputation: 0
Joined: 13 Feb 2016 Posts: 15
|
Posted: Wed Feb 24, 2016 1:12 pm Post subject: |
|
|
++METHOS wrote: | I think he's wanting to make a 10-minute demo trainer. Although, I'm not sure how practical that would be.
Do as DB suggested and use create thread. |
10 minutes of use and closes only
Description: |
|
Filesize: |
33.5 KB |
Viewed: |
6052 Time(s) |

|
|
|
Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Wed Feb 24, 2016 1:16 pm Post subject: |
|
|
Yes...that's a demo trainer. But why? What will stop people from reopening the trainer?
|
|
Back to top |
|
 |
gallomk Newbie cheater
Reputation: 0
Joined: 13 Feb 2016 Posts: 15
|
Posted: Wed Feb 24, 2016 3:12 pm Post subject: |
|
|
++METHOS wrote: | Yes...that's a demo trainer. But why? What will stop people from reopening the trainer? |
and why not? ¯\_(ツ)_/¯
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Wed Feb 24, 2016 7:27 pm Post subject: |
|
|
Code: | t=createTimer(nil, false)
t.Interval=1000*60*10
t.OnTimer=function(t)
closeCE()
end
t.Enabled=true |
|
|
Back to top |
|
 |
|