Copy to clipboard without using ^c?
- milkygirl90
- Posts: 565
- Joined: 10 Nov 2020, 21:22
Copy to clipboard without using ^c?
I have a script that uses ^c to trigger some code. However, another piece of code requires me to copy text from the application. Is there any code I can use which can bypass ^c to copy the text?
-
- Posts: 1472
- Joined: 05 May 2018, 12:23
Re: Copy to clipboard without using ^c?
Code: Select all
var := "test"
clipboard := var
Re: Copy to clipboard without using ^c?
How about changing your script to use something other than ^c to trigger the code?
- milkygirl90
- Posts: 565
- Joined: 10 Nov 2020, 21:22
- milkygirl90
- Posts: 565
- Joined: 10 Nov 2020, 21:22
Re: Copy to clipboard without using ^c?
I have to first copy the text from application to clipboard first, hence can't assign it within ahk first.AHKStudent wrote: ↑31 Jul 2021, 23:14You could use things like ControlGetText and a lot of other ways to get text and put in clipboardCode: Select all
var := "test" clipboard := var
Can't use control either cos there's no focused control:
https://i.imgur.com/IKX5M0t.png
Re: Copy to clipboard without using ^c?
If you can copy by right-clicking and selecting "Copy" from a context menu, then you can simulate that.
-
- Posts: 1472
- Joined: 05 May 2018, 12:23
Re: Copy to clipboard without using ^c?
Another option is ACC but do not know if it will work with this java based program.milkygirl90 wrote: ↑01 Aug 2021, 00:28I have to first copy the text from application to clipboard first, hence can't assign it within ahk first.AHKStudent wrote: ↑31 Jul 2021, 23:14You could use things like ControlGetText and a lot of other ways to get text and put in clipboardCode: Select all
var := "test" clipboard := var
Can't use control either cos there's no focused control:
https://i.imgur.com/IKX5M0t.png
Who is online
Users browsing this forum: Google [Bot], Mannaia666 and 410 guests