Failed to save clipboard data

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
1989854113
Posts: 1
Joined: 16 Apr 2021, 06:42

Failed to save clipboard data

Post by 1989854113 » 16 Apr 2021, 07:55

Code: Select all

fileObj := fileOpen("C:\Users\ADMIN\Desktop\test", "w")
clipData := clipboardAll()
fileObj.rawWrite(clipData)
fileObj.close()
Error: This value of type "Object" has no property named "Ptr".
---> 003: fileObj.rawWrite(clipData)

Function FileAppend makes the same error.
Version 2.0-a126-ddaf72c8

swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: Failed to save clipboard data

Post by swagfag » 16 Apr 2021, 09:07

but its working on a131(current)
ima go out on a limb and say its Buffer base is probably not getting assigned for some reason, but whether anyone would want to sink time investigating why...

User avatar
boiler
Posts: 16768
Joined: 21 Dec 2014, 02:44

Re: Failed to save clipboard data

Post by boiler » 16 Apr 2021, 09:12

You don't happen to have a folder named "test" on your desktop, do you?

Post Reply

Return to “Ask for Help (v2)”