Can Push2run make a selection in a program

Here you are welcome to discuss items of general interest related to Push2Run
Post Reply
roqibsasman
Posts: 7
Joined: Wed Mar 14, 2018 12:52 am

Can Push2run make a selection in a program

Post 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?
RobLatour
Site Admin
Posts: 1003
Joined: Mon Feb 19, 2018 11:43 am

Re: Can Push2run make a selection in a program

Post 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.
roqibsasman
Posts: 7
Joined: Wed Mar 14, 2018 12:52 am

Re: Can Push2run make a selection in a program

Post 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?
roqibsasman
Posts: 7
Joined: Wed Mar 14, 2018 12:52 am

Re: Can Push2run make a selection in a program

Post 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?
RobLatour
Site Admin
Posts: 1003
Joined: Mon Feb 19, 2018 11:43 am

Re: Can Push2run make a selection in a program

Post 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).
Post Reply