Author Topic: input box does not wait for input  (Read 3141 times)

DarkStar

  • Full Member
  • ***
  • Posts: 135
  • Scripts for Praise
    • CorpseCorp
input box does not wait for input
« on: December 03, 2007, 01:17:05 AM »
Code: [Select]
sub test()
MyValue = InpBox("Prompt","Title")
SendCommand "/echo -a MyValue: " & MyValue
end sub

this will echo the value imediately, instead of waiting for a value to be entered into the input box and then "ok" being pressed.
This message brought to you by the Wonderful Wizard of Oz.

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1971
    • IceChat IRC Client
Re: input box does not wait for input
« Reply #1 on: December 03, 2007, 07:51:23 AM »
Yes, the InpBox does not wait, but if you use the standard 'InputBox' method, it will.
InpBox was added, because it does not hang IceChat, waiting for a response.
The IceChat God

DarkStar

  • Full Member
  • ***
  • Posts: 135
  • Scripts for Praise
    • CorpseCorp
Re: input box does not wait for input
« Reply #2 on: December 03, 2007, 11:30:49 AM »
Is there a way then, to get the data from the Input box? Having it not cause Icechat to wait sounds like a good idea to me.
This message brought to you by the Wonderful Wizard of Oz.