I have a legacy text based database whose data cannot be exported. I have to use mouse to select data on screen, and do ctrl+c to copy them to a txt file. I have managed to do this using AutoHotKey. Now I want this to be run in the background without interfering my other job on the computer.

The database will be an inactive hidden window. I could use ControlClick and ControlSend to type things. But I cannot select a piece of text like the way I do when the window is active. I tried the following but it does not work:

```
ControlClick, X%dat_x1% Y%dat_y1%, ahk_id %database_window_id%,,,,NA D
ControlClick, X%dat_x2% Y%dat_y2%, ahk_id %database_window_id%,,,,NA U

```

I guess it's because the mouse isn't moved using ControlClick. Can anyone please help me with this? Thanks.