Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

insert variable window


  • Please log in to reply
3 replies to this topic

#1 SovietGhost

SovietGhost

    Seeker

  • Active Members
  • 17 posts

Posted 26 May 2008 - 05:38 PM

is there anyway of the script ask for the user to insert a variable on a windows?
ie:

i start the ai program and it popup a window with: "Please insert the current data:"

then i'd like to place that awser into a $data1 variable

any idea, masters?







#2 sandin

sandin

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 569 posts

Posted 26 May 2008 - 05:48 PM

$variable = InputBox("title", "I ask for XXX data:")


#3 SovietGhost

SovietGhost

    Seeker

  • Active Members
  • 17 posts

Posted 26 May 2008 - 05:56 PM

$variable = InputBox("title", "I ask for XXX data:")


great... ty...

if i want to confirm that in anoher popup like:

you inserted data = xxx ($data)

is that correct?
Yes / no


is it possible too?

#4 PsaltyDS

PsaltyDS

    Most Venerable Penguin

  • MVPs
  • 13,279 posts

Posted 26 May 2008 - 06:15 PM

great... ty...

if i want to confirm that in anoher popup like:

you inserted data = xxx ($data)

is that correct?
Yes / no


is it possible too?

Like this:
While 1     $variable = InputBox("title", "I ask for XXX data:")     If MsgBox(32 + 4, "Verify", "You entered: " & $variable & @CRLF & _             "Is this correct?") = 6 Then ExitLoop WEnd MsgBox(64, "Selected", "Selected value was: " & $variable)


:)
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users