Jump to content

need help with clipboard


Recommended Posts

hi, i'm copyin' text to clipboard and from clipboard writtin' it to file...

but what can i do, if filesize bigger than 7K it have a lot of mistakes... somethin' like cuttin' some data from clipboard :P

how could i increase clipboard size or how i could make clipput without losin' data in it

any suggestions? :)

Link to comment
Share on other sites

Do you got an example, why not write it directly into the file?

#include <Misc.au3>
#include <File.au3>

MouseClick("left", 50, 315, 1, 1)
        Send("{CTRLDOWN}")
        Send("{A DOWN}")
        Sleep(10)
        Send("{CTRLUP}")
        Send("{A UP}")
        Sleep(10)
        Send("{CTRLDOWN}")
        Send("{C DOWN}")
        Sleep(10)
        Send("{CTRLUP}")
        Send("{C UP}")
        Sleep(10)
        
        $buffer = clipget()

        _FileCreate ( "temp.log" )
        $file = FileOpen("temp.log", 2)
            If $file = -1 Then
                MsgBox(0, "Error", "Unable to create|open file.")
                Exit
            EndIf
        FileWrite($file, $buffer)
        FileClose($file)
        
        Exit

and it works great until the temp.log < 7Kb

than this copy/paste doesn't work correctly... cut part of the text

Link to comment
Share on other sites

You can do FileRead to access the data in the file

hi, thnx for reply :P

but i do not need to read from file, as u see what i just tryin' to do, is to make ctrl+a&&ctrl+c at textarea and than move it into the file

and i'm doin' this great... but text in the textarea incrementin' and it becomes more and more text there...

so when i grab it after some time, and symbol size become more than 7Kb ... it cut the last lines... so i put at my file via clip incorrect information.

that's why i'm interestin' what it could be? 7Kb retreive clip of the windows? as i knew it depends on your ram memory... memory leap i couldn't have here too, 'caz i don't have huge operations...

i just losin' myself :)

p.s. sorry for engl... tired a lil bit

Link to comment
Share on other sites

also as i knew we donna need to clear the clipboard... it seems to overwrite itself each time i call it

am i right?

oooh, have someting, it works till 500 lines in it... and maximum size right now 15Kb not more not less

am i completely stupid? :)

Edited by Alexman
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...