Jump to content

ClipPutFile problem


Thopaga
 Share

Recommended Posts

Hello.

I was wondering if someone can help me.

Running Windows XP SP3 and get @error=9.

What I am doing wrong here?

Thanks.

#include <Misc.au3>

Local $fTest

$fTest = _ClipPutFile(@TempDir & "\listsoftware.txt")

If Not $fTest Then

MsgBox(0,"_ClipPutFile() call Failed","@error = " & @error)

Else

MsgBox(0,"_ClipPutFile()","Content of Clipboard:" & @CRLF & ClipGet())

EndIf

Link to comment
Share on other sites

Hello.

I was wondering if someone can help me.

Running Windows XP SP3 and get @error=9.

What I am doing wrong here?

Thanks.

#include <Misc.au3>

Local $fTest

$fTest = _ClipPutFile(@TempDir & "\listsoftware.txt")

If Not $fTest Then

MsgBox(0,"_ClipPutFile() call Failed","@error = " & @error)

Else

MsgBox(0,"_ClipPutFile()","Content of Clipboard:" & @CRLF & ClipGet())

EndIf

According to another thread, error 9 is GlobalFree Failed. I dont know the answer, but hopefully it can help someone else fix your problem.

[font="Comic Sans MS"]My code does not have bugs! It just develops random features.[/font]My Projects[list][*]Live Streaming (Not my project, but my edited version)[right]AutoIt Wrappers![/right][/list]Pure randomness[list][*]Small Minds.......................................................................................................[size="1"]Simple progress bar that changes direction at either sides.[/size][*]ChristmasIt AutoIt Christmas Theme..........................................................[size="1"]I WAS BOOOORED![/size][*]DriveToy..............................................................................................................[size="1"]Simple joke script. Trick your friends into thinking their computer drive is haywire![/size][/list]In Development[list][*]Your Background Task Organiser[*]AInstall Second Generation[/list]BEFORE POSTING ON THE FORUMS, TRY THIS:

%programfiles%/AutoIt3/autoit3.chm
Link to comment
Share on other sites

Here a workaround / another variant:

#Include <Clipboard.au3>
_ClipBoard_Open(0)
_ClipBoard_Empty()
$txt = FileRead(@TempDir & "\listsoftware.txt")
_ClipBoard_SetData($txt, $CF_TEXT)
_ClipBoard_Close()
MsgBox(0,"_ClipPutFile()","Content of Clipboard:" & @CRLF & _ClipBoard_GetData())

Br,

UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...