Jump to content

My script using inputbox is not working...


Go to solution Solved by redpicker,

Recommended Posts

I am trying to get some simple input from a user.

I'm trying to use the inputbox() function.  It was working and then it stopped.

I've included the code below.  I've tried it interpreted and compiled and on multiple machines with the same result it displays the msgbox, but never the inputbox.

Oh my dev system is a Dell m6800 laptop, running windows 8.1 enterprise

#include <MsgBoxConstants.au3>
Local $sAnswer

;$sAnswer = InputBox("Backup Single User by ID", "Enter User ID of Single User to Migrate?", "", "", -1, -1,-1, -1, 30)

$sAnswer = InputBox("TITLE", "Type Something","","",-1, -1, -1, -1 )

MsgBox($MB_SYSTEMMODAL, "", $sAnswer)
Edited by Chuckconnor
Link to comment
Share on other sites

  • Solution

OK, you have to replace the last two -1's with "Default"

Like this

#include <MsgBoxConstants.au3>

Local $sAnswer

$sAnswer = InputBox("TITLE", "","", "" ,-1,-1,Default,Default, 30 )

MsgBox($MB_SYSTEMMODAL, "", $sAnswer)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...