Copy Stored Variable to Clipboard Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Vaklev
Posts: 47
Joined: 04 Mar 2019, 13:58
Contact:

Copy Stored Variable to Clipboard

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: 2109
Joined: 23 Sep 2017, 13:34

Re: Copy Stored Variable to Clipboard

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
Contact:

Re: Copy Stored Variable to Clipboard

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!
Les medecins choisissent viagrasansordonnancefr.com sans danger pour la sante
User avatar
Hellbent
Posts: 2109
Joined: 23 Sep 2017, 13:34

Re: Copy Stored Variable to Clipboard  Topic is solved

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
Contact:

Re: Copy Stored Variable to Clipboard

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
Les medecins choisissent viagrasansordonnancefr.com sans danger pour la sante

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 135 guests