Jump to content

boludoz

Active Members
  • Posts

    29
  • Joined

  • Last visited

Recent Profile Visitors

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

boludoz's Achievements

Seeker

Seeker (1/7)

1

Reputation

  1. How can I make it so that it only returns the arguments I want and not the ones I put in the function header?
  2. Because while we have scripting languages like python, we don't have solid, compact languages like autoit 3 that are easy to use, there's practically nothing like it for automation.
  3. Good vibes. Thanks for the positive comment. I'm glad what I see in your link.
  4. AutoIT 3 has many advantages that make it an easy language to understand, but it also has many shortcomings, in this humble list I list what AutoIT 4 should have to be all powerful. - Threading, like python (It would give thousands of new possibilities). - Slightly more complex exception handling (Try, Catch), like most current languages, @error could be preserved. - Greater UNICODE support. - Greater orientation to objects, lists, more complex dictionaries. - Class, maybe. - Select the parameters of the functions individually. Example: Test([$sCommand2 = 2]) Func Test($sCommand = 1, $sCommand2 = 2) EndFunc - Be OpenSource as much as possible (the most important thing). Perhaps this makes it portable to other platforms. I don't want to sound arrogant with this, but AutoIT is a beautiful language that offers many possibilities, is well documented and very easy to use. What would you like to see in a hypothetical AutoIT 4?
  5. Using this, https://sites.google.com/site/robertgiesecke/Home/uploads/unmanagedexports https://github.com/3F/DllExport Unfortunately I don't know much about DLL and C#. For example: class Test { [DllExport("add", CallingConvention = CallingConvention.Cdecl)] public static int TestExport(int left, int right) { return left + right; } } The other way would be with a kind of wrapper.
  6. With the greatest respect and admiration for your work, that statement is not correct, AutoIt can execute DLLs made in the net framework, and I can tell because I've seen it. P.S, I loved your solution so much that I'm going to mark it. What you did is a work of art!
  7. Sorry, I can't figure out how to find the function I'm calling, thanks, there must be something in my compiler.
  8. using System.Runtime.InteropServices; namespace dllSource { public class Operation { [ComVisible(true)] public int Add(int x, int y) { int z; if ((x == 10) && (y == 20)) { z = x + y; } else { z = x; } return z; } } } Local $aResult = DllCall("HelloWordDll.dll", "str", "Operation", "int", 2, _ "int", 1) ConsoleWrite("Error : " & @error & @CRLF) ConsoleWrite("Result : " & $aResult & @CRLF) Hello, can someone explain to me how to call this DLL, or how to call it, or how to fix the DLL, I'm new to C# but I know it's possible.
  9. The problem seems to be when you use a lot of tooltips.
  10. Update: Global $g_hToolTip = 0 Func _GUICtrlSetTip($controlID, $tiptext, $title = Default, $icon = Default, $options = Default, $useControlID = True) ;Return GUICtrlSetTip($controlID, $tiptext, $title, $icon, $options) Local $hCtrl = ($useControlID = True ? GUICtrlGetHandle($controlID) : $controlID) Return _GUIToolTip_AddTool($g_hToolTip, 0, $tiptext, $hCtrl) EndFunc ;==>_GUICtrlSetTip Func _GUICtrlGetControlID($hCtrl = -1) Local $aRet = DllCall("user32.dll", "int", "GetDlgCtrlID", "hwnd", ($hCtrl = -1 ? GUICtrlGetHandle(-1) : $hCtrl)) Return (IsArray($aRet) ? $aRet[0] : -1) EndFunc ;==>_GUICtrlGetControlID
  11. I think the error goes beyond that.
  12. Exactly, it is an internal problem of the exe, compared to the 2018 version, I cannot tell you the error because it is not open source. If I run the autoit with the 2022 version and the 2018 AutoIt3.exe this works perfectly, I just want to report the bug.
  13. Slow tooltips in latest autoit version. Tooltips are slowed down in the latest version.
  14. It works fine too, thanks.
  15. Thank you, your code is excellent and fast, I was already exhausted trying to use objects.
×
×
  • Create New...