Jump to content

softtouch

Members
  • Content Count

    178
  • Joined

  • Last visited

Everything posted by softtouch

  1. I have a python script which does some website work, and at one point in that script, it has to call a Delphi function with a byte array as parameter, and will have to get a string back from the Delphi function and continue the script execution. How can I realize that? I googled but its mostly the other way around, calling a python function from delphi.
  2. softtouch

    How to call a Delphi function from a python script?

    I know, I use P4D... I can call python funtions from delphi, but this time, I need it the other way around, calling a delphi function from python.
  3. I am playing for the first time a little with Python4Delphi. When I have a python function, for example: def Parser(src:str) -> str: s = "Test " + src return s How do I call this from Delphi? I have this script in a stringlist, and can call PythonEngine1.ExecStrings(sl); But how do I set the parameter "src" before calling the script, and how do I get the "s" value back after the call?
  4. Ok, that seems to work as expected. Thanks.
  5. softtouch

    Opensource scripting language?

    Does anybody know of any easy to learn opensource scripting language? I need to be able to send string to the scripting engine from Delphi, have it process the strings and return the result to Delphi. I also need to be able to load such scripts at runtime and execute them. Each of such script need to do different thing, based on some parameter, so I might need to load many different scripts at the same time.
  6. softtouch

    Opensource scripting language?

    Back to searching... LUA is not what I can use, it seems not to support UTF-8 for files.
  7. softtouch

    Opensource scripting language?

    But it was a good find 🙂 It works well so far. Thanks again.
  8. softtouch

    Opensource scripting language?

    Thanks for all the suggestions. I think I will go with lua as recommended by Lars Fosdal (thanks for that). I got most things running already and even it has no regex, gmatch and some other will do it.
  9. softtouch

    Opensource scripting language?

    Maybe I could use gmatch instead of regex, that might be ok. I am currently playing with lua, but could not yet figure out how to return a string to delphi.
  10. softtouch

    Opensource scripting language?

    Not sue lua is ok for my project. I saw it does not know anything about regex.
  11. softtouch

    Opensource scripting language?

    Python is too huge for just the small things I want to do, and I dont want to dig into python programming. I took a look at TJvInterpreterProgram, but its hard due to lack of documentation. It works, but I could not figure out how to use system functions like copy, delete etc. from within the code for the interpreter.
  12. softtouch

    Opensource scripting language?

    DWScript seems to be up to Delphi 11.x only, but I use Delphi 12.
  13. When I try to open getit in the tools menu, the IDE freeze and I need to use taskmanager to kill the process. When trying to go to my.embarcadero.com, I get a 504 error.
  14. I am trying to find, without success, information about how to catch when somebody click in a TEdgeBrowser into a form field, or on a table, or any other element. I can catch hyperlick clicks, but thats all so far. Is that even possible? What I need to do is, when a user click somewhere, to show the source code of that element.
  15. softtouch

    Clicking something in TEdgeBrowser

    Wow, cool, thanks a lot! I will play with it. So the window.addEventListener is the key to do what I want.
  16. softtouch

    Clicking something in TEdgeBrowser

    It might be in a memo, so I need just the text to process it further.
  17. softtouch

    Clicking something in TEdgeBrowser

    What I want is that the user load a website, and can click on any element/text/whatever on that page, and that the outerhtml will be displayed, no more, no less. Using the "inspect" is way to confusing for the user.
  18. I am looking for a edit/memo component which allows multiselect. For example, I have a text "This is just a test" in the edit/memo and would like to select "This" and "test". I tried to find such component, but without luck. Does it exist or is it just wishful thinking?
  19. softtouch

    Is there any edit/memo which allows multiselect?

    I believe I solved it using the TPlusMemo.
  20. softtouch

    Is there any edit/memo which allows multiselect?

    Just to show what I mean:
  21. softtouch

    Is there any edit/memo which allows multiselect?

    Thats a pity. I thought there is such control. Notepad++ can do that.
  22. softtouch

    Free profiler?

    Thanks, I tried that already, but was not able to have it measure the execution time of my procedures.
  23. softtouch

    Raize TRZCheckBox and CustomGlyphImages

    Delphi 12: Does anybody know how the customglyphimages is supposed to work with TRzCheckBox of the Raize Components? I set the imagelist, which hold various 16x16 images. In the designer, they are also visible instead of the default checkmarks, but when I run the program, it only shows the normal checkboxes instead.
  24. softtouch

    Raize TRZCheckBox and CustomGlyphImages

    The issue I see is that when the image sin the imagelist are set to 16x16, they will not appear in the checkbox. Any size different that that will show the images. Of course, everything more than 16x16 will cur them and you see only a part of them... so it must be a bug that just the needed 16x16 images are not displayed.
  25. I cant access getit, my.embacadero.com or quality. Are they again down or just for me?
×