-
Posts
7,103 -
Joined
-
Days Won
88
Content Type
Forums
Downloads
Forum Articles
Events
Everything posted by TheDcoder
-
@jchd I see, that is interesting, is there a reason behind it? Is it a technical limitation of the hash table implementation? P.S Strange how I didn't get a notification for this topic, and was not "following" it, I guess the followers got reset when this thread was merged with my duplicate.
- 22 replies
-
- maps
- new datatype
-
(and 2 more)
Tagged with:
-
@water Looks like M23 has removed his code, but yes, it is a good idea to merge it with another good UDF to make a master UDF which is good enough to be included in the standard library. My code is licensed under public domain, anyone can copy and use it freely.
- 22 replies
-
- maps
- new datatype
-
(and 2 more)
Tagged with:
-
Turns out I did create a topic: I just found that out when looking at the header comments in my UDF, very weird, I searched for this topic but I did not find anything, so I assumed I did not create a topic. @Mods is it possible to merge this thread into the other one, with the new posts appended?
- 22 replies
-
- maps
- new datatype
-
(and 2 more)
Tagged with:
-
Hello everyone, To celebrate the recent new releases of AutoIt Beta with critical bug fixes for maps, I have decided to create a topic for the Experimental Maps UDF that I created a few years ago. It is strange how I never created a topic about it Here is the GitHub repository: https://github.com/TheDcoder/Experimental-Maps-UDF I think it has all the basic functions, here is the list of all the functions currently in the repository: ; #CURRENT# ===================================================================================================================== ; _Map_1DArrayToMap ; _Map_2DArrayToMap ; _Map_Append ; _Map_Concatenate ; _Map_ConvertToArray ; _Map_Delete ; _Map_DictObjectToMap ; _Map_Display ; _Map_IniToMap ; _Map_MapToDictObject ; _Map_MapToIni ; _Map_MapToString ; _Map_ReassignKey ; _Map_Search ; _Map_StringToMap ; _Map_Sync ; _Map_Unique ; =============================================================================================================================== Have fun!
- 22 replies
-
- maps
- new datatype
-
(and 2 more)
Tagged with:
-
Issue with TCP IP communication
TheDcoder replied to YogendraAtluri's topic in AutoIt General Help and Support
TCP is a duplex connection, meaning you can use the same socket to both read and write (send and receive) data, so use a single socket with both TCPSend and TCPRecv. You don't have to use TCPListen for client connections. -
@argumentum I apologize, it looks like I mistook what you meant by "I don't code the GUI script testing" as "I don't have any GUI OnEvent scripts". No offense, but I can probably make such a script to test the faulty parts that Jon has applied patches to, unfortunately I am currently busy with other stuff so I have little time to spare
-
If you are still willing to test, you can test my GUI oriented program ProxAllium, which is made in 100% AutoIt and it only uses OnEvent based code, so it should be a good specimen I am busy with other things right now (which also includes the re-write of the said program in C) and I don't have a Windows machine handy, otherwise I would have done the tests myself. Thanks @argumentum for offering to test.
-
WebDriver + UFT8/Emojis help
TheDcoder replied to sergey_slash's topic in AutoIt General Help and Support
It depends on the contents of the HTML element you are extracting, innerText will usually get all text as it appears, so if the element does contain emoji it will return them. You can check the HTML to see if they are doing something like replacing emoji with their own images... usually there is another element with the original text, and you can target that to get the full unaltered text. If unsure, you can post the HTML of the page from which you want to extract the text and we can take a look. Or just post the URL if the website is public and you don't mind sharing. -
WebDriver + UFT8/Emojis help
TheDcoder replied to sergey_slash's topic in AutoIt General Help and Support
Yes, you can use Firefox and GeckoDriver (Firefox's webdriver) to send emoji input to the target website. -
WebDriver + UFT8/Emojis help
TheDcoder replied to sergey_slash's topic in AutoIt General Help and Support
You are not wrong. The more accurate description would be that AutoIt reads the text from the script (.au3 file) in the encoded format (usually UTF-8) and then internally stores it in UTF-16. Right, the data would be intact until the WebDriver recieves the string, this is where problem occurs if the proper encoding is not used. The issue could be in the WebDriver and/or the UDF. --- @Danp2 Upon further investigation of your output, it looks like it is an bug in ChromeDriver: https://stackoverflow.com/a/59139690 -
WebDriver + UFT8/Emojis help
TheDcoder replied to sergey_slash's topic in AutoIt General Help and Support
It might be an encoding issue during communication with the web driver, tagging @Danp2 to confirm my suspicion -
@bradsmithsite It is closed source, the source is not provided to the public.
-
@FrancescoDiMuro I only wanted to point out that OP was already using regex, but thanks for sharing the RegEx version
-
@Jos Nice! I was thinking if it was possible to write an UDF without using manual checking or RegEx but did not think of comparing the string with the number @FrancescoDiMuro He is already using RegEx according to his first post.
-
I think you are mis-understanding the question, OP is aware of how the function works, but he wants to know why it was designed to work that way.
-
@Jos Your logic is right, but I think OP is wanting to know why Int doesn't have a error-checking mechanism to detect non-numeric input. @MattHiggs It does look like this function works this way by design, I do agree that it would be nice to have some error-checking mechanism, the best way to implement it would be to set @error in case the input is not numeric, this is backward compatible with existing code I guess this is something I can implement in my cross-platform implementation
-
It certainly is, the line which creates the final big multi-line string has never changed since the first version: urls = urls.join('\n');
-
#NoTrayIcon issue for UDF writers
TheDcoder replied to MrCreatoR's topic in AutoIt General Help and Support
@argumentum Nice work around but it won't work for compiled scripts. -
Just to clarify, you need to click the "Raw" button to get the raw plain text script, and if you have ViolentMonkey installed, it will prompt you to update the script. This link will always point to the latest version as it is the link for the "project" itself. "Raw" links are tied to specific commits so they will always serve the same file even if the project was updated. This is a feature of Git, unfotunately we don't have a dynamic raw link which always points to the latest version, this is a limitation of GitHub Gist.
-
C is a low-level language, so it is not comparable to AutoIt... even comparing it to C++ might be a strech. I do have to say that C programming is not for the light-hearted, one needs to have some good programming experience to be able to cope with the bare-metal interface provided by C But don't let my word stop you from trying it out, you might just learn something new
- 5 replies
-
- c programming
- scite for c
-
(and 2 more)
Tagged with:
-
I don't have the answer to your question, but I do know that there are a few guides for SciTE that give you instructions on setting up custom menu options But I am not making this whole post about advice that you already know, I am here to share my experience with an IDE/Editor for C. To start, I do not like the huge bulked up IDEs which come with a ton of features and also setup the compiler for you... no, I am not into those so I am not going to recommend them, but if you want to check them out there are plenty of options out there. I think the perfect balance between an IDE and just a plain text editor needs to be found, and I found that in Geany Geany is light-weight but also has support for all the basic features like code highlighting, auto-completion, options/buttons to run basic commands to build your code, and the most important feature: embedded terminal Geany natively supports C, so it supports the syntax etc. out of the box, and it even has handy options to switch between headers and source code. It also has an healthy set of plugins which can extend the editor, my favourite plugins are the project manager and git changebar. So I suggest you give it a try 👍
- 5 replies
-
- c programming
- scite for c
-
(and 2 more)
Tagged with:
-
Indeed, that is one of the reasons why I am struggling to find the time for it, a lot of research involved. I was laughing at the part mentioning the college kids There are advantages in both approaches. For my project I am planning to do a hybrid approach, where the plain text script will compile to a processed binary file, so that the actual interperter doesn't have to deal with parsing strings. Python uses a similar approach I think.
-
The beauty of free software is that anyone can use and share it, and it enables many people to expand their horizons with almost zero investment (not counting time, of course). Like @TheSaint has said, it enables people. Enables them to take true control of their computer! There are many ways to monitize free sofware, one way is to run ads on the forum (this forum runs ads for unregistered users). And donations are of course part of the picture, with enough users a developer can sustain himself to work on the project based on their donations. I know a few people who have managed to accomplish this. I miss AutoIt ever since I switched to Linux, where I mainly program JavaScript as part of my job. Though I hope to change the situation one day with my project, I am thinking about starting work on it soon.
-
Microsoft Edge Chromium Apps
TheDcoder replied to coffeeturtle's topic in AutoIt General Help and Support
Maybe you are talking about Progressive Web Apps?: https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps Some browsers allow compliant webpages to be added as "apps": https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Installable_PWAs