Sign in to follow this  
Followers 0
Jos

_ProcessGetPriority suggestion

7 posts in this topic

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 :whistle:)

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

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites



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?

Share this post


Link to post
Share on other sites

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... :whistle:

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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())

Share this post


Link to post
Share on other sites

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. :whistle:


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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())

Share this post


Link to post
Share on other sites

#7 ·  Posted (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 by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0