Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Delaying 'key' command...
#1
I didnt find anyway to delay the output of the 'key' command, so i created a "wrapper" function for this purpose, and called it "KeyString"
If there is an build-in way to delay the output of this 'key' command then pls tell me.
If not: Add to you "To-do" list Tongue
Code:
Copy      Help
/
function str'sText [double'nDelay]
double Delay
int Loop
str sTemp

Set delay time in seconds
if(nDelay > 0)    Delay = nDelay
else Delay = 0.1

Type the text using macro delays.
for Loop 0 sText.len
    if( sText[Loop] = '\' )
        sel sText[Loop+1]
            case ['n','r']
                key Y
                Loop += 1
            case 't'
                key T
                Loop += 1
            case 'b'
                key B
                Loop += 1
            case else
                key "\"
    else
        key (sTemp.get(sText, Loop, 1))
     Delay next key press.
    wait Delay
Feel free to enhance it as you see fit..


Attached Files
.qml   KeyString.qml (Size: 631 bytes / Downloads: 296)
Well thats all for now, 3M
#2
In QM 2.1.7, can be used opt slowkeys. The speed depends on spe.

Code:
Copy      Help
opt slowkeys 1
spe 1000
key "Text"


Forum Jump:


Users browsing this thread: 1 Guest(s)