Jump to content

How can i close a msgBox in a program


Recommended Posts

My program opens a msgbox by

AdlibEnable("mainprog")

MsgBox(4096, "", "Press OK to Stop",)

Exit

Func mainprog()

;... My program code goes here

;... when i need to Close MsgBox

EndFunc

How can i close the Msgbox inside the Func mainprog()

John

Link to comment
Share on other sites

  • Developers

My program opens a msgbox by

AdlibEnable("mainprog")

MsgBox(4096, "", "Press OK to Stop",)

Exit

Func mainprog()

   

        ;...  My program code goes here

        ;...  when i need to Close MsgBox

   

EndFunc

How can i close the Msgbox inside the Func mainprog()

John

<{POST_SNAPBACK}>

You can not accomplish it this way... only when you shell a second program that does it for you....

But why would you want to do something like this in the first place ?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

Opening a msgbox this way it is allways visible on screen,even if the focus

is on another window.

Is there a another way to make a non focus control box allways visible on screen ?

John

<{POST_SNAPBACK}>

Try SplashTextOn () and if that does what you want. MsgBox() is a blocking function, SplashTextOn () make a extra window popup with the TopMost attribute, and stays there till SplashTextOff ()...

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

what does that mean a " blocking function" as opposed to whatever this SplashTextOn does? What is SplashTextOn if it's not a blocking function?

Thanks :)

~Projects~1. iPod Ejector 1.0 - Tool Used To Eject iPod in Windows - Uses DevEject.exe :P2. SmartFTP Close Popup Tool - Closes reminders from freeware SmartFTP.~Helpful Links For New Users~1. LXP's Learning AutoIT PDF Guide - <<< Go here for a PDF Guide on learning AutoIT from the ground up!<<<2. AutoIt 1-2-3 <<<Want to learn more about AutoIT quickly? Go Here<<<3. How To Install The Beta And Production Versions Of AutoIT / SciteAutoIT

Link to comment
Share on other sites

  • Developers

what does that mean a " blocking function" as opposed to whatever this SplashTextOn does? What is SplashTextOn if it's not a blocking function?

Thanks :)

<{POST_SNAPBACK}>

msgbox blocks the script processing until the msgbox is closed.

SlashTextOn displays a window with text and the script continues executing..

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...