
setirich
Active Members-
Posts
41 -
Joined
-
Last visited
Everything posted by setirich
-
The SciTE editor on my workstation has suddenly gone to 'more than max' size, and is missing its control items generally in the upper right corner. In fact, the entire 'title line' that contains these items are missing. I must have hit a combination of keys that produced this, but after searching through SciTE docs, I can't seem to find any clue on what will undo my error. Any ideas on where to look? Thanks, Rich
-
I'm not sure why eval would help me. I already know the specifics of the java as it's like this (for page 2): <a style="color: white;" href="javascript:__doPostBack('gvResults','Page$2')">2</a> Each page will be similar with a change toe the ~Page$2">2</a> to Page$3">3</a> I think this is one of those things that requires a 'real' click on the >2< and it's just a question of how to actually do that. But then, I'm probably totally wrong....8-\
-
Thanks for your replies. I'm using the latest (?) AU3 version 3.3.14.2, and I've used the built in IE.au3 since it was first released as part of the general release. I think I used Dales original UDF since he first posted it years ago. There is not a simple URL change on page change. That's always the first choice for simple scraping. Here is the URL for the search page: http://www.occeweb.com/MOEAsearch/index.aspx For example, put in just the letter p in the last name box, and select the Begins with option button. you'll get 2793 records, and that will be 280 pages. My experimentation so far actually gets the data on the page, but will not advance to page 2, 3, etc. Therefore, I get many copies of the first page, which is not what I want.
-
Hi All! Having a problem with clicking on a specific web page location. Of course, it's Javascript, and that just make it 10x harder. I'm doing all the searching within this construct $Htmcpy = _IDBodyReadHTML($oIE) I then write out the page to a file, and then attempt to find and click on the next page indicator. I can locate the proper spot within the string easy enough, but having trouble with what I do to click on the page marker. Here is the HTML string that contains the item to click on: <td><span>1</span></td><td><a style="color: white;" href="javascript:__doPostBack('gvResults','Page$2')">2</a></td><td><a style="color: white;" href="javascript:__doPostBack('gvResults','Page$3')">3</a></td><td><a style="color: white;" href="javascript:__doPostBack('gvResults','Page$4')">4</a></td><td><a style="color: white;" href="javascript:__doPostBack('gvResults','Page$5')">5</a></td><td><a style="color: white;" href="javascript:__doPostBack('gvResults','Page$6')">6</a></td><td><a style="color: white;" href="javascript:__doPostBack('gvResults','Page$7')">7</a></td><td><a style="color: white;" href="javascript:__doPostBack('gvResults','Page$8')">8</a></td><td><a style="color: white;" href="javascript:__doPostBack('gvResults','Page$9')">9</a></td><td><a style="color: white;" href="javascript:__doPostBack('gvResults','Page$10')">10</a></td><td><a style="color: white;" href="javascript:__doPostBack('gvResults','Page$11')">...</a></td> The actual text on the page looks like this: 12345678910... and the total number of pages may be into the thousands. Yes, there are only 10 records per page & to get beyond 10 I actually have to click on the ... to get the next group of numbers up. So I can end up with a text string that looks something like this 1234123512361237123812391240... A simple regex finds and extracts the page number I want Local $xp = $X + 1 ; I want the next page which is current page plus 1 Local $rexp = ">(" & $xp & ")</a>" ; this locates the page # and extracts is to Local $page = $ox[0] ; the actual page as displayed I've tried a lot of things like trying to focus on that spot ID'd. within that text string OR the html string, and then click on it. Any ideas on where to start? Thanks, Rich
-
Problem with _IEGetObjByName
setirich replied to setirich's topic in AutoIt General Help and Support
Juvigy: I do NOT get an error with each function call. Only after a period of time...so many pages. I'm not sure why using IE functions are nasty, but I'd like to hear more. mLipok: Interesting result with your example script: On my Workstation, Using it script exactly as presented, it properly clicks on the btnI and returns a page about the days Google logo. No com error On the machine I use for running web scripts, it returns a com error as it should within the console. Both machines are WIn7Pro, all latest updates, same IE11 version, and same AutoIt version. This is not the first time I've seen different reactions to scripts / MySQL code / VB programs between machines. Always makes me wonder why computers sometimes seem so random in their behavior... Still, I need to incorporate the com error handling. I'm NOT a pro at this, although I use AutoIt extensively for text manipulation, my web skills have always been suspect...so please bear with me as I attempt to learn. I am currently attempting to figure out how to put these checks into my script, but give my above statement on skill level, it's going to be an interesting & challenging day. -
Problem with _IEGetObjByName
setirich replied to setirich's topic in AutoIt General Help and Support
to Jury: Yes I have delays in my script. I don't want to bang the web site. there is approx. 6 seconds of delay per page. I did not show the delays so the 'action' code would be clear. After the initial attach, there are additional navigate commands to return to the case number input and submit page. The action 'back' command did not work, so I set it up with the navigate command. Is that wrong? I'm staying at the same web site most of the time. (big Calf. courts) I'm using the user interface 'properly'. I scrape court case info for various groups of attorneys and they don't want me ruffling the local court feathers. No, I don't use com error handling, I will look into it immediately. to mLipok: Thanks for writing the 'how to' instruction. I will work this into my web scripts. I believe the problem I'm having is 'internal' and not related to the web site trying to bounce me out. The returned error is an internal AutoIt once, so the com thing may be just what is needed. -
I have a script that generates this message after exactly 30 cycles or pages. For the past week it was working just fine, and then last night began the behavior again. As you can see, its an error within the IE.au3 include. "C:\Program Files (x86)\AutoIt3\Include\IE.au3" (1875) : ==> The requested action with this object has failed.: If IsObj($oObject.document.GetElementsByName($sName).item($iIndex)) Then If IsObj($oObject.document^ ERROR The code that calls & uses this information is below...nothing fancy, but why does it fail after exactly 30 cycles ? Not even sure its my code that is failing...or the include. $InBox = _IEGetObjByName($oIE, "CaseNumber") _IEAction($InBox, "focus") $msgIS = _IEFormElementSetValue($InBox, $PID) $SButt = _IEGetObjByName($oIE, "submit") _IEAction($SButt, "focus") _IEAction($SButt, "click") I'm using the latest stable version of AutoIt (v3.3.14.2) The system is Widows 7 with IE 11. Both have all the latest updates. Thanks for any insight you might offer... Rich
-
Sorry so late... I generally IMPORT the large csv files....up to and over 1 gig...without problem. (3.5 gig is the most I've imported...) I prepare these files with autoit & ms access...depending on how they come in to me...& what their problems are. Most of the data I get is very dirty...and requires parsing, standardization, etc., before any import operation. ... you can control the import with autoit...or ms access...or...bat files...whatever suits your need and configuration. Autoit3 w / stringregexreplace solves most problems...for me at least.
-
You've neglected to #include <array.au3> I tested your code with the additional include....and it works !!!! Congratulations!
-
In Product Design: Create (only build-able) Bill of Materials! Anyone who works with BOM's and needs to find (Each & Only_Valid) BOM's will use this, as I certainly will....next time I'm employed & working with BOM's again...I used to be a product structure engineer who attempted weird things with product part data...probably why I'm currently Un-employed If one understands product structure and the use of engineering / order codes for the product, then this little boogie could possibly help you in early development. The product development processes I've worked with require the team to specify valid BOM's, counts of such, and complexity considerations for manufacturing. Other things are needed such as take rates, supply constraints, etc., but the perrmutations thing has always been ... tedious at best. Very Cool.
-
Multiple Tabs / Windows open in SciTe ?
setirich replied to setirich's topic in AutoIt General Help and Support
Sorry all if I tend to wander in my fingered enunciation....Blame it on my age or early youth experience... Yes...I want to be able to edit two or more au3 files side by side in SeiTe. -
Sorry, but I can't seem to locate the parameter to allow viewing & working in multiple panes at the same time. Come to think of it, I've never been able to locate this, and usually I just fire up ConText or even MS Word. I've searched and that does not seem to be a topic here. I'm sure there is some sort of side by side viewing & working arrangement, but since SciTe requires you set things in files to get certain options, it's not readily apparent what that option might be or where or how to keep it. Maybe there is a SciTe noob post you can refer me to? I dislike going to a different editor to work in au3 files...even though ConText is just great for a general text editor and messing with my Train Sim files (can't be beat for that), it's lacking in AutoIt3 ... in my opinion. Thanks for any help on this cold & snowy day here in Michigan...
-
Matrix style background effect ( Screensaver )
setirich replied to Jex's topic in AutoIt Example Scripts
Had to negotiate the timeline matrix to find the Variable.au3 UDF...it's left out of current prod version, and that version leaves one beta-less(). -
Wow...must be a run on Windows Lnk's today...better get 'ur order in early... See this...(someone else had a question about links so this is still in clip...talk about lazy... http://mediasrv.ns.ac.yu/extra/fileformat/...nk/shortcut.pdf Looking at that, you can see how to get the specific info your looking for...but as for specifics, I'd defer to someone who has more experiance with IShellLink than I.
-
Thanks for the help...It's been a few months since I've worked in Au3....been VB'ing it lately.... Rich
-
The attachment shows the issue... What? Perhaps the install script does not understand the dotted quad numeric system? Perhaps I'm out in the weeds again??? Rich
-
Sorry...didn't know where else to post this (the SciTe forum?) but since I hang out here & not there... Ok...how do you say the Sci.... word ? I had a bad episode in an employment interview recently where the manager actually asked me what editor I liked (never had that happen before). I pronounce it like the word "sight". Given the spelling, some folks might want to sound that E on the end, but I think it might be (should be) silent. How about you? Rich (Silent in Michigan... )
-
I'm parsing out the returned array for this function, and continue to get the ==> Subscript used with non-Array variable.: error. I've checked up & down for problems...I seem to be opening & naming & referencing properly, but perhaps I'm spending too much time with this to see the error of my ways... Here's the code I'm running: _ExcelSheetActivate($Gsd_uBk, $Gsd_Unres_She) $Gsd_Un_Range = _ExcelSheetUsedRangeGet($Gsd_uBk, $Gsd_Unres_She) $Gsd_uLast_Row = $Gsd_Un_Range[3]oÝ÷ Ù8b±û§rب©©²æìz«ÚZ®È§¶·Úh®Ø¨í櫬°¢¹,{azƦzÇ+ZnóIbë!^¯Øb±«¢+Ù}á±M¡ÑÑ¥ÙÑ ÀÌØíÍ} ¬°ÀÌØíÍ} É}M¡¤(ÀÌØíÍ} É}I¹ô}á±M¡ÑUÍI¹Ð ÀÌØíÍ} ¬°ÀÌØíÍ} É}M¡¤(ÀÌØíÍ}1ÍÑ}I½ÜôÀÌØíÍ} É}I¹lÍoÝ÷ Ù8^~*ì¶Âø¥z)íë®*m«z+kº{(¡jÊ'zÈ^zاÔázÇ¢wpêÞ×hzÉ÷öÚò²¶È§Öî´ýè¥êåÊv¦xX"ØbAÞíý²Ø^r^«x)zv¥{!yël#f®éçx"Øb²èqë,jëh×6; select the files & set referneces to the three books********************** MsgBox ( 0, "Select the Tix file...", "First, you must find and open the Tix reporting file." ) $Att_Bk_k = MyFileOpenAtt("Select the Tix file...") $Att_Bk = _ExcelBookOpen ( $Att_Bk_k ) MsgBox ( 0, "Select the GSD Create file...", "Next, you must find and open the file with the new CREATED GSD records." ) $Gsd_cBk_k = MyFileOpenAtt("Select the GSD Create file...") _ExcelWriteCell($Att_Bk, $Gsd_cBk_k, 13, 2) $Gsd_cBk = _ExcelBookOpen ( $Gsd_cBk_k ) MsgBox ( 0, "Select the GSD UnResolved file...", "Finally, you must find the file with the UNRESOLVED GSD records." ) $Gsd_uBk_k = MyFileOpenAtt("Select the GSD UnResolved file...") _ExcelWriteCell($Att_Bk, $Gsd_uBk_k, 14, 2) $Gsd_Bk = _ExcelBookOpen ( $Gsd_uBk_k ) I'm writing the workbook names into the att book where I'm doing all the "work". If you have any idea what I'm doing wrong, I'd sure appreciate some clues.... Thanks,
-
Just happened across this thread looking (as usual) for something else...There are a certain breed of person around the world, that get their jollies creating huge Christmas displays. To do this, some of these folks are using simple computer based controls. I was looking for (again...something else) when I happened across this site & project. http://computerchristmas.com/index.phtml?l...o&HowToId=4 This is a project to control 320 ports! Have 320 or so things you need to control?. Ok...320 on/off things, but heck, that's a lot of ladder logic... Rich
-
Someone would have to specify what "Par" is first. And by the time the arguments stopped...everyone would have retired... Seriously, I think another criteria set might be employed...make one up if you can't find one that fits... Consider this: Of the ( languages / applications / coding formats ) that are out there, what are the features you admire or must have, and does Au3 fit into that vision? Of the (l/a/cf) out there, which of them is actively generating more new stuff than most folks can keep track of ? Errr...that may be a neg. as well as as pos., but ymmv. Personally, I'm big on extensibility. I also find active community a plus. And since Au3 has the basic coding structure I've worked with for ... over 30 years makes it work well for me.
-
BigDod, It's wiping out all compiled scripts...not touching source. That's a bit more difficult to explain, but yes, we should send in our source & exe compiled from the source with an explanation...a plea...to cease & desist. Unfortunately, by the time they get around to dealing with it, even if it's in tomorrows update (unlikely), it'll be too late, except for the occaisional user that does not use their machine today, or until they put up their fix. Even my auto-updaters are going to be dead, as they are on all my test machines...I need to create a push engine for emergencies like this...but it'll be a week or three before I can get out from under this mess...Hmmm...I can't send out anything until they issue the fix...it'll just get wacked again... I guess as soon as I get the short term solution ready & tested, I might as well create something longer term. ... First I'd better create a little spam warning everyone of this weirdness....and let them know I'm on top of it.... Rich
-
Arrrrgggghhh....All my customers will get hit when they boot up today...I'm going to be very busy this week. And AVG is usually so good about not messing stuff up...I guess they have thier moments just like all virus vendors... Rich
-
Registry changes not taking effect on restart?
setirich replied to BPBNA's topic in AutoIt General Help and Support
The only two root keys that are saved to disk are the HKEY_Users & HKEY_Local_Machine. The others are recreated from links (to HKEY_Users & HKEY_Local_Machine) at startup. Therefore, it would seem that to enable a "first time" reboot & "works like it should", one should make their changes to key values within these two base groups. See Jerry Honeycutt's Windows XP Registry Guide for more information. Specific information on interrelations between major key groups are diagrammed on page 22, fig. 1-6. Great book to have around for all sorts of Windows issues. Rich