
Jewtus
-
Posts
529 -
Joined
-
Last visited
Community Answers
-
Jewtus's post in Time counting issue was marked as the answer
Have you tried TimerDiff inside a do until statement?
EX
Do sleep(10) until TimerDiff($hTimer) > $timedelay -
Jewtus's post in Create email with array in body was marked as the answer
I did try array to string, which does improve how the code looks, but it does still ditch the CRLF and Tabs... then I realized I'm using HTMLBody and not Body...
It works fine with this:
$oTable = _IETableGetCollection($oIE) $oMeta = _IETableGetCollection($oIE, 1) ; Extract main table $aMeta = _IETableWriteToArray($oMeta, True) $oMetaCount = _IETableGetCollection($oIE, 0) ; Extract main table $aMetaCount = _IETableWriteToArray($oMetaCount, True) $content= _ArrayToString($aMeta,@TAB,0,UBound($aMeta)-1) $olApp = ObjCreate("Outlook.Application") $olMailItem = 0 $objMail = $olApp.CreateItem($olMailItem) $objMail.Save $objMail.Body = ($aMetaCount[0][1]&@CRLF&@CRLF&$content) $objMail.Display $oOApp = 0 -
Jewtus's post in Creating a hidden field in ListView box was marked as the answer
Ok, So I figured out whats going on. Its when I insert data that the column resizes.
I added
GUICtrlCreateListViewItem("This|Is|A|Test|Right| ", $HitsView) and the column shows up. Because there is data in the last column, I used _GUICtrlListView_SetColumnWidth($HitsView,5,0) and that seems to have fixed the issue.
-
Jewtus's post in IEAttach or create was marked as the answer
I tried that, however it keeps not recognizing that there is an IE window open.
Winexists requires that I know something about the IE window. I did take a look at process exists, but once I have the PID, how do I actually attach to it?
EDIT: I think I've figured it out
If ProcessExists("iexplore.exe") <> 0 Then $oIEhWND= _WinAPI_EnumProcessWindows(ProcessExists('iexplore.exe'))[1][0] $oIE=_IEAttach($oIEhWND,"hwnd",1) _IENavigate($oIE,$url) Else $oie=_IECreate($url,1) EndIf -
Jewtus's post in trouble with arraytostring was marked as the answer
AHHH HA! I figured it out.
Because I was using GetRows, I need to handle the result as a 2d array.
This is how I figured it out
$Result = $sqlRs2.GetRows _ArrayDisplay($Result) for $z=0 to (UBound($Result)) -1 MsgBox(0,"",$Result[$z]) Next and I got this error
Array variable has incorrect number of subscripts or subscript dimension range exceeded.:
Once I changed it to $Result[$z][0] it worked flawlessly
-
Jewtus's post in Using textRead2Func was marked as the answer
I ended up going with the CSV.au3 from this thread. Seems to work perfectly.
'?do=embed' frameborder='0' data-embedContent>>
-
Jewtus's post in Extracting a value from an array as a string was marked as the answer
I figured it out... I was using the debugger, which is why the array extract wasn't working.