Jump to content

Kayage

Members
  • Posts

    4
  • Joined

  • Last visited

Kayage's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Dear script gurus, I have a text file as big as 1GB++ (too big to be opened by notepad and would consume too much memory if opened up under wordpad. What I would like to do now, is to write a scrip to break that big file into a few text files (eg. to split that 1GB file to 4 250MB files or even more) for it to be managable. I am new in AutoIT scripting and from what I read (the help function and sampels of scripts posted), I can either choose to read the 1GB file, line by line and write it to another file, setting criteria to save, close and open up new file to populate, thus breaking the file down to a few chunks; or Read the whole file into an array and then break it out into mane smaller files. Not too sure the latter method would work as my PC runs on 2GB of RAM (and from experience, the last time I attempted to open up the 1GB file, my RAM utilisation went up to 2.5GB!! almost crashing my OS!) Where else, the former method, could take ages to complete. Is there another method to work on this?... pls advise. thank you.
  2. Thanx Weaponx for your kind reference. I studied the 2 functions you gave me and understand the former one. The latter one, however, I am having some difficulty understanding. eg: in http://gmail.google.com, there are 2 buttons. i attempt to run the _IEFormElementGetCollection function but get nothing from it. below is my sample code: #include<IE.au3> $oIE = _IECreate(0) _IENavigate($oIE, "http://gmail.google.com") _IELoadWait($oIE) $oForm = _IEFormGetCollection ($oIE, 0) $oQuery = _IEFormElementGetCollection ($oForm, 1) MsgBox(0, "eof Script", $oQuery) what i want to do is capture the text in the 2 buttons i.e the 'Sign in' and the 'Pick a name >>' button. Thanx
  3. I browsed thru the AutoIT help but could not seem to find the function that I need. Yes, I am new on this scripting language and am learning the trades as I post this question. I would appreciate some help and advice for the following: 1. What is the function to use to detect the completion of a page load. Eg. I execute a login command via the AutoIT script. I would like to execute another function, but i need to page to complete loading 1st. 2. I know I can do a search on the particular page by executing this function Send("^f") follow by send(<text search>). However, this method would not detect strings on buttons. eg. if there is a button with the word 'Run', the Send("^f") function cannot detect it. What other options do I have. Is there another method of performing a search on the page instead of Send("^f")? Thank you for your kind help and advice
  4. Hi tAKTelapis, when you mention 'Pixel search', what do you mean? Can you give an example of a function doing pixel search? I am learning up the scripting language for this application. It is interesting and I realised I have a long way to go
×
×
  • Create New...