Book a Demo

Author Topic: user input in script  (Read 3667 times)

Cisore

  • EA User
  • **
  • Posts: 67
  • Karma: +0/-0
    • View Profile
user input in script
« on: June 06, 2012, 07:10:26 pm »
It's possible, during the run of one script, to ask at the client to give name ?

For example: when I run script, this ask me one name and create class with the name how I given.

(qwerty I wait your book on the script with impatience !  ;))

Thanks,

Cisore

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: user input in script
« Reply #1 on: June 06, 2012, 08:20:55 pm »
It depends on the language/runtime support you're using. Usually you can issue system message boxes. Dialog boxes need a bit more (e.g. QT framework or the like). Some VB dialects have build-in dialog composers.

q.

P.S. I may publish a pre-release of my book during the week: http://leanpub.com/ScriptingEA At it's by far not ready I will make an early subscription price. That means you get all further updated for free. As soon as it's fed up the price will adjust upwards.

Cisore

  • EA User
  • **
  • Posts: 67
  • Karma: +0/-0
    • View Profile
Re: user input in script
« Reply #2 on: June 06, 2012, 08:53:00 pm »
I find !

Code: [Select]
dim nomAct
nomAct = InputBox("description","title", "default value")

Thanks