ainner Posted January 15, 2007 Posted January 15, 2007 I'm curently migrating Lotus Notes and I need the user to input his password in the middle of my script. My problem is that I need a way of knowing when the OK button is pressed. Is it possible to detect this event ?
BALA Posted January 15, 2007 Posted January 15, 2007 $confirm = MsgBox(0, "'ello!", "Blah Blah Blah-izzle") If $confirm = 1 Then ;add code here EndIf [font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com
Vindicator209 Posted January 15, 2007 Posted January 15, 2007 wouldnt you normally put it after the rest of the script after the msgbox? what exactly are you asking? if you mean like after an ok/cancle, try this out: Dim $iMsgBoxAnswer $iMsgBoxAnswer = MsgBox(65,"Title","Text") Select Case $iMsgBoxAnswer = 1 ;OK Case $iMsgBoxAnswer = 2 ;Cancel EndSelect if you mean an OK button that wasn't created by the script, then I have no idea XD [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center]
BALA Posted January 15, 2007 Posted January 15, 2007 Do you mean a GUI with a button titled OK? [font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com
ainner Posted January 16, 2007 Author Posted January 16, 2007 (edited) K let me reexplain this Lotus Notes display a login panel with a OK and cancel button (The OK button is not something I created in a msgbox... It belong to lotus notes) everytime you open the program. I would like to know when the user is pressing the OK button of that specific panel. Basicly I would like to be able to do this : While 1 If Button1 IsPressed = 1 Then Msgbox("Now I know you try to log in and I can continue my script once I made sure you entered the right password) Endif Wend Basicly how can I check If the user pressed that OK button onthe lotus login box... Edited January 16, 2007 by ainner
jvanegmond Posted January 16, 2007 Posted January 16, 2007 Try a Not WinExists() ? github.com/jvanegmond
MHz Posted January 16, 2007 Posted January 16, 2007 (edited) Setup your script to wait for the lotus window, set it to hide, then show your own messagebox to get the answer from the user, then pass the answer to the lotus window. You should then know who pressed what. Edited January 16, 2007 by MHz
Shevilie Posted January 16, 2007 Posted January 16, 2007 Well what does the loginbox open ?? Maybe wait for that ?? Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
PartyPooper Posted January 17, 2007 Posted January 17, 2007 Try something like this: #Include <Misc.au3> While 1 If _IsPressed("0D") Then ExitLoop Sleep(50) WEnd
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