代码之家  ›  专栏  ›  技术社区  ›  Brian Johnson

Windows:如何显示非阻塞警报/确认窗口?

  •  3
  • Brian Johnson  · 技术社区  · 16 年前

    如果需要编码,请提供示例或文档。语言可以是任何可编译的东西,而不需要介于两者之间的虚拟机。

    2 回复  |  直到 16 年前
        1
  •  4
  •   Roger Lipscombe    16 年前

    您可以使用 msg 工具:

    Send a message to a user.
    
    MSG {username | sessionname | sessionid | @filename | *}
        [/SERVER:servername] [/TIME:seconds] [/V] [/W] [message]
    
      username            Identifies the specified username.
      sessionname         The name of the session.
      sessionid           The ID of the session.
      @filename           Identifies a file containing a list of usernames,
                          sessionnames, and sessionids to send the message to.
      *                   Send message to all sessions on specified server.
      /SERVER:servername  server to contact (default is current).
      /TIME:seconds       Time delay to wait for receiver to acknowledge msg.
      /V                  Display information about actions being performed.
      /W                  Wait for response from user, useful with /V.
      message             Message to send.  If none specified, prompts for it
                          or reads from stdin.
    

    呼叫

    msg * Some text
    

    不会堵塞。如果需要,它还具有在设定时间后再次关闭消息框的良好功能。

    不过,顺便说一句,你不应该真的使用这些东西。Monologs(就像带有OK按钮的消息框)的信息效率为0%(参见Jef Raskin: 人性化界面 .第43条: Aza Raskin: Monolog Boxes and Transparent Messages Aza Raskin: Know When to Stop Designing, Quantitatively ).

        2
  •  4
  •   Joey Gumbo    16 年前
    start MessageBox.vbs
    

    …在哪里 MessageBox.vbs 包含对MsgBox函数的调用。