ghareeb Posted May 19, 2005 Share Posted May 19, 2005 how can i add some text in beginning of marked text in Edit control for the GUI ? i want to mark some text with the mouse, and add some text in beginning of marked text when i bush a key???!! example: my name is ssssss. i want edit to my name is eng.sssss i find that User Defined Function called ((_GUICtrlEditReplaceSel)) ; but it replace text i want to add some text!!! help me please Are you read anything about islamok.... to know about realy Islamhttp://www.islam-guide.com click here====>Islam: Misunderstood throughout the World Link to comment Share on other sites More sharing options...
GaryFrost Posted May 19, 2005 Share Posted May 19, 2005 don't mark the text, just put your cursor at the beggining of that text and use the function _GUICtrlEditReplaceSel SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
ghareeb Posted May 19, 2005 Author Share Posted May 19, 2005 (edited) thank u (gafrost) for fast answer but i need that action (marked text) bcz i add some same text in beginning and in end of marked text in one step Edited May 19, 2005 by ghareeb Are you read anything about islamok.... to know about realy Islamhttp://www.islam-guide.com click here====>Islam: Misunderstood throughout the World Link to comment Share on other sites More sharing options...
GaryFrost Posted May 19, 2005 Share Posted May 19, 2005 currently, no, now if someone can come up with a way would be more than happy to make it into a udf like the others. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted May 19, 2005 Share Posted May 19, 2005 thought, copy the selected text append that to prefix string, append post string then send _GUICtrlEditReplaceSel SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
ghareeb Posted May 19, 2005 Author Share Posted May 19, 2005 i tried this way but the word that last copy is still in the memory when i finish so, when i put my cursor any where and push my buttom --->is paste same last copy Are you read anything about islamok.... to know about realy Islamhttp://www.islam-guide.com click here====>Islam: Misunderstood throughout the World Link to comment Share on other sites More sharing options...
ghareeb Posted May 19, 2005 Author Share Posted May 19, 2005 i think that same as message edit in forum add font [fontxxxx\font], justfied centerxxxx\center], add image [imgoxxxx\imgo]) and so on that is i need !!!! Are you read anything about islamok.... to know about realy Islamhttp://www.islam-guide.com click here====>Islam: Misunderstood throughout the World Link to comment Share on other sites More sharing options...
ghareeb Posted May 19, 2005 Author Share Posted May 19, 2005 any one help me Are you read anything about islamok.... to know about realy Islamhttp://www.islam-guide.com click here====>Islam: Misunderstood throughout the World Link to comment Share on other sites More sharing options...
kjactive Posted May 20, 2005 Share Posted May 20, 2005 (edited) I just finished a word manipulate UDF function library containing one function you could use...;===================================================; Description: Return String with the string contents inserted from integer location; Syntax: _Insert( $sString, $sString, $iInt ); Parameter(s): $sString, $sString, $iInt; Return Value(s): Success - Returns string with the string inserted from $iInt location; Failure - Return string and sets @error = 1;===================================================This function inserts a string at integer location into another string...Free to download...http://www.sitecenter.dk/latenight/nss-fol...pports/Word.zipkjactive Edited May 20, 2005 by kjactive Au3PP 4.1 - Autoit3 preprocessor, optimize speed, performance to scripts and do executes....[/url]Au3Calibur - Create libraries of commonly used code excerptsWords manipulate UDF, functions that is lent from the rexx language, topics and index file includedCustomDialog UDF to include custom made dialogs like a extended colorpick requester to scripts...[url="ftp://fritidshjemmet.com/Autoit3/SysColor.zip"]SysColor UDF a low level color library to manipulate RGB and Hex values...Shell32 UDF to Automate Windows® operating tasks from native dialog and Wizards browsers... Optimized the CodeWicard with options to generate browser code etc... Link to comment Share on other sites More sharing options...
ghareeb Posted May 20, 2005 Author Share Posted May 20, 2005 thank u ...kjactive and for ur code but in ur code i must insert String; but i want to mark some text with the mouse, and add some text in beginning of marked text when i bush a key???!! Are you read anything about islamok.... to know about realy Islamhttp://www.islam-guide.com click here====>Islam: Misunderstood throughout the World 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