--- In [email protected], "Sheri" <[EMAIL PROTECTED]> wrote: > > --- In [email protected], "kottami" <kottami@> wrote: > > > > Hi.. All PPro Users.. > > > > Window.SetPriotiey.... > > > > idle (lowest), below, normal, above, high > > > > > > > > Byt.. Realtime.. High.. ...... > > > > I..want.. Realtime Option.. > > > > BUt. Now.. PPro.. not approach.. > > > > Probably not a good idea to set RealTime, but you can do it with wmic. > Need to have sufficient authority to do it, see here: > > <http://msdn.microsoft.com/en-us/library/aa393587(VS.85).aspx> > > clip.clear > local RealTime=256 > local app=win.handle("under") > local appprocess=win.getprocessid(apphandle) > local wmicmd= ;;+ > ?"/c wmic /output:clipboard process "++appprocess ;;+ > ++" call setpriority "++RealTime > file.runwait(0, env("COMSPEC"), wmicmd, "", "hide") > local output=clip.get > win.debug("output:"++output) > > Look in output for ReturnValue = 0 > > 0: Successful completion > 2: Access denied > 3: Insufficient Privilege > 8: Unknown Failure > 9: Path Not Found > 21: Invalid Parameter > > If output is empty, didn't work. If I use a value other than one of > the correct priority values, I get empty output. > > These are acceptable priority values: > Idle=64 > BelowNormal=16384 > Normal=32 > AboveNormal=32768 > HighPriority=128 > RealTime=256 > > Regards, > Sheri >
Thanks..Thanks a lot, Sheri.. mmm.. > local appprocess=win.getprocessid(apphandle) => local appprocess=win.getprocessid(app) Regards, kottami
