RagnaroktA Posted November 16, 2006 Posted November 16, 2006 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
GaryFrost Posted November 16, 2006 Posted November 16, 2006 How about a label instead of an inputbox? SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
jvanegmond Posted November 16, 2006 Posted November 16, 2006 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. github.com/jvanegmond
RagnaroktA Posted November 16, 2006 Author Posted November 16, 2006 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
Valuater Posted November 16, 2006 Posted November 16, 2006 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)
Helge Posted November 16, 2006 Posted November 16, 2006 I found this in my scripts-folder, which kinda works like you want it to I believe. #include <GUIConstants.au3> GUICreate("", 120, 40) GUICtrlCreateEdit("Select me..", 10, 10, 100, 20, $ES_READONLY, $ES_MULTILINE) GUISetState() Do Until GUIGetMsg() = $GUI_EVENT_CLOSE
RagnaroktA Posted November 16, 2006 Author Posted November 16, 2006 maybe just use ...$var = "my text message"GUICtrlCreateLabel($var, 23, 73, 210, 20, $SS_SUNKEN)ClipPut($var)...then you just paste it where you want8)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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now