Jump to content

skrewler

Members
  • Posts

    6
  • Joined

  • Last visited

skrewler's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Well, I'm just rewriting the whole file and taking the performance hit as I don't see any other option right now.. Wondering how the builtin ini functions do this?
  2. http://www.autoitscript.com/autoit3/docs/f...leWriteLine.htm I tried using readline along with some regexps to do this. As it is, I have the lines of text the way I want them, but FileWriteLine() doesn't seem to work the same as readline does. It seems to just be the same as FileWrite(). e.g. this is what i have: $linetoedit = FileReadLine("c:\blah", 3) $editedline=StringRegExpReplace($linetoedit, "([my regexp])", $replacetext)) FileWriteLine("c:\blah", $editedline, 3) However, FileWriteLine doesn't work like that, it only appends to the end of the file ... you can only do this: FileWriteLine("c:\blah", $editedline) -- unless I'm missing something. Unfortunately my file is really really big, so reading thru every line to recreate the file is something I'd like to avoid.
  3. I have a file that contains two fields with an ip address. I need my autoit script to take an ip address as an argument, and replace the two ip addresses in the file with the one given in the argument. Is this possible in AutoIt? Any help is appreciated
  4. Running from remote computer.. Thanks, will try that.
  5. Should have made it more clear: I meant to say WinActivate .. WinActive was in my mind, because my check with WinActive kept failing ..
  6. I'm using AutoIT on Windows 2003 through remote desktop. Everything works great, but whenever the Remote Desktop Window isn't in focus, it seems my scripts get stuck on WinActive. I did some searches, and saw only some other problems with closing out the Remote Desktop sessions and having the same symptoms. I'm not closing it out, the Window is just not in focus. I have no problems with leaving a bunch of remote desktop windows open..., but for my application I need to be running this autoit script on a bunch of different Windows machines simultaneously. Are there any settings (maybe remote desktop?) or functions in autoit similar to WinActive that would be more friendly under Remote Desktop? Any help is appreciated.. my next thought is trying my autoit sessions under VMWare guests, and hoping those Windows don't have the same problem..
×
×
  • Create New...