legend Posted July 24, 2017 Share Posted July 24, 2017 (edited) I'm using the active directory udf by water. Is it possible to do something while a inputbox is on the screen? The thing is I want to open a connection to active directory (this can take up to 2 seconds), I don't want to wait before opening the inputbox, and i don't want to wait after the inputbox is gone. $@username= InputBox("username", "insert username", "") If @error Then Exit _AD_Open() Any suggestions? I don't think it's possible, but worth a shot.. Edited July 24, 2017 by legend Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted July 24, 2017 Moderators Share Posted July 24, 2017 @legend Inputbox is a blocking function, so there is no native way to two another action while it is up. You could create your own GUI for the input feature. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
legend Posted July 24, 2017 Author Share Posted July 24, 2017 11 minutes ago, JLogan3o13 said: @legend Inputbox is a blocking function, so there is no native way to two another action while it is up. You could create your own GUI for the input feature. That's actually not a bad idea Thank you Link to comment Share on other sites More sharing options...
TheDcoder Posted July 24, 2017 Share Posted July 24, 2017 Custom InputBox would be a really cool code snippet, I am tempted to make it myself EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
legend Posted July 24, 2017 Author Share Posted July 24, 2017 (edited) 17 hours ago, TheDcoder said: Custom InputBox would be a really cool code snippet, I am tempted to make it myself Func inputbox_gui($title, $content) #Region ### START Koda GUI section ### Form= $Form1 = GUICreate($title, 286, 160) $Label1 = GUICtrlCreateLabel($content, 16, 16, 45, 20) $Input1 = GUICtrlCreateInput("", 16, 56, 257, 24) $ok = GUICtrlCreateButton("Ok", 32, 104, 89, 33) $cancel = GUICtrlCreateButton("Cancel", 152, 104, 89, 33) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### Local $aAKeys[1][2] = [["{ENTER}", $ok]] GUISetAccelerators($aAKeys) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit case $ok $read_input = GUICtrlRead($Input1) guidelete($form1) Return($read_input) Case $cancel Exit EndSwitch WEnd EndFunc Edited July 25, 2017 by legend 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