Maulik Lathiya
Maulik Lathiya

Reputation: 173

iMacro script to press keyboard button

I want a iMacro script that can press keyboard button on every 15 minutes

On every 15 min "Shift + S" should be pressed.

Or any other add on for Firefox will also work that does this thing.

Upvotes: 0

Views: 1189

Answers (1)

Shugar
Shugar

Reputation: 5299

Try this script for Firefox 'iMacros':

while (true) {
    var doc = window.document;
    var event = doc.createEvent("KeyboardEvent");
    event.initKeyEvent("keypress", true, true, window, false, false, true, false, 0, 83);
    doc.getElementsByTagName("html")[0].dispatchEvent(event);
    iimPlayCode("WAIT SECONDS=900");
}

Upvotes: 1

Related Questions