AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Please another help from the experts

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
ahk_man



Joined: 20 Jun 2004
Posts: 39

PostPosted: Mon Sep 06, 2004 5:02 pm    Post subject: Please another help from the experts Reply with quote

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
View user's profile Send private message
Jon



Joined: 28 Apr 2004
Posts: 373

PostPosted: Mon Sep 06, 2004 5:12 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Guest






PostPosted: Mon Sep 06, 2004 5:39 pm    Post subject: thanks Reply with quote

Thanks a lot Jon!
Back to top
ahk_man



Joined: 20 Jun 2004
Posts: 39

PostPosted: Mon Sep 06, 2004 5:58 pm    Post subject: please help Reply with quote

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
View user's profile Send private message
Jon



Joined: 28 Apr 2004
Posts: 373

PostPosted: Mon Sep 06, 2004 11:11 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Guest






PostPosted: Tue Sep 07, 2004 3:31 am    Post subject: Thanks Jon Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group