Welcome to Koda bug tracker!

At the moment you can post bugreports or suggestions anonymously. But registered users have some benefits: attaching files, commenting, voting, tracking tasks e.t.c.

Due some asshole started spamming tracker, now (at least for some time) it’s not allowed to create anonymous tasks. Sorry for unconvenience.

In edit fields you can use DokuWiki syntax for formatting.


FS#154 - TAUpdown: Problems in AutoIt affect Koda

Attached to Project: Koda
Opened by Chris Haslam (c.haslam) - Sunday, 02 January 2011, 22:57 GMT+3
Type Bug Report
Category Application
Status Unconfirmed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version Development
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


  • GUICtrlSetLimit() sets max and min but not increment. Perhaps a _GuiCtrlSetLimit(max, min, incr) could be written. Then Koda could set a (new) Increment property. It is needed if UDS_ARROWKEYS is to work. You may have some influence over Jon to add to GUICtrlSetLimit().
  • If no style is specified, Updown is placed to the right of the Input, but $GUI_SS_DEFAULT_UPDOWN alone puts the UpDown to the left of the Input. This is because UpDownConstants.au3 has

    To me, $GUI_SS_DEFAULT_* are equivalent to -1. AutoIt Help says that -1 means $UDS_ALIGNRIGHT. Right is where you expect to see an UpDown. So Koda should use $UDS_ALIGNRIGHT until AutoIt fixes $GUI_SS_DEFAULT_UPDOWN.

This task depends upon

Comment by Admin (Lazycat) - Monday, 03 January 2011, 12:55 GMT+3

I googled MSDN and not found where UDS_ARROWKEYS requires "increment". Moreover, this term even not used anywhere with Updown. So, this is clearly language-dependend.

In Autoit I think this can be easily done with updown events.

Anyway, you can try


If (unlikely, becuase it can be done other way) it will be added, I'm add increment in Koda.

So Koda should use $UDS_ALIGNRIGHT until AutoIt fixes $GUI_SS_DEFAULT_UPDOWN.

Hm, better to fix it in first place of course. It's not so simple make such kind of exceptions.

Comment by Chris Haslam (c.haslam) - Tuesday, 04 January 2011, 00:14 GMT+3

I see that http://msdn.microsoft.com/en-us/library/bb759880%28v=VS.85%29.aspx says that CreateUpDownControl

is obsolete because it can't handle 32-bit range and position. So I wonder how AutoIt implemented GUICtrlCreateUpDown(). It is in commctrl32.dll (so I would think it would be 32 bit). It takes a pos parameter. There are two setpos messages: UDM_SETPOS (16 bit) and UDM_SETPOS32 (32 bit). Strange! Is Microsoft internally confused? What is the 32-bit equivalent to CreateUpDownControl()?

autoitscript.com seems to be down at the moment. I will try later.

I agree that too many exceptions can sink the ship!