Jump to content
Sign in to follow this  
johna007

How can i close a msgBox in a program

Recommended Posts

johna007

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

Share this post


Link to post
Share on other sites
Jos

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 Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
johna007

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

Share this post


Link to post
Share on other sites
Jos

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 Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Neoborn

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

Share this post


Link to post
Share on other sites
Jos

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 Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
johna007

That does the trick!

Thank you for your help.

:)

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  

×