I am trying to grab the id "in2xk_26" however it the characters before the underscore always change. (in the name too)
Is there a way I can find a id or name by the last 3 charcters?
Using something like "stringright?"
So I would want to search for just "_26" in this case.
This is assuming that there are no other _26
#include <Excel.au3> #include <IE.au3> #include <GUIConstantsEx.au3> Global $iMousespeed = 25,$target = "",$TagName = "",$Value = "",$Atrribute = "" $oIE = _IEAttach("MEDITECH") $TagName = "input" $Value = "in2xk_26" $Attribute = "id" $tags = $oIE.document.GetElementsByTagName($TagName) ;TagName ------ MAKE SURE TO NAME THESE For $tag in $tags $class_value = $tag.GetAttribute($Attribute) ;Attribute ------ MAKE SURE TO NAME THESE If string($class_value) = $Value Then ;Value ------ MAKE SURE TO NAME THESE $target = $tag $iScreenX = _IEPropertyGet($target, "screenx") $iScreenY = _IEPropertyGet($target, "screeny") $iWidth = _IEPropertyGet($target, "width") $iHeight = _IEPropertyGet($target, "height") $oMouseCords = MouseMove($iScreenX + $iWidth / 2, $iScreenY + $iHeight / 2, $iMousespeed) MouseClick($MOUSE_CLICK_LEFT) ExitLoop EndIf Next
I was wondering how I read data inside of a iframe. I would like to be able to click something inside a iframe. However, I can't even find the tag.
The id and name change all the time so I can't use those.
The code highlighted in blue is what I am trying to click. (second picture)
Here is what I have tried.
$target = "" $tags = $oIE.document.GetElementsByTagName("div") For $tag in $tags $class_value = $tag.GetAttribute("class") If string($class_value) = "s_92 altstyle s_93 s_94" Then $target = $tag ConsoleWrite("Tag Found " & $target.outerText&@CRLF) ExitLoop EndIf Next
Dear members of the forum,
I need to open excel files that may or may not need a password and finally move the files that needs password to manual queue.
Is there a fastest way to do this?
PS: I have a huge respect for the rules of this forum. I am not asking assistance to override any security measure. I just need to segregate the files that needs passwords.
WinActivate("MEDITECH - Internet Explorer") Sleep (500) $oIE = _IEAttach("MEDITECH") $oDiv1 = _IEGetObjById($oIE, "sysmenu-searchbarbutton") _IEAction($oDiv1, "click") I am just trying to click the little magnifying glass, next to the gear button with no luck. I was hoping someone might have an idea why this is not working?
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
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)] Dim $max_amount_in_account Dim $min_amount_in_account _FileReadToArray($LC_Check_file_path, $aInput) _ArrayDisplay($aInput) local $date = StringRegExp($aInput, "(\d\d\d\d)", 1) local $cash = StringRegExp($aInput, "\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] = $date[$i], $cash[$i] Next _ArrayDisplay($all_cash_amounts)