Developers Jos Posted April 19, 2005 Developers Share 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. Link to comment Share on other sites More sharing options...
MSLx Fanboy Posted April 19, 2005 Share 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()) Link to comment Share on other sites More sharing options...
therks Posted April 19, 2005 Share 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 Link to comment Share on other sites More sharing options...
jpm Posted April 20, 2005 Author Share 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 Link to comment Share on other sites More sharing options...
tylo Posted April 20, 2005 Share 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 Link to comment Share on other sites More sharing options...
MSLx Fanboy Posted April 20, 2005 Share 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()) Link to comment Share on other sites More sharing options...
jpm Posted April 20, 2005 Author Share 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. Link to comment Share on other sites More sharing options...
SlimShady Posted April 20, 2005 Share Posted April 20, 2005 Could you add the @HotkeyPressed macro, please? Link to comment Share on other sites More sharing options...
jpm Posted April 20, 2005 Author Share 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 Link to comment Share on other sites More sharing options...
jpm Posted April 20, 2005 Author Share 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) Link to comment Share on other sites More sharing options...
SvenP Posted April 20, 2005 Share 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 Link to comment Share on other sites More sharing options...
jpm Posted April 20, 2005 Author Share 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" Link to comment Share on other sites More sharing options...
Holger Posted April 20, 2005 Share 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 colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView Link to comment Share on other sites More sharing options...
jpm Posted April 20, 2005 Author Share 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 Link to comment Share on other sites More sharing options...
SlimShady Posted April 20, 2005 Share Posted April 20, 2005 Great! Thank you Link to comment Share on other sites More sharing options...
jpm Posted April 20, 2005 Author Share 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 Link to comment Share on other sites More sharing options...
Helge Posted April 20, 2005 Share Posted April 20, 2005 Have you forgotten to upload the files ? Link to comment Share on other sites More sharing options...
jpm Posted April 21, 2005 Author Share 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 Link to comment Share on other sites More sharing options...
jpm Posted April 21, 2005 Author Share 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. Link to comment Share on other sites More sharing options...
w0uter Posted April 21, 2005 Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts