Jump to content

HurleyShanabarger

Active Members
  • Posts

    213
  • Joined

  • Last visited

Recent Profile Visitors

1,279 profile views

HurleyShanabarger's Achievements

  1. Looks like that this is not working with the current version of AutoIt, is that possible?
  2. Thank you for the feedback! To be honest, I did not think about the validity of json I am processing in the first place. I just starting using your UDF by reading a json and just saving it. The difference I saw was only that "/" in a string is beeing escaped to "\/". As this seems to only happen in json that I receive from a particular program, I will adapte my script to use StringReplace/StringRegExpReplace as you suggested.
  3. If I read a json file and save it again, string characters are not beeing escaped. Is it possible to adjust this?
  4. Thank you for the solution. I tried it myself using your way in the meantime, but it didn't work. I started testing DllCall("MSVCRT.DLL", "ptr:cdecl", "memcpy", "struct*", $tTrg, "struct*", $_lv_tSrc, "uint", DllStructGetSize($_lv_tSrc)) which was also doing the job, but I the other solution is better. Also thank you for showing me _WinAPI_DisplayStruct was not aware of that solution (acutally had my one version of it).
  5. Hello, I am receving data from a TcpServer. The data itself can be decoded by using a structure, for example: $tStruct = DllStructCreate("char[12];int[13];byte[5];double[5]") The length of the received data will match the length of the struct. Is there an easy way to copy the binary data directly into the structure, so that I don't have to use BinaryMid etc.?
  6. Hi there, I am using a hotkey to show a small GUI next to the cursor. This is working fine, but I want to have the same behaviour/placement of my GUI as when using Tooltip - meaning the GUI should either be move in X or Y direction to have it in the visible window area. The problem that I am facing is with multiple montiors. I can get the MousePosition with _WinAPI_GetMousePos I can get the current monitor _WinAPI_MonitorFromPoint I can get the monitor dimension with _WinAPI_GetMonitorInfo but I am unable to translate the MouseCoordinates from the absolut coordinates of all monitor the absolut coordinates on a specific montir. Can someone point me in the right direction?
  7. What is the best practice in the AutoIt "Client" program to check if the ROT-Object from the server is still alive? Checking with ObjGet before reading/writing?
  8. Is it possible to create a message and add a signature to that message? Okay, it seems that creating a mail with "BodyFormat=" & $olFormatHTML will empty out the mailbody. This seems to work: _OL_ItemModify($oOutlook, $oMail, Default, "BodyFormat=" & $olFormatHTML, $sgBody & $oMail.HTMLBody)
  9. Thank you ver much for the suggestions. I adjusted it slightly to $res = StringRegExp($sgData, '(?m)^ +(\S+).+\s+\Q' & $search & '\E', 3) to have faster matching, as it took quite some time for big data.
  10. Hello, I am struggeling again with a simple expression. I want to search for ccc and get aaa as return (for fff i expect ddd and so on). aaa := bbb OR ccc; ddd := eee OR fff; ggg := hhh OR iii; here is my code: #Region Includes #include <Array.au3> #include <Date.au3> #include <File.au3> #include <Misc.au3> #include <String.au3> #EndRegion Includes #Region Main _Main() Func _Main() Local $sgData $sgData &= " aaa := bbb OR" & @CRLF $sgData &= " ccc;" & @CRLF $sgData &= " ddd := eee OR" & @CRLF $sgData &= " fff;" & @CRLF $sgData &= " ggg := hhh OR" & @CRLF $sgData &= " iii;" & @CRLF Local $arMatch = StringRegExp($sgData, "(?ms)^.+?iii\b", 3) _ArrayDisplay($arMatch) EndFunc ;==>_Main I am not getting the match I am expecting. Thanks for your help!
  11. I always tought ; is the comment charater; was not aware that one could use # as well.
  12. Ok, thanks. I tried, but was not able to access any of the data set/send using ROT. I can see in the Locals area of VS, that the dynamic view has a count of 10 - this reflects the amount of parameters I set/send using ROT. Maybe I will figure out to access it.
  13. Thank you for this UDF, it is very helpful. I managed to exchange data with python: import os import win32com.client obROT = win32com.client.GetObject(Identifier) arData = lv_obROT("Data2Python_arData") but, I did not manage to achieve the same for C#. Does someone know, if this is possible or must I use this?
  14. Love that release! Thank for the work ♥️
  15. Is it working, if you copy the file using CMD? Have you tried using FileCopy?
×
×
  • Create New...