Sign in to follow this  
Followers 0
RagnaroktA

Input Box Questions

7 posts in this topic

I'm trying to make an input box. I dont want it to allow any editing of the text inside, but I want people to be able to copy the contents from it. I thought making it read only would do the trick, but that wont allow copying. Any ideas?


Current Projects:Remote Administration Suite Updated! 12-20-07Remote User State Migration Tool (Plugin) Updated! 12-20-07Batch Print Wizard Updated! 12-20-07Links:AutoIt Beta | AutoIt Wiki

Share this post


Link to post
Share on other sites



I often use InputBox for the same thing. Although, I do not capture the return value from the InputBox, and it does not matter what a user enters..

If you want to do this the right way, create a label with a sunken style and a white background. Good luck.

Share this post


Link to post
Share on other sites

Thanks to you both for your quick responses, and your help.

So essentially, what I would need to do is the following (minus the white background):

GUICtrlCreateLabel("", 23, 73, 210, 20, $SS_SUNKEN)

This wont let me copy the contents of the label either... I wasnt really aware you could copy the contents of a label in the first place. What am I doing wrong?


Current Projects:Remote Administration Suite Updated! 12-20-07Remote User State Migration Tool (Plugin) Updated! 12-20-07Batch Print Wizard Updated! 12-20-07Links:AutoIt Beta | AutoIt Wiki

Share this post


Link to post
Share on other sites

maybe just use ...

$var = "my text message"

GUICtrlCreateLabel($var, 23, 73, 210, 20, $SS_SUNKEN)

ClipPut($var)

...

then you just paste it where you want

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

maybe just use ...

$var = "my text message"

GUICtrlCreateLabel($var, 23, 73, 210, 20, $SS_SUNKEN)

ClipPut($var)

...

then you just paste it where you want

8)

Whelp, that's certainly not a bad idea... Only problem I forsee is this: the program I'm writing has multiple variables on each page. It's a "if you want to copy the info, you can" thing, not a "copy all the time" thing. What I might do is use your suggestion, and put in a "Copy" button or something on each value... Unless someone else has an answer?

(Thanks Val)


Current Projects:Remote Administration Suite Updated! 12-20-07Remote User State Migration Tool (Plugin) Updated! 12-20-07Batch Print Wizard Updated! 12-20-07Links:AutoIt Beta | AutoIt Wiki

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