simulate keywait function in autohotkey

235 views
Skip to first unread message

ceason lam

unread,
Jun 20, 2012, 11:07:35 AM6/20/12
to xdotool-users
i want to simulate the keywait function in autohotkey in linux
how can i do it?
if it is the missing functioin
would you consider it as a request.

thanks

link of keywait info : http://www.autohotkey.com/docs/commands/KeyWait.htm

thec...@gmail.com

unread,
Jun 21, 2012, 1:17:56 AM6/21/12
to xdotoo...@googlegroups.com

more info

the following  is what i exactly want to do

xdotool mousemove x y click

!! then open a dialog of color picker then i choose a color

xdotool key KP_Enter
-------------------------------------------------------
in ahk

i can  do with a single shortcut ' s '
i hold s  dialog popup
i release s dialop close

---------------------------------
s::
click x y
keywait s
send {enter}
return

Jordan Sissel

unread,
Jun 21, 2012, 1:20:34 AM6/21/12
to thec...@gmail.com, xdotoo...@googlegroups.com
On Wed, Jun 20, 2012 at 10:17 PM, <thec...@gmail.com> wrote:

more info

the following  is what i exactly want to do

xdotool mousemove x y click

You can probably 'hack' around this by using 'xdotool selectwindow' and just throw away the result. The 'selectwindow' will block until you click in any window, so maybe this:

xdotool mousemove x y selectwindow click ...

'selectwindow' only waits for a click. If you need waiting for a keystroke, I can add that to the TODO list :)

-Jordan
 

!! then open a dialog of color picker then i choose a color

xdotool key KP_Enter
-------------------------------------------------------
in ahk

i can  do with a single shortcut ' s '
i hold s  dialog popup
i release s dialop close

---------------------------------
s::
click x y
keywait s
send {enter}
return

--
You received this message because you are subscribed to the Google Groups "xdotool-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/xdotool-users/-/o12NHunf6nYJ.

To post to this group, send email to xdotoo...@googlegroups.com.
To unsubscribe from this group, send email to xdotool-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/xdotool-users?hl=en.

thec...@gmail.com

unread,
Jun 22, 2012, 12:03:55 PM6/22/12
to xdotoo...@googlegroups.com, thec...@gmail.com
thank , jardon

i have another question

i also try the simulate "alt+click"

i did a search
it seem
xdotool keydown alt click 1 keyup alt
is the correct answer
but it don't not work

i only get this work

xdotool keydown alt
sleep 1
xdotool click 1
xdotool keyup alt

the problem is keydown is not working
i try to use delay optioin but once i add the whole script not work anymore

regard
Reply all
Reply to author
Forward
0 new messages