Sign in to follow this  
Followers 0
ToyBoi

a confirmation box which doesn't interrupt

2 posts in this topic

Hi guys, i have a web automating tool which starts an IE instance and navigates and does its thing

then it needs the user to make some inputs and click some options, this is the part where the autoit needs to pause with a pop up box for the user to see and after the user has made the appropriate changes, the user should click on ok from the confirmation box to resume.

Is something like this possible, and if so what are some of the commands? I did some search on the help file, but I couldn't find anything

Share this post


Link to post
Share on other sites



Hi guys, i have a web automating tool which starts an IE instance and navigates and does its thing

then it needs the user to make some inputs and click some options, this is the part where the autoit needs to pause with a pop up box for the user to see and after the user has made the appropriate changes, the user should click on ok from the confirmation box to resume.

Is something like this possible, and if so what are some of the commands? I did some search on the help file, but I couldn't find anything

'Msgbox' automatically pauses the script and waits for the "OK" button to be pressed.

You could use the tray icon. Which might be easier:

TrayTip("Input", "When you are finished, click here to resume", 3)
$TrayResume = TrayCreateMenu("Resume")
$TrayExit = TrayCreateItem("Exit", $TrayResume)

while 1
    Switch TrayGetMsg()
        
        Case $TrayResume
            ExitLoop
            
            
    EndSwitch
    
WEnd

ResumeApp() ; A function, or you could just continue the code here...

Share this post


Link to post
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
Sign in to follow this  
Followers 0