Paste current date in Windows - windows

I am wondering about solving one simple problem. I would like to when I press some specific key combination that system automatically paste date in format yyyy-mm-dd. Is it possible to do this in some painless way. It should work like in excel when you press CRTL + ;.
I will be grateful for any help you can provide.
Best regards.

Please look at this script AutoHotKey: Paste the current date into any program. You also will need AutoHotKey software

Related

How to show hexdecimal view of integers in Clion and PyCharm?

I found this help https://www.jetbrains.com/help/clion/using-hexadecimal-view.html
but it relies on long keystroke to call maintenance popup, which is probably not working on my machine (a lot of keystrokes not working).
Is it possible to call this setting w/o keystroke?
I'm using the following trick. In the Variables view add ".hex()" for bytearray
You can call Help | Find Action (or press double Shift) and search for 'Maintenance'.

Customize windows hotkeys

My question is about a way to speed-up everyday writing. I'm often required to repeat certain text-snippets in different forms. One way is to use:
Ctrl-C and Ctrl-V
but I want to keep the Ctrl-C for temporary text-snippets and be able to create a custom hotkey where I predefine the text that I can paste, e.g. if I press Ctrl-T, while having the mouse in the url-entry in a browser, a string like "hi, I hope you are well!" will be pasted. I have been looking into using the windows powershell, but I'm not experienced enough to do this...
Thx for any help (be gentle, this is my first question!) and thx for all the help throughout the years :)
Ahh it seems #EBGreen's idea did provide a good answer! Thanks :) Here is what I found:
^j::
Send, name.surname#company.com
return
binds Ctrl+j to the string "name.surname#company.com", when using the autohotkey-language.
Check out https://autohotkey.com/ for more details!

Type a pre defined text when a shortcut key is pressed in Windows 7

I work on mainframes and don't have much knowledge about windows other than playing warcraft :-) hence pardon me if I ask something nooby/silly.
I have a requirement to enter a particular long-text in the current position of a cursor whenever a shortcut key is pressed.
I am thinking of creating a bat file and assigning a windows keyboard shortcut to the bat file and whenever I have requirement to enter the long text, I press the windows shortcut key
and the long text gets typed in the current position of the cursor.
The current position of the cursor can be in any application, like Excel, Word or notepad or Windows dialog prompts.
Could you please let me know if this is possible and point me where I could get some information about this "technique".
Thanks & Regards,
Vasanth.S
To make a single key combo do what you are asking, you may need another program. You can make a link to a batch file, hook up a shortcut and then use the clip command to copy text from a file onto the clipboard. That would require the shortcut and then a Ctrl+V to paste. The batch file would look like this:
clip < c:\SomeDir\sometext.txt
You might like to look at using a clipboard manager - which saves a history of clipboard entries, can search for an entry, and paste it at the cursor.
Ditto and CLCL are both useful and free - which one you use depends on your windows version.
They are hotkey driven for ease of use, but mouse can be used.

Batch file to set the position of the curser on windows 7 OS. How?

is it possible to make a batch file that sets the position of the mouse/curser to an (x,y) coordinate on the screen? and if so, then is it possible to click on something that is in that position? Any ideas would be helpful! Thanks!
No. You would have to have a seperate executable to do this for you.
It may be possible in VBScript.
P.S. If you're interesting in automating tasks I'd download something like a mouse recorder for something simple like that. If you're automating more complicated tasks, give a shot at Autoit.
No and Yes.
You can't place the cursor at Position X,Y with pure batch, but you can replace the cursor to the home position in one line, and then you can rewrite the content.
For detecting mouse clicks with batch you need an external tool.
Try a look at Lingubender Tan's Batch tools
EDIT: You can place the cursor with pure batch to the home postion, but I need the help of the user, till now.

What is the most efficient way to cut/paste in Visual Studio?

I find that I am cutting and pasting a LOT when I program. For example, method, variable and class names are things I regularly cut/paste. I do use "ctrl+space" after typing part of a word to autocomplete them or popup intellisense when there's duplicates found.
But just for straight copy/pasting do you guys have any good shortcuts/tricks/tips to use?
I already use these shortcuts as I program but I wonder if I am missing anything?
ctrl+x (with nothing selected)
ctrl+v (with nothing selected)
ctrl+l (with nothing selected)
ctrl+shift+arrowKeys
If I could copy/paste quicker I think I'd be able to write code quite a bit faster.
In Visual Studio has multi-paste.
pressing Ctrl+Shift+V allows you to paste any of the 10 last things you cut/copied.
Install and learn ViEmu.
I have more of a hardware solution. On my MS 4000 keyboard I have the back and forward buttons right under the space bar bound to copy and paste respectively. This actually makes copying and pasting much easier than I thought it would when I first did it.
I use ClipX, which gives you system-wide multi-paste. You can paste any of the last [configurable number] of things in your clipboard. You can also save "favourite" items, which stick on the list forever.
Shift + Page Up/Down to select everything below/above the cursor.
If you're not using ctrl+shift+arrow to select whole words/lines, then that can help a lot.

Resources