Autoscrolling listboxes in AutoIt

To add autoscroll functionality to listboxes in AutoIt add this Include:

#include <GuiListBox.au3>

Add a function, call it for example _AutoScroll:

Func _AutoScroll()
_GUICtrlListBox_SetTopIndex($ListName, _GUICtrlListBox_GetListBoxInfo($ListName) – 1) ; Autoscroll to end of ListBox !
EndFunc ;==>_AutoScroll

Then, each time you write to the listbox add a call to
_AutoScroll()

Advertisements

One thought on “Autoscrolling listboxes in AutoIt”

  1. works great, be carefully with the “-” sign, had to replace it with a manually typed one – otherwise it wouldnt compile

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s