-
Posts
7,103 -
Joined
-
Days Won
88
Content Type
Forums
Downloads
Forum Articles
Events
Everything posted by TheDcoder
-
Setting the @error returned by a UDF in advance
TheDcoder replied to TheDcoder's topic in AutoIt Technical Discussion
Oh, Bitwise operations... magic numbers. I should look into them, don't know how they work -
Setting the @error returned by a UDF in advance
TheDcoder replied to TheDcoder's topic in AutoIt Technical Discussion
Yes, exactly. I was getting confused by this part. As far as I know, when a function is called, the @error macro is reset to 0 automatically... not sure what needs to be "explicitly" done. Here is an example: SetError(1) Example() ; Will output 0 to the console because @error is reset to 0 when a function is called Func Example() ConsoleWrite(@error & @CRLF) EndFunc No idea how that would work, that area is beyond my expertise . A more complete example might help me understand -
Setting the @error returned by a UDF in advance
TheDcoder replied to TheDcoder's topic in AutoIt Technical Discussion
Actually, no, it does not set @error. -
Setting the @error returned by a UDF in advance
TheDcoder replied to TheDcoder's topic in AutoIt Technical Discussion
Not sure what you mean Don't think many people use SetError outside of UDF. -
Setting the @error returned by a UDF in advance
TheDcoder replied to TheDcoder's topic in AutoIt Technical Discussion
I normally write functions which set error. I find it very convenient to use If @error Then something() after calling a function -
Help me understand operators
TheDcoder replied to tonycst's topic in AutoIt General Help and Support
Simply put, Not takes an expression, converts it into a boolean value (true/false) and inverts it. So Not (1 = 1) will be evaluated to False -
Setting the @error returned by a UDF in advance
TheDcoder replied to TheDcoder's topic in AutoIt Technical Discussion
Yes, that is my knowledge too -
Your dynamic DNS address will always point towards the host computer's external IP address. You should remove http:// because its a protocol identifier used by browsers, domain names don't need any protocol to associate with. I tried your snippet, and here is the result:
-
What is ddns.net?
-
@Deye As mentioned by @jguinch, example.ddns.net does not exist. It is the same as trying to get god.universe's IP address
-
Yes, the IPs for external clients will be out of the private IP range Not sure what you mean... the client executing a browser link or doing anything else will not effect the socket. The socket for the "GET" request is different and does not interfere with the other socket.
-
Yes, you will see private connections as 192.168.x.x. Every computer in the local private network will have a unique 192.168.x.x address
-
Getting data from source code with regex?
TheDcoder replied to youtuber's topic in AutoIt General Help and Support
"us":(\d+).*"global":(\d+) https://regex101.com/r/l4icdQ/2 -
This UDF looks old but it might work:
- 8 replies
-
- orion
- solarwinds
-
(and 2 more)
Tagged with:
-
The API is a basic web server listening on localhost:17778, it uses REST API... which uses JSON to communicate back and fro'. A good starting point would be to check out the WinHTTP UDF to place requests to the server and a JSON UDF to interpret the responses. I am personally not familiar working with JSON in AutoIt so I can't give you more advice on that part. Some reference material: https://github.com/solarwinds/OrionSDK/wiki/REST
- 8 replies
-
- orion
- solarwinds
-
(and 2 more)
Tagged with:
-
USB BarScanner RawInput without Gui
TheDcoder replied to alien4u's topic in AutoIt General Help and Support
Thanks! By the way, the actual UDF can be found in this post: (Linking it for convenience) -
USB BarScanner RawInput without Gui
TheDcoder replied to alien4u's topic in AutoIt General Help and Support
Can you link to the RawInput UDF? I cannot find it... -
Hello, I was in a similar situation a few months ago, read my answer at StackOverflow: https://stackoverflow.com/a/45746816/3815591. I am quoting the answer here for your convenience:
-
Hello! I am pretty new to DLL stuff and I have spent a lot of hours on crafting a DLL call for the ChangeDisplaySettingsEx function. I tried my code and DllCall reports success, that is good . But I am not able to identify the "return type" parameter that I should use for DllCall. I tried STR which returned an empty string, I also tried INT which returned 0... According to Microsoft's documentation, the function should return of these: Can anyone help me out here? They all look like constants to me and I cannot find their values . Thanks in Advance! TD
-
I named it "TheDcoder's IRC UDF" instead of IRC UDF because @rcmaehl's version already existed and didn't want to cause any confusion, looks like I have done the opposite Your choice, I don't mind if it stays here. But I would recommend you to thank @rcmaehl in his thread and share the snippet there too.
-
I think you found the wrong thread @Neutro, my functions follow the _IRC_xxx naming scheme . You might be using @rcmaehl's UDF, it has been around long before mine existed. P.S Take a look at the list of functions in IRC.au3: https://github.com/TheDcoder/IRC-UDF-for-AutoIt/blob/master/IRC.au3
-
Setting the @error returned by a UDF in advance
TheDcoder replied to TheDcoder's topic in AutoIt Technical Discussion
Wow, that makes perfect sense . My line of thought was not the same... let me explain what I was thinking: Home = line of code which calls a function Person = lines of code within that function (Home) When a line is SetError(x), AutoIt should remember it and shout it (pass it) to the first person in the next home (another line of code outside the function). Sorry for being not so creative...