Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | system.priority SEARCH    

  Functions
alert
log
system.battery.ACLineStatus
system.battery.LifePercent
system.beep
system.clipboard.clear
system.clipboard.get.format
system.clipboard.get.image
system.clipboard.get.text
system.clipboard.set.image
system.clipboard.set.text
system.createUniqueId
system.dialog
system.doEvents
system.execute
system.explore
system.getColors
system.getComputerId
system.getComputerName
system.getMemoryInfo
system.getUserName
system.ignoreCriticalErrors
system.language
system.lastError
system.logIsEnabled
system.message
system.mioEngine.countInstances
system.mioEngine.filename
system.mioEngine.version
system.openURL
system.os
system.platform
system.priority
system.userIsAdmin
system.winapi.errorMsg
system.winapi.lastError
system._hidden
system._showInTaskBar

  Events
event.error
event.exception
event.memoryFull
event.screen:resolution:change
event.system:desktop:changed
event.system:display:changed

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Function
system.priority

Language: MioScript
Product: MioFactory


Syntax

system.priority(Priority)


Parameters

STRINGPriorityPriority of the current process.
Possible values are high, normal, low.


Return value

No value is returned.


Description

Set the priority of the current process (application) using the Windows API function SetThreadPriority.

Use this function carefully.
If you set a priority to High, your application may slow all other windows processes.

Possible values:
low: Indicates a base priority level of 1 (THREAD_PRIORITY_IDLE).
normal: Indicates normal priority (THREAD_PRIORITY_NORMAL).
high: Indicates 1 point above normal priority for the priority class (THREAD_PRIORITY_ABOVE_NORMAL)

By default, the system priority is set to:
low for Windows 2000, XP, Vista and later
normal for other Windows releases

See also: app.booster




MioScript Sample Code

system.priority("low")