DynamicRookie Posted May 2, 2018 Share Posted May 2, 2018 (edited) Hey there! So i have made a little program that is supposed to learn from what messages you send, then read on memory and answer depending if the question was found on memory. Everything works fine except for a little problem Chat edit box is not vertically autoscrolling to end of it, i use GUICtrlRead then GUICtrlSetData to read and create a new message on it. But when messages go off the bounds of box, it scrolls to top instead of scrolling to end. I would like a way to fix it. My edit properties are: $G_Chat = GUICtrlCreateEdit('', 10, 30, 380, 320, BitOR($ES_AUTOVSCROLL, $WS_VSCROLL, $ES_READONLY, $ES_CENTER)) And i use this to create a new message GUICtrlSetData($G_Chat, $ChatLog & @CRLF & '[Centeno] : ' & $ConstantHour & ' - ' & $Date & @CRLF & $Answer) Any help is really appreciated. Edited May 2, 2018 by DynamicRookie Link to comment Share on other sites More sharing options...
martin Posted May 5, 2018 Share Posted May 5, 2018 I haven't investigated your problem but it might be that you could send "^{END}' to the edit with ControlSend and that should make it scroll down I think. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. 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