raghuram534 / autokey

Automatically exported from code.google.com/p/autokey
GNU General Public License v3.0
0 stars 0 forks source link

Feature request: keywait #70

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Any chance of getting the wait for key release behaviour of the ahk command 
here in a future release?

http://www.autohotkey.com/docs/commands/KeyWait.htm

I'd like to use it to speed up actions on selections i.e.

hotkey 
send_keypress(<shift>)
keywait(hotkey, release)
arrows keys etc to do selection, release hotkey 
send_keyrelease(<shift>)
do action associated with hotkey (delete/cut/copy etc)

But plenty of other uses?

Ta!

Original issue reported on code.google.com by tpowe...@gmail.com on 11 Aug 2010 at 8:51

GoogleCodeExporter commented 8 years ago
Can you give a bit more detailed explanation of what you are trying to do here? 
Need to make sure it's actually possible to do before I spend time on it.

Original comment by cdekter on 26 Aug 2010 at 11:15

GoogleCodeExporter commented 8 years ago
To get behaviour similar to the ahk scripts below? Imagine it'll be a bit down 
the list of priorities but would be nice.

; SELECT/COPY/DELETE

RShift & s::
        Send {Shift down}
        Keywait, s ; let RShift & b/w/a/e below execute
        Send {Shift up}
Return

RShift & x::
        Send {Shift down}
        Keywait, f ; let RShift & b/w/a/e below execute
        Send {Shift up}
        Send ^{x}       
Return

RShift & c::
        Send {Shift down}
        Keywait, c ; let RShift & b/w/a/e below execute
        Send {Shift up}
        Send ^{c}
Return

RShift & d::
        Send {Shift down}
        Keywait, d ; let RShift & b/w/a/e below execute
        Send {Shift up}
        Send {Delete}
Return

; NAVIGATION

RShift & w::
    if getkeystate("LShift")
        Send,^+{Right}
    else
        Send,^{Right}
return

RShift & b::
    if getkeystate("LShift")
        Send,^+{Left}
    else
        Send,^{Left}

return

RShift & e::
    if getkeystate("LShift")
        Send,+{End}
    else
        Send,{End}
return

RShift & a::
    if getkeystate("LShift")
        Send,+{Home}
    else
        Send,{Home}
return

Original comment by tpowe...@gmail.com on 26 Aug 2010 at 11:55

GoogleCodeExporter commented 8 years ago
yea I would like to request this as well...but I'd like to add for more wait 
values like AutoHotKey like WinWait or WinWaitClose basically anything in this 
command list. :) 
http://www.autohotkey.com/search/search.php?refine=1&query_string=wait&site=4&pa
th=docs/commands/&limite=100&option=start

Original comment by vis...@gmail.com on 26 Aug 2010 at 5:48

GoogleCodeExporter commented 8 years ago
WinWait is already there as window.wait_for_exist() and WinWaitClose can also 
be done using the same function by looping around until it returns False.

Original comment by cdekter on 27 Aug 2010 at 12:03

GoogleCodeExporter commented 8 years ago
I need it too. I tried to emulate with:

import sys
sys.stdin.read(1)

But no luck!

Original comment by kheyfbo...@gmail.com on 12 Aug 2011 at 4:51

GoogleCodeExporter commented 8 years ago
This feature will be in the next release

Original comment by cdekter on 19 Nov 2011 at 7:46