Developers Jos Posted August 27, 2005 Developers Posted August 27, 2005 Received the following suggestion from ??? who PMed JPM:I know this is kind of a nit-picky thing to ask, but would it be possible to modify the function to the switch syntax. It wouldn't take long, and I understand if you wouldn't want to do that...I just know that some like the most streamlined code possible...Thanks, and for all of your work too (you've made my C++ experience so much easier )Switch $aPriority[0] Case 0x00000040 Return 0 Case 0x00004000 Return 1 Case 0x00000020 Return 2 Case 0x00008000 Return 3 Case 0x00000080 Return 4 Case 0x00000100 Return 5 Case Else SetError(1) Return -1 EndSwitch 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.
jpm Posted August 27, 2005 Posted August 27, 2005 Received the following suggestion from ??? who PMed JPM:<{POST_SNAPBACK}>it was from "MSLx Fanboy". What do you ask puting this post in this form? just the name?
Developers Jos Posted August 27, 2005 Author Developers Posted August 27, 2005 it was from "MSLx Fanboy". What do you ask puting this post in this form? just the name?<{POST_SNAPBACK}>Just so the author of this UDF can see the suggestion and make changes if needed and submit it again... 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.
MSLx Fanboy Posted August 28, 2005 Posted August 28, 2005 Yea, sorry about that, I wasn't sure who handled the UDFs...I wrote that before switch() came out, and wanted to change it over. Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate())
Developers Jos Posted August 28, 2005 Author Developers Posted August 28, 2005 Yea, sorry about that, I wasn't sure who handled the UDFs...I wrote that before switch() came out, and wanted to change it over.<{POST_SNAPBACK}>No problem....I wasn't sure if it was the original author of the UDF that made the proposal so thats why i posted it....Just submit the updated UDF to me and i will include it. 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.
MSLx Fanboy Posted August 28, 2005 Posted August 28, 2005 I PM'ed you the entire source, nothing has changed other than the select statement to switch. Oh, the example in the helpfile needs to be changed to #include<process.au3>, sorry, I wasn't sure how to put the include line in the example file. Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate())
Developers Jos Posted August 28, 2005 Author Developers Posted August 28, 2005 (edited) I PM'ed you the entire source, nothing has changed other than the select statement to switch.Oh, the example in the helpfile needs to be changed to #include<process.au3>, sorry, I wasn't sure how to put the include line in the example file.<{POST_SNAPBACK}>processed your update and fixed the example... tnx Edited August 28, 2005 by JdeB 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.
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