Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

[AHK_L] [1.1.4.0+] Float number in Gui, Show


  • Please log in to reply
3 replies to this topic
nfl
  • Guests
  • Last active:
  • Joined: --
Hi,
since AHK_L v1.1.4.0 there is a "bug". Maybe it's a feature, I don't know.
Gui, Show does not accept any floats:
Gui, Add, Text,, Blablabla
Gui, Show, w200.0
return

guiclose:
ExitApp
Usually, that might not be a problem, but I often do calculate the size of my gui without using round, so I end up with floats.

fragman
  • Members
  • 1591 posts
  • Last active: Nov 12 2012 08:51 PM
  • Joined: 13 Oct 2009
I have also noticed this before, but it actually makes sense since coords are integers after all.

Lexikos
  • Administrators
  • 9844 posts
  • AutoHotkey Foundation
  • Last active:
  • Joined: 17 Oct 2006
Floating point numbers were never supported - it just ignored the invalid part. For instance, this was equivalent to "w5":
Gui, Add, Text,, Blablabla
 Gui, Show, w5.0e2
;Gui, Show, % "w" Ceil(5.0e2)  ; This is OK.
return

guiclose:
ExitApp


nfl
  • Guests
  • Last active:
  • Joined: --
I know, I just wanted to mention it, in case others wonder why they get an error like "Invalid option [...] Specifically: .000000"