Jump to content

mattschinkel

Active Members
  • Posts

    50
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

mattschinkel's Achievements

Wayfarer

Wayfarer (2/7)

0

Reputation

  1. Thanks antonioj84 for bringing up my old tread which resulted in an answer to my 6 year old question!
  2. Hi, How do I get row 0 from 2D array with _ArrayToString? My first MsgBox gives me the entire 2D array as a string instead of just row 0. I am able to get the intended result with all other rows. Thanks, Matt.
  3. Well, I did try your _OL_ItemFind, It seems to work but it takes way too long. I still need to read the outlook treeview to see if any mail arrives unless there is another solution.
  4. I can't search any folder since there isn't one. The mail comes from an networked exchange server. Maybe I should also mention that I can't setup any rules for this group email. I will need to read the outlook treeview to see if any mail arrives. Any idea's?
  5. Well... I spoke too soon. It works perfectly for anything in my personal email, but not for the group email account
  6. Thanks, This is perfect! _OL_Example_NewMail_Event.au3 is exactally what I need, I don't even need to modify it
  7. Hello, I am having trouble getting the text out of the treeview in Microsoft Outlook. I'd like to write a script that pops up a message box when my inbox shows unread items like; inbox(1). I know I can create rules, but rules do not work for shared email addresses, and I can't use the outlook UDF because data is stored on the exchange server, not locally. I am able to get the handle, but not the control ID or text of any items. Here's what I have so far: #include <GuiTreeView.au3> Opt("WinTitleMatchMode", 2) $OutlookTree = ControlGetHandle("Microsoft Outlook", "", "[CLASS:NetUIHWND;INSTANCE:1]") ConsoleWrite("Handle: " & $OutlookTree & @crlf) $item = GUICtrlRead($OutlookTree) ; Get the controlID of the current selected treeview ConsoleWrite("Item control ID: " & $item & @crlf) $text = GUICtrlRead($item, 1) ; Get the text of the treeview item ConsoleWrite("Item selected text: " & $text & @crlf) $text = _GUICtrlTreeView_GetItemParam($OutlookTree) ConsoleWrite("GetItemParam: " & $text & @crlf) The output is: Handle: 0x0005040E Item control ID: 0 Item selected text: 0 GetItemParam: False Please help!
  8. I tried it, but the example needs Plugins.au3 Where do I get this? I have the latest beta installed. autoit-v3.3.9.0-beta-setup.exe Matt.
  9. I am looking for an editor that was written with the Autoit language. SciTE was not made with Autoit was it? Matt.
  10. Is there any good editor that was made with autoit that supports syntax highlighting? I will need source as well so I may improve on it. Thanks, Matt.
  11. Here's an example script to make a nice looking excel chart with autoit. Enjoy! #include <Excel.au3> ;open excel file $oExcel = _ExcelBookNew() ;create data _ExcelWriteCell($oExcel, "10/01/2011", 1, 1) _ExcelWriteCell($oExcel, "10/02/2011", 2, 1) _ExcelWriteCell($oExcel, "10/03/2011", 3, 1) _ExcelWriteCell($oExcel, "10/04/2011", 4, 1) _ExcelWriteCell($oExcel, "10/05/2011", 5, 1) $oExcel.ActiveSheet.Columns(1).AutoFit _ExcelWriteCell($oExcel, "10", 1, 2) _ExcelWriteCell($oExcel, "23", 2, 2) _ExcelWriteCell($oExcel, "15", 3, 2) _ExcelWriteCell($oExcel, "20", 4, 2) _ExcelWriteCell($oExcel, "34", 5, 2) ;Make the chart CreateChart($oExcel, 1, "My Title", 74, "A6:I20", "=Sheet1!R1C1:R5C1", "=Sheet1!R1C2:R5C2", "Value 1", "Date", "Stats") ;CREATE A CHART ; note: if $DataName and $DataRange are an array, multiple data lines can be drawn on graph. Func CreateChart(ByRef $oExcel, Byref $Worksheet, ByRef $Title, ByRef $ChartType, ByRef $SizeByCells, ByRef $XValueRange, Byref $DataRange, $DataName, $XTitle, $YTitle) $PlotBy = 2 $oSheet = $oExcel.Worksheets ($Worksheet) Local $oChartRange;- The range where you want the chart Local $oNewChart ;- The ChartObject itself $oChartRange = $oSheet.Range($SizeByCells) $oNewChart = $oSheet.ChartObjects.Add($oChartRange.Left, $oChartRange.Top, $oChartRange.Width, $oChartRange.Height) ;-- $oChart = $oNewChart.Chart $oChart.ChartType = $ChartType ;_ExcelWriteCell($oExcel, '=""', 1, 1) ; A1 must contain something $oChart.SetSourceData ($oExcel.Worksheets(2).Range("A1:A1"), $PlotBy ) $oChart.HasTitle = 1 $oChart.Axes(1).HasTitle = 1 $oChart.Axes(2).HasTitle = 1 $oChart.Axes(1).AxisTitle.Characters.Text = $XTitle $oChart.Axes(2).AxisTitle.Characters.Text = $YTitle $oChart.HasDataTable = 1 $oChart.ChartTitle.Characters.Text = $Title ;- set name of chart If $oChart.SeriesCollection.Count = 0 Then $oChart.SeriesCollection.NewSeries EndIf ;give an error "Both $DataRange & $DataName must be same type" if (IsArray($DataName) And not(IsArray($DataRange))) Or (not(IsArray($DataName)) And IsArray($DataRange)) Then MsgBox(4096, "", "Both $DataRange & $DataName must be same type") EndIf if IsArray($DataRange) Then $oChart.SeriesCollection(1).Delete for $i = 1 to 5 $oChart.SeriesCollection.NewSeries with $oChart.SeriesCollection($i) .Name = $DataName[$i] ;- set name of values .XValues = $XValueRange ; X values ;R=row, C=colunm .Values = $DataRange[$i] EndWith Next Else with $oChart.SeriesCollection(1) .Name = $DataName ;- set name of values .XValues = $XValueRange ; X values ;R=row, C=colunm .Values = $DataRange EndWith EndIf EndFunc Matt.
  12. How do I make a bullet in MS word or Outlook? If I manually do copy/paste in word, it keeps the bullets fine. However, if I do manual copy, then run a autoit script like this, then manual paste back into word I loose the bullets: $string = ClipGet() ClipPut($string) Matt.
  13. Yes, that is correct. Yes, I can and it works. Yes, client will listen on the port it sent on which is a random port. 1. Because the server's port is 251. 2. Why should the server use two different ports? 3. The client will think a different server application is sending data from the same PC on a different port. 4. The client will think it is a different socket because of the above reasons. 5. DNS servers listen and send data on the same port, like a Autoit DNS server should. This is all the proof you need. Thanks for your help. It is appreciated. You seem to understand. All I am asking for is to be able to specify a "source port" instead of using a random one when the server reply's to the client. It should be an optional parameter when creating a socket. I do like Autoit and will continue to use it. I doubt that anyone stole code since it was open source at one time. I could give you sample client code, but I don't think that would help. Even if I fix my client, other client programs can have the same issue. Matt.
  14. I told you the problem many times in all my previous messages. If I use Autoit client + Autoit server, everything would be fine, but that is not take case. Therefore UDP must act correctly according to the majority of other languages out there. I see nobody answered my question about if Autoit is open source. As I did a search, I see that it is no longer BSD license and it is now freeware. It seems that nobody will be able to correct this problem. This is sad. I may have to try the current open source version http://www.autohotkey.com/ It seems that nobody knows anything about networking and nobody wishes to understand my problem. Matt.
×
×
  • Create New...