AutoHotkey Community

It is currently May 27th, 2012, 6:54 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: September 25th, 2011, 11:24 pm 
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:
Code:
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 26th, 2011, 12:02 am 
Offline

Joined: October 13th, 2009, 10:09 pm
Posts: 1389
I have also noticed this before, but it actually makes sense since coords are integers after all.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 26th, 2011, 2:43 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
Floating point numbers were never supported - it just ignored the invalid part. For instance, this was equivalent to "w5":
Code:
 Gui, Add, Text,, Blablabla
 Gui, Show, w5.0e2
;Gui, Show, % "w" Ceil(5.0e2)  ; This is OK.
return

guiclose:
ExitApp


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 26th, 2011, 10:51 am 
I know, I just wanted to mention it, in case others wonder why they get an error like "Invalid option [...] Specifically: .000000"


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher and 2 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group