Jump to content

MsgBox copy trick


Recommended Posts

Not too long ago, there was mention of a cool (but undocumented :ph34r: ) feature of AU3 MsgBox calls: you could copy the text to the clipboard by pressing CTRL+C when the MsgBox window had focus.

But now I can't seem to get it to work! I'm on v 3.0.100 .. has this feature been censored? If not, then what are the constraints and other secrets?

And if it is still around, it isn't mentioned in the MsgBox topic of the helpfile (yet :( ).

Link to comment
Share on other sites

I'm on NT4 (SP6) .. I wonder if that's where the issue lies? :(

Msgbox (0,"title","text")
    Msgbox (0 + 0 + 16,"title","text") ; Stop sign
    Msgbox (0 + 0 + 32,"title","text") ; Question
    Msgbox (0 + 0 + 48,"title","text") ; Exclamation
    Msgbox (0 + 0 + 64,"title","text") ; Info
    Msgbox (0 + 0 + 16,"title","text") ; Stop sign

    Msgbox (4096 + 1 + 16,"title","text") ; Stop sign
    Msgbox (4096 + 1 + 32,"title","text") ; Question
    Msgbox (4096 + 1 + 48,"title","text") ; Exclamation
    Msgbox (4096 + 1 + 64,"title","text") ; Info
    Msgbox (4096 + 1 + 16,"title","text") ; Stop sign

... I can't get any of these to work .. :ph34r:

Link to comment
Share on other sites

It's a Microsoft thing as far as I know (And also works on any standard message box from any application). That means it may not have been available on earlier versions of Windows.

Link to comment
Share on other sites

I'm on NT4 (SP6) .. I wonder if that's where the issue lies?  :lol:

Msgbox (0,"title","text")
    Msgbox (0 + 0 + 16,"title","text"); Stop sign
    Msgbox (0 + 0 + 32,"title","text"); Question
    Msgbox (0 + 0 + 48,"title","text"); Exclamation
    Msgbox (0 + 0 + 64,"title","text"); Info
    Msgbox (0 + 0 + 16,"title","text"); Stop sign

    Msgbox (4096 + 1 + 16,"title","text"); Stop sign
    Msgbox (4096 + 1 + 32,"title","text"); Question
    Msgbox (4096 + 1 + 48,"title","text"); Exclamation
    Msgbox (4096 + 1 + 64,"title","text"); Info
    Msgbox (4096 + 1 + 16,"title","text"); Stop sign

... I can't get any of these to work ..  :ph34r:

I made a test under NT4 and it was not working either. :(

I leave to expert to say why? (JOn,Valik,...)

Link to comment
Share on other sites

That explains why it does not work on my Windows 98 machine. :ph34r:

David Nuttall
Nuttall Computer Consulting

An Aquarius born during the Age of Aquarius

AutoIt allows me to re-invent the wheel so much faster.

I'm off to write a wizard, a wonderful wizard of odd...

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...