Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
111.3k stars 10.67k forks source link

scrcpy-noconsole.vbs on Windows 10 taskbar ? #2159

Open nr1995 opened 3 years ago

nr1995 commented 3 years ago

Hi, noob here. From what I understand, since v1.17, SCRCPY no-console is launched with a .vbs file. How can I pin that .vbs file directly to the Windows 10 taskbar, so that opening it is only ever one click away? The closest I've got is pinning cmake (I think) to the taskbar, and accessing scrcpy-noconsole.vbs from the jumplist. Thanks!

yume-chan commented 3 years ago

pinning cmake (I think)

For me it's wscript (Windows Based Script Host)

  1. Right-click the pinned icon
  2. Right-click on "Microsoft ® Windows Based Script Host"
  3. Select "Properties"
  4. In the "Target" input box, append " scrcpy-noconsole.vbs" (without quotes, but WITH the leading space)
  5. In the "Start in" input box, enter the full path of the folder containing "scrcpy-noconsole.vbs"
  6. Optional change the icon to something else you like
  7. Click "OK"
imRadwolf commented 3 years ago

@yume-chan I was 100% going crazy over this issue, you scratched an itch I was already prepared to live with forever, and for that, I am forever grateful to you. Live long and prosper Yume-chan <3

Vijay-Apple-Dev commented 3 years ago

pinning cmake (I think)

For me it's wscript (Windows Based Script Host)

  1. Right-click the pinned icon
  2. Right-click on "Microsoft ® Windows Based Script Host"
  3. Select "Properties"
  4. In the "Target" input box, append " scrcpy-noconsole.vbs" (without quotes, but WITH the leading space)
  5. In the "Start in" input box, enter the full path of the folder containing "scrcpy-noconsole.vbs"
  6. Optional change the icon to something else you like
  7. Click "OK"

I will try and update you :) thanks a lot. very happy about your tool :) thanks a lot :1st_place_medal:

Vijay-Apple-Dev commented 3 years ago

@yume-chan Thank you so much man :) it works after I followed your steps :100: Thanks a ton :)

scruel commented 3 years ago

pinning cmake (I think)

For me it's wscript (Windows Based Script Host)

1. Right-click the pinned icon

2. Right-click on "Microsoft ® Windows Based Script Host"

3. Select "Properties"

4. In the "Target" input box, append " scrcpy-noconsole.vbs" (without quotes, but WITH the leading space)

5. In the "Start in" input box, enter the full path of the folder containing "scrcpy-noconsole.vbs"

6. Optional change the icon to something else you like

7. Click "OK"

What about pin to the Win10 Start Menu?

yume-chan commented 3 years ago

What about pin to the Win10 Start Menu?

Same thing

  1. Open explorer
  2. In any folder, right click -> New -> Shortcut
  3. Input "wscript scrcpy-noconsole.vbs" (without quotes), Next -> Finish
  4. Right click on the shortcut -> Properties
  5. Change "Start in" to scrcpy folder -> OK
  6. Right click -> Pin to Start
scruel commented 3 years ago

What about pin to the Win10 Start Menu?

Same thing

1. Open explorer

2. In any folder, right click -> New -> Shortcut

3. Input "wscript scrcpy-noconsole.vbs" (without quotes), Next -> Finish

4. Right click on the shortcut -> Properties

5. Change "Start in" to scrcpy folder -> OK

6. Right click -> Pin to Start

It works, THX.

BluSleeper commented 1 year ago

Much easier to follow this:

  1. go to your scrcpy folder
  2. make a shortcut for scrcpy-noconsole.vbs (right click then 'make shortcut')
  3. copy the target properties of the shortcut (right click on shortcut, 'properties', copy 'target' contents)
  4. copy the 'target' contents to your favorite scrcpy shortcut (mine is "C:\Program Files\scrcpy-win64-v2.0\scrcpy-noconsole.vbs" because I placed scrcpy there)
  5. ENJOY!!! Your welcome!