Page 1 of 2

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

Posted: Sun Jan 06, 2019 8:36 am
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

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

Posted: Sun Jan 06, 2019 10:17 am
by RobLatour
Cool, thank you so much for posting these.

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

Posted: Sun Jan 06, 2019 8:25 pm
by SimplyAName
Thanks for including me, glad someone else liked my card :D

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

Posted: Mon Jan 07, 2019 1:14 am
by Rykerr
Thank u bro. The world need more people like u.

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

Posted: Wed Jan 09, 2019 3:55 pm
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.

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

Posted: Thu Jan 31, 2019 6:11 am
by n01a
Not listed in youtube shortcut keys... END will skip to next video (0x23 keycode) and it's very useful

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

Posted: Sat Mar 02, 2019 6:07 am
by boreas
thanks alot... besides using them directly, these are really good for understanding the mechanics . Keep up the good work please.

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

Posted: Sun Jul 07, 2019 11:48 am
by omarjms
lov u man

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

Posted: Wed Jul 10, 2019 7:19 am
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 15368 times

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

Posted: Wed Jul 10, 2019 8:09 pm
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?