I have an application which has a shortcut key Ctrl + Shift + Q to quit it. I want to press Ctrl + Shift + Q via AutoIt to exit my application. I tried it as below:
Send("{LCTRL} {LSHIFT} Q")
and
ControlSend("{LCTRL} {LSHIFT} Q")
But none of them did work. Please guide me to do it the right way.
You want something like:
Send("{CTRLDOWN}{SHIFTDOWN}q{CTRLUP}{SHIFTUP}")
What you are sending presses the keys individually in sequence, rather than chaining them together. Hope that helps!
Source: www.autoitscript.com
Please use the below option
Send("^+{F}")
The keylists are available in the AutoIt Help link, take a look at Send Auto Keys List
Related
I have the arrow keys of the keyboard broken so I though to use the combination Ctrl + "asdw" instead. As an example, if we want to change the down arrow key, my question is: how can I remap it to Ctrl + s. Through KeyCode I got that Ctrl + s is:
Also,
How can I add it to hidutil code knowing that the down arrow code is 0x700000051?
Thanks,
At the end, since I want to replace the arrowkeys for Ctrl + "asdw", I decided to employ a specific third-party app which I read in the comments of a post: BetterTouchTool. Since the remap is done easily, at the end I replaced all the arrows with Fn + "asdw", as well as any combination of Opt/Ctr/Cmd + arrow with Opt/Ctr/Cmd + Fn + "asdw". It is not the best solution but it works nicely fine!
I have the following map:
>!+a::SendInput,+{Delete}
It's supposed to send Ctrl+Delete (delete word after cursor) when I press RightAlt+Ctrl+a but instead it's sending a Ctrl+Alt+Delete signal so it's bringing up the Windows 7 menu of shutdown, start task manager etc.
How can I send the right signal?
Appreciate any help!
The problem you are facing is that Ctrl + Alt + Delete is hard coded and is uninterruptible. There's simply no way around it, if you press that sequence, even with the Command BlockInput enabled, Windows will re-enable input and execute the command...
Try:
>!^a:: ; + symbol is Shift ^ represents Ctrl key
KeyWait, RAlt ; Waits for Right Alt to be released before Ctrl Delete is sent
SendInput,{Ctrl Down}{Delete}{Ctrl Up}
Return
An alternative although it works the exact same way:
>!^a::
While (GetKeyState("RAlt", "P"))
Continue
SendInput,{Ctrl Down}{Delete}{Ctrl Up}
Return
I'll continue to pursue other options.. at the moment I can I think of no better way to do this.
I was wondering if it was possible to shorten code automatically in the last version of xcode. You know, when you press on the side of a void method for example and the (...) appear, and you have a shorter page. Is there a command to do it?
Click on the Editor>Code Folding menu and you'll see all your options for this, along with the keyboard shortcuts.
The shortcut is cmnd + shift + option + left arrow key. This will collapse all functions.
You can press command + alt + left cursor key on your keyboard to fold your codes or press command + alt + right cursor key to unfold. Make sure your pointer is inside of the curly brackets.
Is there a keyboard shortcut to display tooltips provided by Visual Studio & Resharper when you hover over a bit of code? I'm already aware of Quick Documentation (Ctrl + Q) and Quick Watch (Ctrl + Alt + Q).
Do you mean Ctrl + K, Ctrl + I? This is the command Edit.Quickinfo.
(sorry, I am unable to add a comment with the PC I have now)
For the single variable, do you mean in debug mode ?
2nd Edit: I think VS names these tooltips 'datatips'. Unfortunately, there is no command to show them, so no possible shortcut.
You can do it by binding this command to a key:
EditorContextMenus.CodeWindow.PinToSource
Unfortunately it works with what you have selected, not with what you are hovering over. Not only do you have to do the extra click, but you need to select the entire variable name and all of its prefixes as well.
Old question but useful to know.
My shortcuts:
PinToSource set to alt-F1
ClearAllDataTips set to shift-alt-F1
CTRL+ALT+Q
It is equivalent to
SHIFT+F9
I am doing a lot of refactorings with Resharper.
It would be really nice if there was a way to tell Resharper to fix everthing it finds as it sees fit.
Anyone know a way to do that?
You can use the Code Cleanup command (Ctrl + Alt + F) and choose a cleanup profile. If you want to do it with one command, use (Ctrl + Shift + Alt + F) and it will allow you to select a default cleanup profile, and do it automatically from that point on. (until you change it again through the options menu)
I don't believe this is possible.