Skip to content

Commit

Permalink
add delay parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
spyoungtech committed Jan 30, 2019
1 parent 678e637 commit 866b715
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ahk/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def text(self):

@property
def always_on_top(self):
script = self.render_template('window/win_is_always_on_top.ahk')
script = self._render_template('window/win_is_always_on_top.ahk')
resp = self.engine.run_script(script)
return bool(ast.literal_eval(resp))

Expand Down Expand Up @@ -254,7 +254,7 @@ def move(self, x='', y='', width=None, height=None):
self.engine.run_script(script)

def send(self, keys, delay=None, raw=False, blocking=False):
script = self._render_template('window/win_send.ahk', keys=keys, raw=raw, blocking=blocking)
script = self._render_template('window/win_send.ahk', keys=keys, raw=raw, delay=delay, blocking=blocking)
return self.engine.run_script(script, blocking=blocking)

def __eq__(self, other):
Expand Down

0 comments on commit 866b715

Please sign in to comment.