Copy Stored Variable to Clipboard Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
Vaklev
Posts: 47
Joined: 04 Mar 2019, 13:58

Copy Stored Variable to Clipboard

Post by Vaklev » 31 May 2019, 09:28

Hey guys, I have a hotkey that retrives the x/y coordinates of my mouse, I got it pop up a msgbox, but I also want it to copy the x,y coordinates with a comma between to the clipboard, here is my code but it's not working, please help!

Code: Select all

f12::
MouseGetPos px, py
MsgBox %px%,%py%
Clipboard = %px%,%py%
return

User avatar
Hellbent
Posts: 1061
Joined: 23 Sep 2017, 13:34

Re: Copy Stored Variable to Clipboard

Post by Hellbent » 31 May 2019, 09:42

Your code works fine for me.
Is it not putting anything into your clipboard?

Vaklev
Posts: 47
Joined: 04 Mar 2019, 13:58

Re: Copy Stored Variable to Clipboard

Post by Vaklev » 31 May 2019, 09:44

It's supposed to put in the coordinate values which should be two numbers, and no its not storing those

EDIT:

I just solved it, I had to click ok in the msg box for it to work, is there a way for it to store the values without me having to close the msgbox value?

Edit 2:

Hellbent it's you!!! I just want to say thanks for all the guides! you got me into ahk man I really appreciate your videos i've seen all your series!

User avatar
Hellbent
Posts: 1061
Joined: 23 Sep 2017, 13:34

Re: Copy Stored Variable to Clipboard  Topic is solved

Post by Hellbent » 31 May 2019, 09:49

Put the msgbox after you put it into your clipboard

Edit, I'm happy to hear it man.

Vaklev
Posts: 47
Joined: 04 Mar 2019, 13:58

Re: Copy Stored Variable to Clipboard

Post by Vaklev » 31 May 2019, 09:51

Hellbent wrote:
31 May 2019, 09:49
Put the msgbox after you put it into your clipboard

Edit, I'm happy to hear it man.
Wow I feel dumb lol such a simple fix.... thanks man haha

Post Reply

Return to “Ask For Help”