miketh2005 Posted May 6, 2010 Share Posted May 6, 2010 Hey guys. I'm going to need to be using FileOpen alot, and going over in my mind what I have to do. I need to erase lines from a document, how would I do this? On a separate note, How would I go about pasting something from the clipboard to a line on a document? Using FileWriteLine? But how? Can I use "^v"? Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted May 6, 2010 Share Posted May 6, 2010 ClipGet .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
somdcomputerguy Posted May 6, 2010 Share Posted May 6, 2010 ClipPut - Writes text to the clipboard.ClipGet - Retrieves text from the clipboard.As for erasing lines from a document, it would be hard to make suggestions not knowing details.. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
miketh2005 Posted May 6, 2010 Author Share Posted May 6, 2010 Ohh, I see how to use ClipGet now... put it in a variable... Thanks! well, If you must know details, I have lines in a document the bot reads with FileReadLine and pastes in a form on a website, when it uses the line, I want it to erase the line... anyway to do that? thanks again. Link to comment Share on other sites More sharing options...
somdcomputerguy Posted May 6, 2010 Share Posted May 6, 2010 I'm assuming this a text file, and using any of the File.. Functions are a sure way to 'edit' such a file. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
miketh2005 Posted May 6, 2010 Author Share Posted May 6, 2010 Hmm.. I know about the file functions, but I don't know any that can delete a line... can FileOpen do such a thing? Thanks. Link to comment Share on other sites More sharing options...
somdcomputerguy Posted May 6, 2010 Share Posted May 6, 2010 (edited) I haven't actually done any of this myself yet, but the way I understand it is like this: Read all the lines from a file, but only some or most of them are written back, thereby the lines that aren't written back are 'deleted'.. Search the forum for some examples, I've seen many posts here related to that. Edited May 6, 2010 by somdcomputerguy - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
miketh2005 Posted May 6, 2010 Author Share Posted May 6, 2010 Hmm.. Thanks. Actually, I wanted to delete the lines that I've already used, so that I can loop the bot. 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