Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Input Limited Choices?


  • Please log in to reply
2 replies to this topic
scouchman
  • Members
  • 50 posts
  • Last active: Jun 02 2015 10:34 PM
  • Joined: 28 Apr 2004
So I have an AHK script that can run through a password reset through HyperTerminal. I also have a script that will search for a user (Using InputBox to ask for the username) on the three servers available. (It outputs it to the screen, I'm not sure if AHK would be able to detect the correct server, based on what it shows).

What I would like to do is have a script that asks for the username (Using InputBox), and then prompt for you to choose one of the three servers (East, Cent, West) and then run through the actual change password.

I looked at MsgBox, hoping to have three buttons I could modify with my text, but I didn't see a way. Is there a way to do this? A different command? I'd take buttons or bullet point choices.

Right now, I'm debugging a nested IF sequence that uses InputBox to get the server name, and has the user type in the server. Is this the only way, right now?

Thanks.
Scott F Couchman

Beastmaster
  • Members
  • 191 posts
  • Last active: Apr 23 2007 02:58 PM
  • Joined: 15 Apr 2004
As I had a similar request, maybe your issue will get a higher priority on the magic "to do list" :wink: . Meanwhile check the workaround which has been provided by Chris already [more]

Chris
  • Administrators
  • 10727 posts
  • Last active:
  • Joined: 02 Mar 2004
That's the way to do it. That script can be downloaded here:
http://www.autohotke... ... nNames.htm

To have it use 3 buttons instead of 2, using a MsgBox option such as:
MsgBox, 2, , Abort/Retry/Ignore?

Then rename those buttons by following the example.