-
Posts
82 -
Joined
-
Last visited
Profile Information
-
Location
Colorado
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Iceburg's Achievements

Wayfarer (2/7)
1
Reputation
-
IE.au3 and Internet Explorer on Server 2016
Iceburg replied to Iceburg's topic in AutoIt General Help and Support
Okay, after future research, and installing a new server MS 2019, the script works fine. Something happened specific to the server. A rebuild is in order, nothing to see here. -
IE.au3 and Internet Explorer on Server 2016
Iceburg replied to Iceburg's topic in AutoIt General Help and Support
Tried that, added the sites to the safe zone, removed almost all security. IE security is turned off for administrators, and I'm logged in as administrator. I'll keep trying to find what changed. -
IE.au3 and Internet Explorer on Server 2016
Iceburg replied to Iceburg's topic in AutoIt General Help and Support
Downgrade server I guess. Where is Dale? -
IE.au3 and Internet Explorer on Server 2016
Iceburg replied to Iceburg's topic in AutoIt General Help and Support
A bit more troubleshooting, even this much doesn't work... Global $oIE = _IECreate("about:blank", 1, 1, 1, 0) ; 1 - visible ConsoleWrite("IE Created...." & @CRLF) Global $oIE = _IEAttach("about:blank", "url") If @error = $_IEStatus_NoMatch Then Exit ConsoleWrite("IE attached..." & @CRLF) Results in: >"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Users\Administrator\Desktop\test.au3" --> IE.au3 T3.0-2 Warning from function _IEAttach, $_IESTATUS_NoMatch IE Created.... --> IE.au3 T3.0-2 Warning from function _IEAttach, $_IESTATUS_NoMatch >Exit code: 0 Time: 0.9332 -
So I have a script that I've been using for years. Logins into a website, grabs some data, throws it into Excel, graphs the data, and sends it in an e-mail. This has worked for a long time until HTML code changes, and I've done tweaks along the way to address HTML changes on the site. Couple days ago a major new HTML page was release that I was scrapping. I rewrote the regex's on my Win10 laptop and ran, and everything is good to go. IE loads, logins in, scraps, excels graph, and e-mails it all to me. I compile the code, and place it on the server, and while I'm at it I decide I'll update the server with the newest MS patches. I know, I know, in hindsight I added another variable, but the script is working fine on my laptop so whats the big deal? Anyway, the code won't run on a 2016 server now. To test I ran the old script (That was working, logging in, and failing on the regex) it won't even load the pages any more. So its definitely the server that had some changes. I removed all the new patches, and reboot. Still doesn't work. If I run the code through scite vs the compiled code, it fails at the regular expression, but thats cause its not even navigating to the pages anymore. Anyone else seen anything similar? In the mean time I have the script running on my laptop, but I can't find a solution to the server issue. -Iceburg
-
Subz, people like you make people like me look stupid, and for that I appreciate you. That worked perfect.
-
Hi everyone, I'm at best a noobie. I have read through the Array helps, and specifically the 2D array help file, and I'm struggling to get my code working. I have an array that is read from a file, thats working great. I'm trying to do some math on the array, so I can find the largest, average, lowest, day over day change %, etc. The array read working fine, I get 43 lines, line 0 is 44, and then I get data that looks like 0519 $10,000 0520 $10,001 0521 $10,002 The data in this array is a single 1D array, breaking it out into 2 columns so I can do the math is what I can get to happen. How do I reference the array to store this data? Second, how do I assign this data to the appropriate row/column? Thanks in advance. Dim $all_cash_amounts[UBound($aInput)][2] Dim $max_amount_in_account Dim $min_amount_in_account _FileReadToArray($LC_Check_file_path, $aInput) _ArrayDisplay($aInput) local $date = StringRegExp($aInput[1], "(\d\d\d\d)", 1) local $cash = StringRegExp($aInput[1], "\d+\s(-?[0-9\.\,]+)", 1) ConsoleWrite("Date is: " & $date & @CRLF) For $i = 1 To UBound($aInput)-1 $date = StringRegExp($aInput[$i], "(\d\d\d\d)", 1) $all_cash_amounts[$i][2] = $date[$i][0], $cash[$i][1] Next _ArrayDisplay($all_cash_amounts)
-
We can stay on topic here, and continue to make fun of the OP: MsgBox(4096, "You fail at English", "Face Palm") Func while func <> 'valid in current script' return ($slander) WEnd func if $have_been_told_before = 'yes' while 1 _IENavigate($oIE, "www.lmgtfy.com") _IELoadWait($oIE) WEnd EndIf Func ; random function goes here.
-
Look up the function stringregex and you can use regular expression to jump down to the sections you need, and store it to a variable, and do whatever you want with it from there. Something like: Local $file = "C:\output.txt" $file = FileRead($file) global $base64_1 = StringRegExp($file, '(-----_=_.+\s.+\s.+\s.+)',1) ; Or global $base64_2 = StringRegExp($file, '(-----_=_.+)\s(.+)\s(.+)\s(.+)',1) ConsoleWrite("Whole Base64 section: " & @CRLF & $base64_1[0] & @CRLF) ConsoleWrite("or just Line 1 " & $base64_2[0] & @CRLF) ConsoleWrite("or just Line 2 " & $base64_2[1] & @CRLF) ConsoleWrite("or just Line 3 " & $base64_2[2] & @CRLF) ConsoleWrite("or just Line 4 " & $base64_2[3] & @CRLF) Don't be afraid to give it a run, and show us where you get stuck. People will help, but won't do it for you.
-
So I had a miserable time reading a file on / creating a regular expression on windows 8, so I wrote just a simple test script to troubleshoot my Logic: #include <IE.au3> #include <Date.au3> #include <Array.au3> #include <String.au3> #include <file.au3> $i = 0 Local $file = "C:\foo\test.txt" ConsoleWrite ("File name is: " & $file & @CRLF) FileOpen($file,0) consolewrite("FileOpen @error = " & @error & @CRLF) If $file = -1 Then MsgBox(0, "Error", "Unable to open file.") Exit EndIf $file = FileRead("C:\foo\test.txt") consolewrite("FileRead @Error = " & @error & @CRLF) ConsoleWrite($file & @CRLF) $test = StringRegExp($file, 'Acct', 3) ConsoleWrite("Test " & $test[0] & @CRLF) Couldn't get it to work, but had two existing scripts that used similar code, so I knew something was wrong. Tested on a Windows XP VM, and everything worked as expected. Anyone else having issues on Widnows 8, and workarounds? File c:footest.txt just has 2 lines of text: Acct Acct
-
After I posted I saw that right as it submitted. I still had a forum search going, and though I was back to the main search. I can't help all the time, but was excited when I could. =) My bad!
-
Is it filling out the forms and not submitting, or is it not even filling out the form?
-
Iceburg reacted to a post in a topic: Logic Question
-
Iceburg reacted to a post in a topic: Logic Question
-
Iceburg reacted to a post in a topic: Logic Question
-
Iceburg reacted to a post in a topic: Logic Question
-
Iceburg reacted to a post in a topic: Logic Question
-
Money! You guys are awesome, thanks so much.
-
You'll want to read up on <IE.au3> then, search through your $oIE with: if/else StringInStr(_IEPropertyGet($oIE, "innerhtml"), "HTML CODE WITH IMAGE SOURCE")
-
I only have one function, so I am setting up all my args: Its not liking: $args[$iIndex][0] global $incoming_var, $spot global $A_args0[7]=["1", "1", "11", $incoming_var, $spot, "1", "5"] global $A_args1[7]=["1", "1", "11", $incoming_var, $spot, "1", "6"] global $A_args2[7]=["1", "1", "11", $incoming_var, $spot, "1", "7"] global $A_args3[7]=["1", "2", "10", $incoming_var, $spot, "1", "5"] global $A_args4[7]=["1", "2", "10", $incoming_var, $spot, "1", "6"] global $A_args5[7]=["1", "2", "10", $incoming_var, $spot, "1", "7"] global $A_args6[7]=["2", "1", "11", $incoming_var, $spot, "1", "5"] global $A_args7[7]=["2", "1", "11", $incoming_var, $spot, "1", "6"] global $A_args8[7]=["2", "1", "12", $incoming_var, $spot, "1", "7"] global $A_args9[7]=["2", "2", "11", $incoming_var, $spot, "1", "5"] global $A_args10[7]=["2", "2", "11", $incoming_var, $spot, "1", "6"] global $A_args11[7]=["2", "2", "11", $incoming_var, $spot, "1", "7"] $iStart = Random(0, 11, 1) For $i = 0 To 11 $iIndex = Mod($i + $iStart, 11) Call ("tracker", $args[$iIndex][0], $A_args[$iIndex][1], $A_args[$iIndex][2], $A_args[$iIndex][3], $A_args[$iIndex][4], $A_args[$iIndex][5], $A_args[$iIndex][6]) Next Func tracker($flight, $a_or_b, $page_number, $URL, $URL_page, $customer_type, $spare) ConsoleWrite($flight, $a_or_b, $page_number, $URL, $URL_page, $customer_type, $spare) EndFunc Edit: added declarations for ease of copy and pasting for testing.