datkewlguy Posted January 23, 2006 Share Posted January 23, 2006 not sure if this should be posted here or in the gui section so i might post it twice... if anyone knows some of the quick ways to send commands to controls like edit boxes, such as undo, and select all... i guess i could always just send ^z or ^a to the box, but i was looking for less of messy way... thanks Link to comment Share on other sites More sharing options...
BigDod Posted January 23, 2006 Share Posted January 23, 2006 not sure if this should be posted here or in the gui section so i might post it twice...if anyone knows some of the quick ways to send commands to controls like edit boxes, such as undo, and select all... i guess i could always just send ^z or ^a to the box, but i was looking for less of messy way... thanksYou should lookup ControlClick in the help file. To find the control names etc you can use the AutoIt Window Info tool. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 23, 2006 Moderators Share Posted January 23, 2006 If your talking about your own GUI made with autoit, what's wrong with GUICtrlSetData()? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Nuffilein805 Posted January 23, 2006 Share Posted January 23, 2006 or guictrlread() just wanted to say something my little chatmy little encryption toolmy little hidermy unsafe clickbot Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 23, 2006 Moderators Share Posted January 23, 2006 or guictrlread() just wanted to say something ... well that's a good point though!! (Especially mixed with GUICtrlSetData() ) Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
tonedeaf Posted January 23, 2006 Share Posted January 23, 2006 (edited) Replace $Edit_1 with your edit box variable name.Select all (Selects all text - Ctrl+A)Dim $EM_SETSEL = 0x00B1 GUICtrlSetState($Edit_1, $GUI_FOCUS) GUICtrlSendMsg($Edit_1, $EM_SETSEL, 0, -1)Undo (Undos the last action - Ctrl+Z))Dim $WM_UNDO = 0x304 GUICtrlSetState($Edit_1, $GUI_FOCUS) GUICtrlSendMsg($Edit_1, $WM_UNDO, 0, 0)Copy (Copy the selected text to the clipboard - Ctrl+C)Dim $WM_COPY = 0x301 GUICtrlSetState($Edit_1, $GUI_FOCUS) GUICtrlSendMsg($Edit_1, $WM_COPY, 0, 0)Cut (Cut the selected text to the clipboard - Ctrl+X)Dim $WM_CUT = 0x300 GUICtrlSetState($Edit_1, $GUI_FOCUS) GUICtrlSendMsg($Edit_1, $WM_CUT, 0, 0)Paste (Pastes the text from the clipboard - Ctrl+V)Dim $WM_PASTE = 0x302 GUICtrlSetState($Edit_1, $GUI_FOCUS) GUICtrlSendMsg($Edit_1, $WM_PASTE, 0, 0) Edited January 23, 2006 by tonedeaf Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 23, 2006 Moderators Share Posted January 23, 2006 (edited) Errr... That's nice tonedeaf... I'll be honest, I'd not even seen those in the guiconstants.au3 Edit: I guess the reason is, because their not in there ... didn't notice you Dim'd them, thought they were comments. Edited January 23, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
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