Jump to content

TheDcoder

Active Members
  • Posts

    7,103
  • Joined

  • Days Won

    88

Everything posted by TheDcoder

  1. @KaFu I know that dirty hack! but I want a more integrated and native feature!
  2. Hi, I have a feature request, Oh boss key "Exit" .
  3. Oh, ok... was wondering if it would break the "Game automation" rule.
  4. Hi Anthony, Is GameRanger a game?
  5. Hey hey, That means I don't have the skill to code "Arrays" ! I think the AutoIt Team does have that skill!
  6. 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?
  7. My OCD cannot contain itself anymore... I have added another BIG hint to my original post.
  8. Here is my OCD kicking in again, I have added a hint to my previous post (#60)
  9. @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).
  10. @argumentum A "Map" would be more suited than an 2D array in this case! .
  11. 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]!
  12. 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 .
  13. The hardest would be the "next" packet I guess?
  14. Well... All 3 votes for " The number of bytes sent"
  15. I know that its possible, but I don't know how . As I have already said, I don't have any experience with Automation.
  16. Yes, 2 functions cannot run in parallel.
  17. Nope, its not possible, multi-threading is impossible in AutoIt.
  18. 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.
  19. 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!
  20. You don't have enough practice with AutoIt, just replace the ConsoleWrite line with Send
  21. 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).
×
×
  • Create New...