Card collection (System control, Media, Winamp, Youtube, Keyboard etc.)

Here you are welcome to share your Push2Run cards

PLEASE NOTE:
If you are downloading a Push2Run card from here or anywhere else, please inspect it carefully before running it or any software associated with it. If you don't do this you may end up with seriously unwanted results.

When sharing a card, please leave any special instructions that are required for its use. For example, if additional software is needed to enable the card, you should leave a link to the program's official webpage.
Kashinoda
Posts: 3
Joined: Sun Jan 06, 2019 8:22 am

Card collection (System control, Media, Winamp, Youtube, Keyboard etc.)

Post by Kashinoda »

I've created a collection of useful commands, mainly using NirCMD and the sendkey functionality.

Image

You can grab a ZIP file which contains all of these and simply choose whatever you want to add:
Cards.zip
(11.8 KiB) Downloaded 3812 times

You'll also need NirCMD, SetVol and some custom BAT files (created by SimplyAName in the other thread). You can download these as one ZIP file and place them in C:\GoogleHome
http://lipsgaming.com/shared/Push2Run/GoogleHome.zip

Image

Notes:
  • Most of these commands utilise the 'sendkey' function in NirCMD, essentially sending keypresses from your keyboard. It's fairly straight forward to add your own, see the link below for the available key codes.
  • The $ symbol means you can use a variable, i.e. 'volume 75', 'shut down after 10', 'kill chrome'
  • The YouTube media controls work if YouTube is open and the main window, however you can use the 'youtube play' command regardless of what you have on your screen. (i.e. 'youtube play michael jackson smooth criminal)
  • Screenshots will save in ..\My Pictures\Screenshots
  • The Winamp command will play any song you have queued in your playlist. You need to make sure you have Global Hot Keys enabled in your preferences.

Useful Links:
Microsoft Key Codes for use with NirCmd: https://docs.microsoft.com/en-us/window ... -key-codes
YouTube hotkeys: https://support.google.com/youtube/answ ... 06?hl=enGB

Other Cards:
Change your Audio Device: https://www.push2run.com/phpbb/viewtopic.php?f=9&t=628

---------------------------------------------------------------------------------------------

Additional programs and BAT files, if you downloaded the GoogleHome.zip you do NOT need these:

SetVol: https://www.rlatour.com/setvol/
NirCmd: http://www.nirsoft.net/utils/nircmd.html

BAT Files:

Shutdown.bat:
set /a Sec= %1 60
shutdown.exe s t %Sec%

Sleep.bat:
set /a Milli= %1 60000
nircmd cmdwait %Milli% standby force

winamp.bat:
set MyVariable=%1
nircmd clipboard set %MyVariable%
nircmd sendkeypress CTRL+ALT+J
nircmd cmdwait 500 sendkeypress CTRL+V
nircmd cmdwait 500 sendkey 0x0D press

---------------------------------------------------------------------------------------------

Thank you
Last edited by Kashinoda on Wed Jan 09, 2019 6:29 pm, edited 3 times in total.
RobLatour
Site Admin
Posts: 1016
Joined: Mon Feb 19, 2018 11:43 am

Re: Card collection (System control, Media, Youtube, Keyboard etc.)

Post by RobLatour »

Cool, thank you so much for posting these.
SimplyAName
Posts: 4
Joined: Mon Dec 03, 2018 7:55 pm

Re: Card collection (System control, Media, Youtube, Keyboard etc.)

Post by SimplyAName »

Thanks for including me, glad someone else liked my card :D
Rykerr
Posts: 1
Joined: Mon Jan 07, 2019 1:13 am

Re: Card collection (System control, Media, Youtube, Keyboard etc.)

Post by Rykerr »

Thank u bro. The world need more people like u.
Kashinoda
Posts: 3
Joined: Sun Jan 06, 2019 8:22 am

Re: Card collection (System control, Media, Youtube, Keyboard etc.)

Post by Kashinoda »

SimplyAName wrote: Sun Jan 06, 2019 8:25 pm Thanks for including me, glad someone else liked my card :D
Yeah I never thought about passing variables into command line, opens up a lot of potential :D I always fall asleep with a playlist on so the shutdown timer is great.
n01a
Posts: 16
Joined: Thu May 17, 2018 3:34 pm

Re: Card collection (System control, Media, Winamp, Youtube, Keyboard etc.)

Post by n01a »

Not listed in youtube shortcut keys... END will skip to next video (0x23 keycode) and it's very useful
boreas
Posts: 1
Joined: Wed Jan 30, 2019 1:18 pm

Re: Card collection (System control, Media, Winamp, Youtube, Keyboard etc.)

Post by boreas »

thanks alot... besides using them directly, these are really good for understanding the mechanics . Keep up the good work please.
omarjms
Posts: 2
Joined: Sun Jul 07, 2019 11:08 am

Re: Card collection (System control, Media, Winamp, Youtube, Keyboard etc.)

Post by omarjms »

lov u man
alex310
Posts: 1
Joined: Wed Jul 10, 2019 7:15 am

Re: Card collection (System control, Media, Winamp, Youtube, Keyboard etc.)

Post by alex310 »

Sorry push2run noob here, can't seem to get these cards to import into push2run, keep getting this error
p2r cards error.png
p2r cards error.png (23.85 KiB) Viewed 15365 times
RobLatour
Site Admin
Posts: 1016
Joined: Mon Feb 19, 2018 11:43 am

Re: Card collection (System control, Media, Winamp, Youtube, Keyboard etc.)

Post by RobLatour »

i tried a few and they all worked fine. Are you unzipping the zip file, and then just dragging each card onto Push2Run's main window?
Post Reply