Jump to content
Sign in to follow this  
ToyBoi

a confirmation box which doesn't interrupt

Recommended Posts

ToyBoi

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
Szhlopp

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.