mbt masai
 
Welcome !
         

                                
After experiencing a lot of down time, We decided to move this site to CrystalTech.com. CrystalTech.com is powered by only the finest Windows servers providing the best performance, reliability, and value anywhere.

 Message Box with Timeout

Author Message
jeferson.propheta

  • Total Posts : 21
  • Scores: 0
  • Reward points : 0
  • Joined: 8/28/2007
  • Status: offline
Message Box with Timeout Thursday, August 30, 2007 3:50 AM (permalink)
0
'**************************************************************************************************************
'*   Time Out Message Sample                                                                                                                                                                            *
'*   -------------------------------------                                                                                                                                                                     *
'*   Written by: Jeferson Propheta                                                                                                                                                                     *
'*   July / 2007                                                                                                                                                                                                    *
'**************************************************************************************************************
Dim objFSO
set objFSO   = CreateObject("Scripting.FileSystemObject")
Set objShell = CreateObject("Wscript.Shell")

Wait 3, "Copying File - This will automatically close"
objFSO.CopyFile "c:\temp\filelist.txt", "c:\temp\filelist2.txt"

Wait 2, "Some Other Message . . ."
objShell.exec "c:\WINDOWS\system32\Calc.exe"


Sub Wait(Seconds, Message)
On Error Resume Next
Dim objFuncShell
If IsEmpty(objFuncShell) Then Set objFuncShell = CreateObject("wscript.shell")
objFuncShell.Popup Message, Seconds, "Title", 80000
End Sub

set objFSO = nothing


 '**************************************************************************************************************
 '*   Time Out Message Sample                                   
 '*   -------------------------------------                     
 '*   Written by: Jeferson Propheta      
 '*   July / 2007
 '**************************************************************************************************************
 Dim objFSO
 set objFSO   = CreateObject("Scripting.FileSystemObject")
 Set objShell = CreateObject("Wscript.Shell")
 
 Wait 3, "Copying File - This will automatically close"
 objFSO.CopyFile "c:\temp\filelist.txt", "c:\temp\filelist2.txt"
 
 Wait 2, "Some Other Message . . ."
 objShell.exec "c:\WINDOWS\system32\Calc.exe"
 
 
 Sub Wait(Seconds, Message)
 On Error Resume Next
 Dim objFuncShell
 If IsEmpty(objFuncShell) Then Set objFuncShell = CreateObject("wscript.shell")
 objFuncShell.Popup Message, Seconds, "Title", 80000
 End Sub
 
 set objFSO = nothing
 

<message edited by jeferson.propheta on Thursday, August 30, 2007 5:09 AM>
Wscript.Echo("Just4 Fun")
#1
    Meg

    • Total Posts : 123
    • Scores: 6
    • Reward points : 0
    • Joined: 7/13/2006
    • Location: Australia
    • Status: offline
    RE: Message Box with Timeout Tuesday, September 11, 2007 3:31 PM (permalink)
    0
    When I run it and there is an application already open that covers the centre part of the screen, i.e. notepad for instance, the first popup appears and closes and then notepad gets focus. The second popup hides behind notepad.
     
    The popup method seems to make the script loose focus? Is there a way around that? Tried appactivate.
    #2
      jeferson.propheta

      • Total Posts : 21
      • Scores: 0
      • Reward points : 0
      • Joined: 8/28/2007
      • Status: offline
      RE: Message Box with Timeout Friday, August 20, 2010 2:22 AM (permalink)
      0
      Meg


      When I run it and there is an application already open that covers the centre part of the screen, i.e. notepad for instance, the first popup appears and closes and then notepad gets focus. The second popup hides behind notepad.

      The popup method seems to make the script loose focus? Is there a way around that? Tried appactivate.


      better late than never
       
      just changed this line:
       from
       objFuncShell.Popup Message, Seconds, "Title", 8000
       to
       objFuncShell.Popup Message, Seconds, "Title", 4096
       
       
      Wscript.Echo("Just4 Fun")
      #3
        CØLLØSUS

        • Total Posts : 21
        • Scores: 0
        • Reward points : 0
        • Joined: 1/3/2011
        • Status: offline
        RE: Message Box with Timeout Thursday, January 06, 2011 10:18 PM (permalink)
        0
        it works.. Check out mine, And comment :)
        #4

          Online Bookmarks Sharing: Share/Bookmark

          Jump to:

          Current active users

          There are 0 members and 1 guests.

          Icon Legend and Permission

          • New Messages
          • No New Messages
          • Hot Topic w/ New Messages
          • Hot Topic w/o New Messages
          • Locked w/ New Messages
          • Locked w/o New Messages
          • Read Message
          • Post New Thread
          • Reply to message
          • Post New Poll
          • Submit Vote
          • Post reward post
          • Delete my own posts
          • Delete my own threads
          • Rate post

          2000-2012 ASPPlayground.NET Forum Version 3.8
          mbt shoes www.wileywilson.com