Alexman Posted January 2, 2008 Share Posted January 2, 2008 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 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 More sharing options...
xzaz Posted January 2, 2008 Share Posted January 2, 2008 Do you got an example, why not write it directly into the file? Small Color Picker v0.2 | Travian bot Link to comment Share on other sites More sharing options...
Alexman Posted January 2, 2008 Author Share Posted January 2, 2008 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 More sharing options...
Bert Posted January 2, 2008 Share Posted January 2, 2008 You can do FileRead to access the data in the file The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Alexman Posted January 2, 2008 Author Share Posted January 2, 2008 You can do FileRead to access the data in the filehi, thnx for reply 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 fileand 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 More sharing options...
Alexman Posted January 2, 2008 Author Share Posted January 2, 2008 (edited) 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 January 2, 2008 by Alexman Link to comment Share on other sites More sharing options...
Alexman Posted January 2, 2008 Author Share Posted January 2, 2008 does anyone knew some clipboard size restrictions? or file size restriction but i think it's buffer want somethin' ... any thoughts? or link to read about it ... i would really appreciate it Link to comment Share on other sites More sharing options...
Bert Posted January 2, 2008 Share Posted January 2, 2008 You can also do other commands that will get around the size issue with the clipboard. In fact, you could do this with not using the clipboard at all. Look at the string commands and filewrite to do what you need. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now