Book a Demo

Author Topic: JScript, how to sleep for some time  (Read 7754 times)

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
JScript, how to sleep for some time
« on: August 09, 2013, 03:28:53 am »
Hello,

I want the Script to sleep some time. How can I achieve this?

WshScript has the possibility. I haven't found something to create a WshScript Object. In JScripts I can write down the commands to WshScript without Creating an Object. But in the EA Environment the name is unknown.

May be there is another way to sleep.

Thanks,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: JScript, how to sleep for some time
« Reply #1 on: August 09, 2013, 09:30:45 am »
Use a busy loop. That will also glow out old bits from your CPU :D

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: JScript, how to sleep for some time
« Reply #3 on: August 09, 2013, 02:45:48 pm »
Hi Simon,

thanks for your advice.

The WScript object isn't available and there is no name WScript in the EA JScript environment available.

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: JScript, how to sleep for some time
« Reply #4 on: August 09, 2013, 03:45:28 pm »
Hi qwerty,

thanks a lot. I wanted to avoid it.

Helmut

Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: JScript, how to sleep for some time
« Reply #5 on: August 09, 2013, 08:23:21 pm »
I know. It was just a joke :-)

q.