Jos 2,169 Posted April 19, 2005 no problem.is it correct for the For...In...Next?<{POST_SNAPBACK}>yes.. works perfectly 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. Share this post Link to post Share on other sites
MSLx Fanboy 0 Posted April 19, 2005 I don't remember seeing these, but I know that *= += -= and etc are included, but is there any chance that != [and ==] as well? I've been using PHP for the longest time, and it's unnatural for me to use '<>'. Thanks! Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate()) Share this post Link to post Share on other sites
therks 33 Posted April 19, 2005 I don't remember seeing these, but I know that *= += -= and etc are included, but is there any chance that != [and ==] as well? I've been using PHP for the longest time, and it's unnatural for me to use '<>'.Thanks!<{POST_SNAPBACK}>I'm used to PHP as well, but we couldn't institute the == because AutoIt already uses it (for case sensitive comparison). I still use != sometimes and am confused when the script errors out.Back to the original topic, just wanted to mention that the Help file doesn't have an index for GUIEventCompatibilityMode or whatever the option's name is. My AutoIt Stuff | My Github Share this post Link to post Share on other sites
jpm 93 Posted April 20, 2005 Back to the original topic, just wanted to mention that the Help file doesn't have an index for GUIEventCompatibilityMode or whatever the option's name is.True I forget to add it in the next upload 3.1.1.11 Thanks Share this post Link to post Share on other sites
tylo 2 Posted April 20, 2005 I'm used to PHP as well, but we couldn't institute the == because AutoIt already uses it (for case sensitive comparison). I still use != sometimes and am confused when the script errors out.<{POST_SNAPBACK}>The only way to test case sensitive string inequality is by Not ($a == $, so for that != would maybe be nice. However, I fear that many would be tempted to use != for normal number inequality comparison, which could fail, so it's best not to add it. (e.g: 2 <> "2.0" vs. 2 != "2.0").PS. Bug: I just found that the == operator returns Int instead of Bool.Try: MsgBox(0, (1 = 1), (1 == 1)) blub Share this post Link to post Share on other sites
MSLx Fanboy 0 Posted April 20, 2005 I can understand '==', but couldn't != apply to strings and number strings as well? Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate()) Share this post Link to post Share on other sites
jpm 93 Posted April 20, 2005 The only way to test case sensitive string inequality is by Not ($a == $, so for that != would maybe be nice. However, I fear that many would be tempted to use != for normal number inequality comparison, which could fail, so it's best not to add it. (e.g: 2 <> "2.0" vs. 2 != "2.0").PS. Bug: I just found that the == operator returns Int instead of Bool.Try: MsgBox(0, (1 = 1), (1 == 1))<{POST_SNAPBACK}>on PS commentIf it is a bug I think there are other because for now all Is... return Int.As you are the leader on the Boolean can you clean the situation.Valik ask for Bool() function perhaps a IsBool is needed to be completly coherent. Share this post Link to post Share on other sites
SlimShady 1 Posted April 20, 2005 Could you add the @HotkeyPressed macro, please? Share this post Link to post Share on other sites
jpm 93 Posted April 20, 2005 (edited) Could you add the @HotkeyPressed macro, please?<{POST_SNAPBACK}>Holger didn't submit any modification for This. I hope it will see your message and send the modifications Edited April 20, 2005 by jpm Share this post Link to post Share on other sites
jpm 93 Posted April 20, 2005 I'm looking to do the same with Booleans:$bool = Bool(IniRead($sIni, $sSection, $sKey, $sDefault))I am not sure this one will not generate non english user a lot of questions.in french "True" = "Vrai", "Yes"= "Oui", "1"="1".The lastest seems usually agreed from any language perhaps not in all user mind(Joke) Share this post Link to post Share on other sites
SvenP 0 Posted April 20, 2005 I am not sure this one will not generate non english user a lot of questions.in french "True" = "Vrai", "Yes"= "Oui", "1"="1".The lastest seems usually agreed from any language perhaps not in all user mind(Joke) <{POST_SNAPBACK}>jpm,On a french Windows: Does a VBscript program like:Msgbox 1=1Show "True" or "Vrai" ?-Sven Share this post Link to post Share on other sites
jpm 93 Posted April 20, 2005 jpm,On a french Windows: Does a VBscript program like:Msgbox 1=1Show "True" or "Vrai" ?-Sven<{POST_SNAPBACK}>The answer is "Vrai" Share this post Link to post Share on other sites
Holger 14 Posted April 20, 2005 @jpm: can send you this the next days - when I have anough time to check again with current version... So long... Holger Old project:GUI/Tray menu with icons and colorsOther old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView Share this post Link to post Share on other sites
jpm 93 Posted April 20, 2005 @jpm: can send you this the next days - when I have anough time to check again with current version...So long... Holger<{POST_SNAPBACK}>fine with the merger Share this post Link to post Share on other sites
jpm 93 Posted April 20, 2005 20th April 2005 - v3.1.1.11 (beta) COM23/24 mergeFixed : VC7 warnings (Thanks Sven). Fixed : An Object reference leak in DLLCall(). Added: Support for Arrays returned from COM functions. Fixed : A FOR..IN loop would still start when an Array contained no elements. Changed : Return,@error, @extended have to be explicit to be return by an UDF (Thanks Valik) Check carefully @error and @extended checking and report if pb Share this post Link to post Share on other sites
Helge 3 Posted April 20, 2005 Have you forgotten to upload the files ? Share this post Link to post Share on other sites
jpm 93 Posted April 21, 2005 Have you forgotten to upload the files ? <{POST_SNAPBACK}>No but I take a while beind a 56K line so they were OK at 11:11 my timeUsually I wait the end before posting message but as I want to go to bed earlier I did it simultaneously so that the reason you see the post before the files.Thanks for your testing. Just return on change on return,@error,@extended behavior Share this post Link to post Share on other sites
jpm 93 Posted April 21, 2005 21th April 2005 - v3.1.1.12 (beta) COM25 merge Fixed : more than 15 GUI creation (Thanks Wb_Freekill, herewasplato) Fixed : Reference count problem when passing an Object variable as COM-function argument (thanks dwerznec). Fixed : Memory leak in COM-Array conversions. Share this post Link to post Share on other sites
w0uter 4 Posted April 21, 2005 did you forgot to upload it or did you just go to bed early again My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Share this post Link to post Share on other sites