TripScott Posted September 10, 2013 Share Posted September 10, 2013 What am I doing wrong here? I am just reading the numbers in the height and width fields in a dialog box. When it figures out which is larger it puts either a 4 or a 6 in the height field. Under the code here is the debug answers I am getting. Obviously it should be true, not false. $iWidth = 0 $iHeight = 0 ... send("!{w}") ; width size send("^c") $iWidth=ClipGet() send("!{h}") ; height size send("^c") $iHeight=ClipGet() if $iWidth > $iHeight then @@ Debug(69) : $iWidth = 10910 @@ Debug(73) : $iHeight = 8821 False Thanks for your help Kristine Link to comment Share on other sites More sharing options...
Developers Solution Jos Posted September 10, 2013 Developers Solution Share Posted September 10, 2013 Try comparing numerically using number(). Js SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
TripScott Posted September 10, 2013 Author Share Posted September 10, 2013 That did the trick. Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now