anhdh

Untitled

Jun 11th, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.50 KB | None | 0 0
  1. $List1 = GUICtrlCreateList("", 455, 21, 265, 188, BitOR($GUI_SS_DEFAULT_LIST,$LBS_DISABLENOSCROLL))
  2.  
  3.  
  4. Func AddString($String)
  5.  
  6. ; Add strings
  7. _GUICtrlListBox_BeginUpdate($List1)
  8. _GUICtrlListBox_AddString($List1,$stt & ". "& _NowTime(5) & ":"& $String)
  9. _GUICtrlListBox_UpdateHScroll($List1)
  10. _GUICtrlListBox_EndUpdate($List1)
  11. _AutoScroll()
  12. $stt +=1
  13. EndFunc   ;==>AddString
  14. Func _AutoScroll()
  15.     _GUICtrlListBox_SetAnchorIndex($List1 , _GUICtrlListBox_GetListBoxInfo($List1)-1)
  16. EndFunc ;==>_AutoScroll
Advertisement
Add Comment
Please, Sign In to add comment