 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
ahk_man
Joined: 20 Jun 2004 Posts: 39
|
Posted: Mon Sep 06, 2004 5:02 pm Post subject: Please another help from the experts |
|
|
How can I make the msgbox always stay on the foreground? In other words I want it to stay active in the front even though user click somewhere else that might bring other application up to cover it.
For example:
Msgbox,4,Confirmation!,Click Ok to confirm
Ifmsgbox,no
{
ExitApp
}
Run,notepad
I want that message box to always be on the front. |
|
| Back to top |
|
 |
Jon
Joined: 28 Apr 2004 Posts: 373
|
Posted: Mon Sep 06, 2004 5:12 pm Post subject: |
|
|
I think this is the best way-
| Code: | #persistent
SetTimer, ontop, 250
Msgbox,4,Confirmation!,Click Ok to confirm
SetTimer, ontop, off
Ifmsgbox,no
{
ExitApp
}
else
{
Run,notepad
}
ontop:
WinSet, AlwaysOnTop, on, Confirmation!
|
|
|
| Back to top |
|
 |
Guest
|
Posted: Mon Sep 06, 2004 5:39 pm Post subject: thanks |
|
|
| Thanks a lot Jon! |
|
| Back to top |
|
 |
ahk_man
Joined: 20 Jun 2004 Posts: 39
|
Posted: Mon Sep 06, 2004 5:58 pm Post subject: please help |
|
|
Jon or chris or any expert,
Here is my script: I want it to stay on the top like the previous example shown,however, my script has a hotkey. I don't know how to make it work.
F2::
Send,abc
hotkey,F2,off
msgbox,4,Confirmation,Do you want to display abc again?.
ifmsgbox,no
{
msgbox,4,Confirmation2,Click Yes will
let you go back. `nClick No will exit out the application
ifmsgbox,no
{
F3::ExitApp
}
hotkey,F2,on
}
hotkey,F2,on |
|
| Back to top |
|
 |
Jon
Joined: 28 Apr 2004 Posts: 373
|
Posted: Mon Sep 06, 2004 11:11 pm Post subject: |
|
|
This is how you would make the message boxes stay ontop-
| Code: | F2::
Send,abc
hotkey,F2,off
SetTimer, ontop, 250
msgbox,4,Confirmation,Do you want to display abc again?.
ifmsgbox,no
{
msgbox,4,Confirmation,Click Yes will let you go back. `nClick No will exit out the application
ifmsgbox,no
{
ExitApp
}
hotkey,F2,on
}
hotkey,F2,on
return
ontop:
WinSet, AlwaysOnTop, on, Confirmation |
I found your script a bit confusing so I don't know if that is what you want it to do. Let me know if it isn't. |
|
| Back to top |
|
 |
Guest
|
Posted: Tue Sep 07, 2004 3:31 am Post subject: Thanks Jon |
|
|
| Hey Jon Thanks a lot!!!!!!!! You just saved me a lot of time reading the tutorial. And yes, that is what I want my script to do. it worked wonderfully now. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|