Jump to content

_ProcessGetPriority suggestion


Jos
 Share

Recommended Posts

  • Developers

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

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

  • Developers

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:

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

  • Developers

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:

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

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())
Link to comment
Share on other sites

  • Developers

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...