[dba-Tech] Windows "macro"

Stuart McLachlan stuart at lexacorp.com.pg
Thu Oct 12 16:22:41 CDT 2023


I just downloaded the new AutoHotKey V2 and tested it

After installing it, I created a one line file and named it Test.ahk2.
The one line being:
^1:: SendText "This is a test"

The "^1::"   specifies the hotkey Ctrl+1.  Everything after the two colons is what to do when 
the hotkey is triggered. 


When I double clicked in it,  AHK started in the background and put an icon with that name 
in the taskbar "hidden icons".
The icon has a menu with various AHK options.

When AHK is running, hitting Ctr+1 gives this: This is a test

You can create as many different hotkeys as you want in the .ahk2 file  with any 
combination of Ctrl,Alt,Win and have it then trigger all sorts of complex actions (functions)


On 12 Oct 2023 at 7:40, Susan Harkins wrote:

> Thanks Stuart, I'll try that. 
> 
> Susan H. 
> 
> 
> A batch file won't work. You need  to write an application that can
> send keystrokes to whatever application your cursor is in.
> 
> AutoHotKey can do it easily and would be the probably be the simplest
> for you. to pick up.
> 
> 
> 
> On 11 Oct 2023 at 16:29, Susan Harkins wrote:
> 
> > Hello everyone! 
> > 
> > 
> > 
> > I tried the Notepad solution, described at 
> > https://windowsreport.com/windows-11-keyboard-macros/ to run a batch
> > file to enter text. It doesn't work, so I'm sure this is on me and
> > my expectations.
> > 
> > 
> > 
> > I enter the same text in a Monday board several times a day, so I
> > thought I could use a batch file to enter it for me. The batch file
> > runs, it just doesn't enter the text at the cursor, which is in a
> > Monday notations window.
> > 
> > 
> > 
> > 
> > Any help? I'm a guest on the board, so I can't run automations. Nor
> > have I tried any of the other solutions in that article.
> > 
> > 
> > 
> > Thanks in advance for your help. 
> > 
> > Susan H. 
> > 
> > _______________________________________________
> > dba-Tech mailing list
> > dba-Tech at databaseadvisors.com
> > https://databaseadvisors.com/mailman/listinfo/dba-tech
> > Website: http://www.databaseadvisors.com
> > 
> 
> 
> _______________________________________________
> dba-Tech mailing list
> dba-Tech at databaseadvisors.com
> https://databaseadvisors.com/mailman/listinfo/dba-tech
> Website: http://www.databaseadvisors.com
> 
> _______________________________________________
> dba-Tech mailing list
> dba-Tech at databaseadvisors.com
> https://databaseadvisors.com/mailman/listinfo/dba-tech
> Website: http://www.databaseadvisors.com
> 




More information about the dba-Tech mailing list