Sign in to follow this  
Followers 0
Thopaga

ClipPutFile problem

4 posts in this topic

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

Share this post


Link to post
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

Share this post


Link to post
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!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

Thanks UEZ, this was great, works like a charm.

Thanks also to Shanet and Deathbringer.

Deathbringer, that did not work for me though.

I really appreciate your kind help.

Thanks.

Share this post


Link to post
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
Sign in to follow this  
Followers 0