Icy Posted February 1, 2017 Share Posted February 1, 2017 Hello guys, I need your help. I would like to add a mechanism to my script that when this particular action is called, small window would pop up on the screen asking for me to input a number (from 1 - 1000), and when I would press OK, it would define $NUMB variable and script would continue as usual. Is there a way to do it and how? Thanks in advance for all your help. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 1, 2017 Moderators Share Posted February 1, 2017 Icy, InputBox would seem to be what you are looking for. M23 Icy 1 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Icy Posted February 1, 2017 Author Share Posted February 1, 2017 (edited) Thank you, I will give it a try. Edit: It worked like a charm, thank you for leading me to the function. Edited February 1, 2017 by Icy Link to comment Share on other sites More sharing options...
Icy Posted February 4, 2017 Author Share Posted February 4, 2017 Hello again, I would like to ask: Is there a way to do the same thing as before, but instead of inputting a number, it would ask for a YES or NO answer, where YES = would equal to 1 and NO would equal to 0 in our defined variable? That would be really helpful as well. Link to comment Share on other sites More sharing options...
Subz Posted February 4, 2017 Share Posted February 4, 2017 You can use a MsgBox for example: Local $bVar $iMsgBox = MsgBox(36, 'Question', 'Do you like Broccoli?') If $iMsgBox = 6 Then $bVar = True Else $bVar = False Endif Link to comment Share on other sites More sharing options...
Icy Posted February 4, 2017 Author Share Posted February 4, 2017 Thank you The answer is yes. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now