Jump to content

dani

Active Members
  • Posts

    213
  • Joined

  • Last visited

Profile Information

  • Location
    The Netherlands

dani's Achievements

Polymath

Polymath (5/7)

0

Reputation

  1. @Fulano If I wanted to know why AutoIt's Arrays aren't Linked Lists I would have asked that question. So with the same respect to you; no I did not want to know that Ah so the problem is more complicated than I thought Yes you are right, I did imply the AutoIt method is inferior in some way; namely convenience. I think it's less convenient to use proposed methods than starting with the empty array. I am quite surprised the simply fact I question a tiny part of AutoIt and have the opinion the current way is slightly inferior is enough for you to respond in the harsh and plain rude ways you did. It really is user feedback in its purest form (a user's opinion about the product -- AutoIt). How can you blame and insult a user for posting some feedback is beyond me.
  2. This is the heart of the problem I believe. Valik, you are not the only one who knows that adding some convenience will not change the functionality. I know this, doudou knows this and frankly I think most people do. This is not something I was questioning, contrary to what you seem to believe I am not stupid Neither was I implying it is some kind of fundamental obstacle in any way, I am not sure where you got this. I seem to be on the exact same page as doudou on this one. It makes programming AutoIt more convenient in some situations (for me, at least), so I wondered why it was left out. I now understand that in your philosophy, added convience is not important enough for things to change if the functionality is already present in a (for some people) less convenient way. So I completely understand why we might be annoying considering this opinion, but I hope you can also understand our (at least mine and doudou's) reactions when you consider our view on this.
  3. As you can only travel horizontally and vertically, I think (I could be wrong of course) the shortest distance is always simply Abs(y2-y1) + Abs(x2-x1). If that really is the case -- and I am pretty 99% sure it is --, the solution would be using _ArraySearch and then just do the calculation
  4. Instead of looping through that array, I would use this: $Text = "AT*AILBA?" & @CRLF & _ "*AILBA:XXXXXXXXXXXX" & @CRLF & _ "OK" & @CRLF & _ "AT*AILVI?" & @CRLF & _ "*AILVI:" & @CRLF & _ "OK" $Data = StringRegExpReplace($Text, "(?s).*\*AILBA:(.*?)\v+.*", "\1") MsgBox(0, "", $Data) Remember that '& _' notation only allows me to continue the string on the next line without errors from the interpreter. This should be the same string as you would get using ControlGetText() on the Notepad instance. It also works when only the @CR (carriage return) or @LF (line feed) is used as line end character. As long as there is a line end character (which is present if the data in the notepad file is indeed on separate lines as you say).
  5. I haven't used IE.au3 myself but as I read in it's docs, the first parameter of _IEAttach is a substring of the browser title. In other words, that would be '<pagename> - Windows Internet Explorer'. Therefore, it probably does not find an Internet Explorer instance with 'Microsoft' as title. Could that be the case? Or does your SSL web site have 'Microsoft' as title? -- edit I now realize the name was changed recently. At least in IE6 it always was 'Microsoft Internet Explorer'. I think they started 'Windows Internet Explorer' with IE7, but I'm not 100% sure. Which version of IE do you use ?
  6. Well, as RunWait pauses execution while the program is running the ; automation code in Mhz' code wouldn't run when you use RunWait. So in that case it's not likely you want to use RunWait, or am I missing something ?
  7. Why do you want to convert a working Python script into AutoIt? Aside from that, posting a 257 line piece of code and only asking 'can this be converted?' does usually not prove to be a successful way of generating many constructive replies You could have at the very least explained what it does.
  8. $var will be a String so IsInt($var) will not work. IsInt(Number($var)) would though.
  9. Can you specify what fails exactly? Also, I have one script which intensively uses Excel files but I never use _ExcelBookAttack -- to my knowledge you can just use _ExcelBookOpen and use the returned handle. Isn't _ExcelBookAttach used when Excel is already running? Please correct me when I'm wrong
  10. It would also be nice to use icons on those buttons instead of plain text -- it looks much better. In order to do that, take a look at GUICtrlSetImage (do not forgot the 'style' parameter as $BS_ICON or $BS_BITMAP).
  11. Did you not read the IniRead documentation ?
  12. Control + Alt + C, see here
  13. What's with all the Dutch people and AutoIt
  14. What is the error and at what line does it occur? Only giving a piece of code won't do it
  15. True. I have once said most of the topics in General Help and Support would be obsolete if people would actually read the Help file. And I'm not talking about reading through it in 2 minutes but actually take the time, read some tutorials and practice some. Nevertheless; @program builder: you have enough input now so I'd recommend to either a | take one of the scripts provided and make sure to fully understand what they do and learn from them or b | take trancexx' suggestion and code something yourself. Btw I wouldn't call the scripts posted an overkill as trancexx does, they do only copy files from one directory to another so .. would be nice if they would make my cofee!
×
×
  • Create New...