-
Posts
7,103 -
Joined
-
Days Won
88
Content Type
Forums
Downloads
Forum Articles
Events
Everything posted by TheDcoder
-
HMW - Hide my Windows [Updated 2024-Oct-18]
TheDcoder replied to KaFu's topic in AutoIt Example Scripts
@KaFu I know that dirty hack! but I want a more integrated and native feature! -
HMW - Hide my Windows [Updated 2024-Oct-18]
TheDcoder replied to KaFu's topic in AutoIt Example Scripts
Hi, I have a feature request, Oh boss key "Exit" . -
Running an executable from user's appdata
TheDcoder replied to AnthonyBF2's topic in AutoIt General Help and Support
Oh, ok... was wondering if it would break the "Game automation" rule. -
Running an executable from user's appdata
TheDcoder replied to AnthonyBF2's topic in AutoIt General Help and Support
Hi Anthony, Is GameRanger a game? -
AutoIt internal UBound chaching proposal
TheDcoder replied to TheDcoder's topic in AutoIt Technical Discussion
Hey hey, That means I don't have the skill to code "Arrays" ! I think the AutoIt Team does have that skill! -
AutoIt internal UBound chaching proposal
TheDcoder replied to TheDcoder's topic in AutoIt Technical Discussion
I am afraid that I don't know how to represent the internal mechanisms of Arrays in code... I have clearly made some points in the first posts about how it would work, have you read them? -
Directory Enquiries Challenge
TheDcoder replied to czardas's topic in AutoIt General Help and Support
My OCD cannot contain itself anymore... I have added another BIG hint to my original post. -
Directory Enquiries Challenge
TheDcoder replied to czardas's topic in AutoIt General Help and Support
Here is my OCD kicking in again, I have added a hint to my previous post (#60) -
Directory Enquiries Challenge
TheDcoder replied to czardas's topic in AutoIt General Help and Support
@argumentum Here is a simple example for you ; NOTE: Use the latest BETA version of AutoIt #include <MsgBoxConstants.au3> Global $mCountryCodes[] ; Declare the map which will contain the country codes ; Add some country codes to the database $mCountryCodes["1"] = "US" $mCountryCodes["91"] = "India" $mCountryCodes["81"] = "Japan" Global $sInput ; This will store the input While True ; Infinite Loop! $sInput = InputBox("Country Code Directory", "Enter the country code and I will tell you the country :)") If @error Then Exit ; If the user closes the InputBox... If MapExists($mCountryCodes, $sInput) Then ; Check if the country code exists in the database MsgBox($MB_ICONINFORMATION, "Country of the code", $sInput & " is used to call " & $mCountryCodes[$sInput]) Else MsgBox($MB_ICONERROR, "Error", "Country code not in database :(") EndIf WEnd (Hint: You can use my Experimental Maps UDF to convert @argumentum's array to a map!) (Big Hint: I have compiled all the necessary bits of code and made an Country Code Directory script! Just click "Download ZIP" to download all the files you need!) I think it implies that you have no idea about what I am talking about and are very sceptical about it (or something similar like that). -
Directory Enquiries Challenge
TheDcoder replied to czardas's topic in AutoIt General Help and Support
@argumentum A "Map" would be more suited than an 2D array in this case! . -
AutoIt internal UBound chaching proposal
TheDcoder replied to TheDcoder's topic in AutoIt Technical Discussion
It can be easily solved by using a For...In...Next loop, we cannot use the For...In...Next loop for arrays with index in [0]! -
AutoIt internal UBound chaching proposal
TheDcoder replied to TheDcoder's topic in AutoIt Technical Discussion
I would be relieved if this were the case . Nice question. Like @orbs said, I would cache/store the length, but I am more focussing on a scenario where a UDF would have to use an extra element to store the value in it's return array (The classic example is StringSplit storing the number of elements in [0]). I consider storing the number of elements/items/entries in the 1st element ([0]) as a bad practice, it has some programmatically dis-advantages (I think most of you will agree with me here). So I was thinking of not doing that if UBound cache's the length/size, as it would be easier and the length would not have to be a part of the array itself. Yes, that is what I do when I write a script or a program but as I have said in the above paragraph (in the reply to Bowmore): Hope you that you have got what I am trying to say here . Anyway, as @JohnOne and @jchd speculated, it would nice if a developer would shed some light on the internal workings of Arrays and UBound . -
Directory Enquiries Challenge
TheDcoder replied to czardas's topic in AutoIt General Help and Support
Same here . -
My pleasure!
-
I know that its possible, but I don't know how . As I have already said, I don't have any experience with Automation.
-
Yes, 2 functions cannot run in parallel.
-
Nope, its not possible, multi-threading is impossible in AutoIt.
-
1. Open notepad 2. Run this script: #include <misc.au3> While 1 If _IsPressed(41) Then ;41 is Aplphabet A While _IsPressed(41) ;41 is Alphabet A Send(' ') WEnd EndIf Sleep(10) WEnd 3. Activate notepad and hold "A" You will be writing both A and Space at the same time.
-
he? who is he?
-
Sorry, I can't understand you . Anyway, now you know the basic syntax, you can do anything with just a few tweaks. I cannot help you any further regarding Automation because I have never done any automation myself!
-
You don't have enough practice with AutoIt, just replace the ConsoleWrite line with Send
-
That is impossible with normal functions AFAIK. You cannot stop a function once you have started it (You can pause it though, look at the documentation for Adlib function).