--- In [email protected], "swzoh" <[EMAIL PROTECTED]> wrote:
>
> I'm not sure if this script will be of use as PP now supports {fast}
> and {sinp} for *Keys. Anyway, what it does is to buffer the typed keys
> while sending user specified keys, then do (delayed) sending them
> after finished sending user's keys. Need KeyTrap plugin. Usage is:
> 
> .BufferedKeys(user_specific_keys)
> 
> BTW, there is some restriction posed by PP itself regarding *Keys:
> PP always waits for shift, ctrl, alt, win keys up before sending keys.
> So, if your typed keys contain these keys among them, some leakage
> would be occured. To avoid this, you may have to replace
> 
> Win.SendKeys(select(_keys_,1)++KeyTrap.Trap(0))++KeyTrap.Trap(1)
> 
> with
> 
> Win.SendKeys(select(_keys_,1)++KeyTrap.Trap(0);;+
> ++KeyTrap.ResetKeys(16)++KeyTrap.ResetKeys(17);;+
> ++KeyTrap.ResetKeys(18)++KeyTrap.ResetKeys(91);;+
> ++KeyTrap.ResetKeys(92))++KeyTrap.Trap(1)
> 
> or subset of it.
> 
> I didn't use it as default for fear of a reduced speed.

Oops doubled the same items. The correct one:

--------------------- BufferedKeys.PowerPro ---------------------------
args _keys_

;KeyTrap.Enable(0)
KeyTrap.Enable(1,0)

global _buffer=vec.create(50,10)
KeyTrap.AddEntry("Disable0",?'0,0,0,65535,65535,0,,;;+
,_buffer[_buffer.length]="%scc%\,%vkc%\,0\,0\,0",1,1,1,0,0,0,')
KeyTrap.AddEntry("Disable1",?'0,0,0,65535,65535,1,,;;+
,_buffer[_buffer.length]="%scc%\,%vkc%\,1\,0\,0",1,1,1,0,0,0,')
KeyTrap.AddEntry("Disable2",?'0,0,0,65535,65535,0,,;;+
,_buffer[_buffer.length]="%scc%\,%vkc%\,0\,0\,1",1,1,1,0,1,0,')
KeyTrap.AddEntry("Disable3",?'0,0,0,65535,65535,1,,;;+
,_buffer[_buffer.length]="%scc%\,%vkc%\,1\,0\,1",1,1,1,0,1,0,')

for(_keys_)
Win.SendKeys(select(_keys_,1)++KeyTrap.Trap(0))++KeyTrap.Trap(1)
_keys_=remove(_keys_,1)
endfor

KeyTrap.Enable(0)
_keys_=_buffer.length
for(local i=0;i<_keys_;i++)
do("KeyTrap.SendKeys("++_buffer[i]++")")
endfor
_buffer=_buffer.destroy

;KeyTrap.Enable(1)
quit

Win.SendKeys(select(_keys_,1)++KeyTrap.Trap(0);;+
++KeyTrap.ResetKeys(16)++KeyTrap.ResetKeys(17);;+
++KeyTrap.ResetKeys(18)++KeyTrap.ResetKeys(91);;+
++KeyTrap.ResetKeys(92))++KeyTrap.Trap(1)
-----------------------------------------------------------------------

Sean





Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/power-pro/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to