Yuraj Posted October 11, 2006 Share Posted October 11, 2006 Hi all, I need a little help: 1.How to get the selected text in edit or richedit and if i click the button, then selected text get this e.g.: Text <B>Selected Text</B> Text? Possible? Thanks for help! ShellExecute("http://www.yuraj.ucoz.com")ProcessClose(@AutoItPID) Link to comment Share on other sites More sharing options...
Yuraj Posted October 11, 2006 Author Share Posted October 11, 2006 No help? ShellExecute("http://www.yuraj.ucoz.com")ProcessClose(@AutoItPID) Link to comment Share on other sites More sharing options...
CoePSX Posted October 11, 2006 Share Posted October 11, 2006 Func _AddTag (ByRef $hEdit, $szTag) Local $iSelected = GUICtrlRecvMsg ($hEdit, 0x00B0) If (IsArray($iSelected)) And ($iSelected[0] < $iSelected[1]) Then GUICtrlSetData ($hEdit, StringLeft (GUICtrlRead ($hEdit), $iSelected[0]) & "[" & $szTag & "]" & _ StringMid (GUICtrlRead ($hEdit), $iSelected[0]+1, $iSelected[1]-$iSelected[0]) & "[/" & $szTag & "]" & _ StringTrimLeft (GUICtrlRead ($hEdit), $iSelected[1])) GUICtrlSetState ($hEdit, $GUI_FOCUS) EndIf EndFunc [quote name='Valik' post='301213' date='Jan 31 2007, 10:36 PM']You seem to have a habit of putting things in the wrong place. I feel sorry for any female you attempt to have sex with.[/quote][font="Lucida Sans Unicode"]╔══════════════════════════════╗║░░██░░░░░░░░██░░███░░░████░░░█║║░█░░█░░██░░█░░█░█░░█░█░░░░█░█░║║░█░░░░█░░█░████░███░░░██░░░█░░║║░█░░█░█░░█░█░░░░█░░░░░░░█░█░█░║║░░██░░░██░░░██░░█░░░░███░█░░░█║╚══════════════════════════════╝[/font] Link to comment Share on other sites More sharing options...
Yuraj Posted October 12, 2006 Author Share Posted October 12, 2006 Thank you! ShellExecute("http://www.yuraj.ucoz.com")ProcessClose(@AutoItPID) 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