Sign in to follow this  
Followers 0
trids

MsgBox copy trick

10 posts in this topic

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 :( ).

Share this post


Link to post
Share on other sites



I check with 3.0.100 or 3.0.101 which is the official release every thing OK under XP/SP1 :ph34r:

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

That feature is cool.

I wonder how it works (There's nothing selected).

It works with the new beta version.

Edited by SlimShady

Share this post


Link to post
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:

Share this post


Link to post
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.

Share this post


Link to post
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,...)

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Bit of googling turns up that this feature was introduced in Windows 2000.

Edit: First paragraph at this URL

Edited by Valik

Share this post


Link to post
Share on other sites

Bit of googling turns up that this feature was introduced in Windows 2000.

Edit: First paragraph at this URL

Thanks Valik :ph34r:

Share this post


Link to post
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...

Share this post


Link to post
Share on other sites

Yes, thanks for clearing that up, Valik - and thanks to everyone else who helped out too

<<< grumble, mutter, :ph34r: NT4, mutter >>>

Share this post


Link to post
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
Sign in to follow this  
Followers 0