Questions tagged [shortcut]
A route more direct than the one ordinarily taken. A method or means of doing something more directly and quickly than and often not so thoroughly as by ordinary procedure.
2,556
questions
0
votes
0
answers
14
views
python selenium sendkey doesn't work in chrome
I'm trying to launch some browser (Chrome) functions by sending shortcuts
I have tried several methods but they all cannot work.
I do this by following these steps
Initialize the browser
from selenium ...
-1
votes
0
answers
8
views
Keyboard shortcut for unfocusing current element after pressing Tab [closed]
This is my first question on stackoverflow; I'm trying to learn to use Windows only with a keyboard, and I learned quite a few shortcuts so far. One useful trick is to press Tab to cycle through the &...
0
votes
0
answers
9
views
In python: How to retrieve the path of a window python opened by shortcut?
I execute some shortcuts by os.startfile().
If the shortcut is executed then a file explorer window pops up
and I want to know the current path of the explorer
to check if it's the right path to ...
-3
votes
2
answers
33
views
How do you get the next largest number, than a particular integer, in a list of integers? [closed]
Suppose a list [4,8,15,16,23,42]
Given the input value n, how do I find the minimum value in the above list that is greater than n, assuming n is not in the list? For example, 5 would yield 8, 17 ...
0
votes
0
answers
10
views
CMD configuration different if using start menu or win+r
I recently upgraded my win10 to latest version, during so I lost some RSAT tools, so that's solved now, but I noticed also that previously I had setup my CMD colors to red background for a 'run as ...
1
vote
0
answers
16
views
Is color of icon in a shortcut always black?
I am new to app shortcuts in Android. I am using ShortcutInfo.Builder for that.
I also set an icon with the SetIcon function. But the icon is always (at least on Pixel devices) displayed over a white ...
0
votes
0
answers
13
views
Visual Studio equivalent of Eclipse's Control+Q shortcut
is there an equivalent of Eclipse's control Q shortcut (go to the last edit) in Visual Studio 2015?
I've tried control shift backspace but doesn't work
I'm using it quite a lot and it's really tedious ...
0
votes
0
answers
25
views
Intelij Rider arrow keys moves next word instead of next character
A few days ago I was playing around with some keyboard shortcuts and changed something, but have no idea what i changed. Since then, when i press <right-arrow> my caret moves forwards to the end ...
0
votes
0
answers
22
views
Vscode run current line and go to next line or new line
I am using Vscode for python programming. In spyder, there is a feature that if after running the current line, it will automatically go the next line. I configure my vscode according to this post and ...
0
votes
1
answer
37
views
How to programatically set Shortcuts TargetPath to a website?
I want to use powershell to modify the TargetPath of a shortcut to open a website
I found the below script that almost works
function Set-Shortcut {
param(
[Parameter(...
0
votes
1
answer
44
views
How to get path of shortcut's icon file?
Is there a way to get the path of an .ico of a short cut?
I know how to change the shortcuts icon, but how do I find the path of the shortcut's icon file?
0
votes
0
answers
16
views
How to encapsule the following AutoHotKey statements into functions?
I'm using Barrier to control a Windows machine from macOS, and I would like to remap Windows key to Command key to perform more efficient shortcuts.
Traditionally, simple one line statements (e.g. #c::...
-1
votes
0
answers
12
views
How do I add keyboard shortcuts for PowerPoint ribbon control?
How do I add Keyboard shortcuts (Ctrl + uparrow) for PowerPoint ribbon button coding using vsto?
1
vote
2
answers
25
views
How do I get the target of a web shortcut lnk file?
This is a rather unique issue, I'm finding. I have created a web shortcut using the following script:
$target = "http://internalwebsite/subsite"
$shortcut_lnk = "$publicDesktop\...
0
votes
0
answers
9
views
Docstring Doesn't show in Visual Studio Code (VSCode) in macos
when I am coding on vscode on macOS, vscode doesn't show a docstring of methods
for example
I wrote "pd.Series()" but it didn't show me a docstring!
How can I solve this?
Or what shortcut on ...
0
votes
0
answers
11
views
How do I send the proper payload through HTTP on iOS shortcuts?
I would like to make a POST request to my website: example: www.example.net.
I got this to work easily on Python, using below code:
import requests
resp = requests.post('http://example.net', data = {'...
-1
votes
1
answer
15
views
How can I make Apple Shortcuts speak text in a different language than the one set for the device?
My iPad Pro is set to work in language x (let’s say, English).
I’m writing a Shortcut that’s supposed to speak text in language y (let’s say, Italian).
Shortcuts instead speaks the text in English. ...
0
votes
0
answers
24
views
How to do shortcuts using selenium and python for tor browser?
I am trying to create a new identity (Command+Shift+U) in the tor browser controlled by python and selenium. Unfortunately, sendkeys does not work and I would prefer to use a headless browser and not ...
0
votes
0
answers
7
views
Visual Studio, collapse/expand all regions with the same name
In Visual Studio you can collapse/expand all regions with Ctrl+M+O / Ctrl+M+L
But is it possible to collapse/expand only regions with the arbitrary name?
#pragma region foo
// some code
#pragma ...
-2
votes
0
answers
31
views
Flatten JSON in VS code
How to flatten a json in VS code
{
"date": 132456789087,
"name": "n1"
}
{
"date": 132456789034,
"name": "n2"
}
like this
{&...
-1
votes
0
answers
19
views
iPhone 13 shortcut - Bluetooth On
I just got my iPhone 13 and am learning about Shortcuts. I use a Bluetooth all the time. I've tried to create a shortcut to turn it on and am having trouble making it work. I would like to have ...
-1
votes
0
answers
11
views
Extract original JavaScript Code from Bookmarklet
I have a bookmarklet, that I use regularly.
I'd like to utilize the JavaScript Code from the Bookmarklet in the Apple Shortcuts App.
Any way to extract the code from this Bookmarklet, to get ...
0
votes
0
answers
7
views
How do I reset keyboard shortcut on mac?
I use Screenflick for screen recording. For years, the shortcut Shift+CMD+2 brings up the app w/ no issues.
It still does but now when I do it, the app comes up but my cursor becomes a cross which ...
0
votes
1
answer
16
views
Atom editor end of line shortcut (without end button)
In my laptop keyboard I can move cursor to end of line by pressing FN + right arrow buttons.
Now I am coding on a desktop and this keyboard doesn't have that combination.
I can move cursor to end of ...
0
votes
1
answer
58
views
Open Chrome url in open tab with Python
I have to bring to front a Chrome tab (already open) with code.
More precisely, I have a tab (with its url) open in a Chrome browser (in kiosk mode) and, when the tab is in background, I want to bring ...
0
votes
0
answers
25
views
Create Keyboard Shortcuts using Python
I'm trying to create shortcuts for my python application.
I try EVT_HOTKEY form Core: EVT_HOTKEY = wx. PyEventBinder( wxEVT_HOTKEY, 1)
The problem is: these shortcuts have affected other programs. For ...
1
vote
0
answers
43
views
visual studio 2019 move c# class to a new file
for a better organization of the project I have a class file in a separate directory (same project folder ofc). when i create a new class inside a class file that is in the root directory of the ...
0
votes
0
answers
13
views
How to Zoom in /out in emacs -nw (command line only) whithout having a numeric keypad (or mouse wheel)? [duplicate]
I am having trouble finding the shortcut for Zooming (increasing font size) / unZooming (decreasing font size) in emacs. I must add that I am interested in the command-line emacs (i.e. no window, i.e. ...
0
votes
1
answer
17
views
Change shortcut of subscript from 'ctrl+_' into 'ctrl+l' failed?
I want to change the shortcut of subscript from ctrl+_ into ctrl+l. I find the KeyEventTranslations.tr file, successfully change superscript from ctrl+6 into ctrl+h. But when I do the same thing to ...
1
vote
1
answer
34
views
PhpStorm shortcut to wrap text with function call
I'm in PhpStorm and I need to select some text, press some shortcut and have that text wrapped in a function call (that I would have defined somewhere in the settings beforehand).
For example:
"...
-1
votes
1
answer
17
views
Save text to file shortcut Monterey
I try to create a shortcut for macOS Monterey to export data from Tim (a time tracker) and save that data to a file.
I am able to do the first step (export data), but I have no idea how to do the ...
0
votes
1
answer
114
views
Visual Studio Community 2022 inline hints shortcut
What is the inline hints on/off shortcut in visual studio 2022?
I checked these checkboxes and it works but the shortcut Alt+F1 not work. (Visual Studio Community 2022 (64-bit) - Preview
Version 17.2....
0
votes
1
answer
24
views
Shortcut to create a Java Object in Vscode
Is there a keyboard shortcut to create an object in Java in VScode or how to write a User Snippet for that.
i.e. shortcut for "Object_TYPE ref_VAR = new Constructor();"
0
votes
0
answers
8
views
Coding an automated shortcut to interact with the Health App on iPhone
I am trying to write a shortcut that can log data into my health app for me, but I cannot figure out what kind of script I need to write to do this. On the Mac, I can use AppleScripts to press buttons ...
0
votes
0
answers
21
views
PhpStorm shortcut to make caret go in between open and close php tags
I started using PhpStorm some time ago and still couldn't find how to fix this issue.
Every time I type php and Tab key, it makes the entire open and close php tags (<php ?>), however, the ...
0
votes
1
answer
23
views
Call dll which is in folder other than system32
I want to call my dll through a shortcut, but I need to identify the current directory the dll is in.
At the moment I can only call it this way:
C:\Windows\System32\rundll32.exe C:\Users\Public\BUS....
-1
votes
1
answer
40
views
Vim mapping for diffget | diffput not working with v:count
Pretty new to mappings in Vim,
In Diff Mode I've got C-Up and C-Down mapped to [c and ]c for diffjumping. I'm wanting to map C-Right and C-Left to :<C-U>diffput v:count<CR> and :<C-U>...
0
votes
0
answers
11
views
Is there a keyboard shortcut to insert R code inline in RMarkdown?
I have been trying to find a shortcut to insert
`r `
and this is because I frequently write my code in different computer with different keyboards and it is quite complicated to find the ` symbol on ...
0
votes
1
answer
92
views
Automatically create Website Shortcut to Home Page of mobile screen
I want to create a button on my website "Save this website to my phone." that when clicked will create a url shortcut (with icon, similar in appearance to a phone app) and will be placed ...
0
votes
1
answer
57
views
Run active python file in active terminal or specific location pointing terminal with keybinding
In VsCode I am trying to find how i can :
Run ACTIVE python file in ACTIVE integrated terminal with shift+enter
Note: I already have a key binding to "Run active file in active
terminal" ...
0
votes
1
answer
48
views
How to create a custom command linked to a shortcut in VSCode
I am looking on how to create a custom command linked to a shortcut in VSCode.
Like so:
{
"key": "shift+enter",
"command": "-python.execSelectionInTerminal&...
0
votes
2
answers
101
views
How to add Siri Shortcuts Actions (SiriKit Intents) to an App?
I'm working on building my first app, and I need to add Siri Shortcuts actions (SiriKit Intents) to it, I honestly am not able to find any reliable resources online which are up-to-date with the ...
0
votes
1
answer
42
views
Tkinter bind Mac OS "command+q"
I'm trying to "stop" the root window exiting when I press "Command+q" but it's impossible.
The other key shortcuts work on my Mac OS, even in Windows/Linux, "Alt+F4" bind ...
0
votes
1
answer
27
views
Is there a way to create a class instance passing to the constructor a list of attributes? [duplicate]
Let's say I have this class
class Foo:
def __init__(self, a, b, c):
self.a = a
self.b = b
self.c = c
Is there a way to make a shortcut in the constructor arguments so ...
0
votes
0
answers
48
views
How to use registry to set shortcut keys in Windows?
I want use registry to set shortcut keys in Windows.
For example,I should open cmd when I press Win+T.
But I won't set it.
Thanks for dalao
0
votes
0
answers
16
views
Create keyboard shortcut for VS Code for super/subscripts in Markdown cell
I take notes in jupyter notebook markdown cells, and often times I need to note something with a super or subscript, but it takes a (relatively) long time to use the LaTex form $a_{n}$ or $a^{n}$.
I ...
0
votes
0
answers
17
views
Toggle Wifi on Apple Watch programatically?
I want to switch on/off Wifi/BT on BOTH iPhone and Apple Watch at a certain time of day WITHOUT any user interaction.
What I have tried so far:
I found out that there is no direct API for iOS or ...
0
votes
0
answers
50
views
tcolorbox in RMarkdown with shortcuts
I'm using the LaTex library tcolorbox in a RMarkdown document to list R code with tbclisting{...}. It works fine when I use the full command is used in the document
\begin{tcblisting}{colback=red!5!...
-1
votes
1
answer
68
views
Mapping Function keys with Shift or Command in Terminal app for vim
I want to map the combination of functions keys and shift/command to make a toggle for vim in macOS default Terminal app.
For example,
map <S-F5> [something Toggle]
or
map <C-S-F5> [...
1
vote
1
answer
70
views
How to pass an argument consisting of multiple parts to bash in WSL intance when creating a shortcut on Windows?
I want to create a shortcut which starts Windows Terminal with WSL and exports the path to my arm-gcc compiler files. Looking over other posts on SO, I've gotten this in the target of the shortcut:
wt....