Page 1 of 1
Can Push2run make a selection in a program
Posted: Wed Mar 14, 2018 12:57 am
by roqibsasman
Hi.I have this program that i have created.Is it possible to make a selection where by when i give a command like "Play music" to my google home, it will click on the play button?
Re: Can Push2run make a selection in a program
Posted: Wed Mar 14, 2018 6:44 am
by RobLatour
If you created the program, and you can change the button to be navigated to and pushed via the keyboard - then you can use the examples .vbs scripts for the calculator or Spotify to do what you need.
Other tools are AutoIT (
https://www.autoitscript.com/site/autoit/ ) and AutoHotkey (
https://autohotkey.com/ ) both of which support emulating both keystrokes and mouse clicks. I'll likely add examples using one or both of them in the future. However, both are quite powerful and when used in conjunction with Push2Run should give you what you need.
Re: Can Push2run make a selection in a program
Posted: Thu Mar 15, 2018 2:44 am
by roqibsasman
Hi.Are there any tutorials on how i can create my own cards?I already have the shortcuts on the keyboard.All that has to be done is to put it in the Push2Run Program. Will you walk me through it?
Re: Can Push2run make a selection in a program
Posted: Thu Mar 15, 2018 2:56 am
by roqibsasman
Example when i say a certain phrase like "turn on projector" to my google home , the "CTRL + K" will be pressed as "CTRL+K" is the keyboard shortcut to turn on my projector.Is there a way to do that?
Re: Can Push2run make a selection in a program
Posted: Thu Mar 15, 2018 6:21 am
by RobLatour
Yes, the video on the website page
www.push2run.com shows how you to make your own cards, either by dragging and dropping an icon into the main window of Push2Run, or by clicking on 'Actions' - 'Add' to create a blank card that you can update.
For sending keyboard commands you can use a .vbs script, AutoIt, or AutoHotKey.
There are samples of .vbs scripts that send keys using .vbs in this forum under the Shared Push2Run cards section. See the one for the calculator. To send CTRL + K you would send ^K ; for more information please see:
https://msdn.microsoft.com/en-us/librar ... .110).aspx
I will likely add some AutoIt and AutoHotKey examples soon (unless someone does this before me).