Jump to content

omikron48

Active Members
  • Posts

    782
  • Joined

  • Last visited

omikron48's Achievements

Universalist

Universalist (7/7)

0

Reputation

  1. OR If Not (StringIsInt($s_Number) OR StringIsFloat($s_Number)) Then msgbox(0, "Error", "String is not an Integer nor a Float: " & $s_Number)
  2. You can use "sc query <servicename>" and process the output to determine whether a service is already running. I'm not sure whether "sc query" is better to use than "net start" or vice-versa.
  3. Which parts of your code fail? If it's MouseClick or Send, you need to replace them with ControlClick and ControlSend so they keep working even if the computer is locked. I'm not sure with what happens you get disconnected to a remote session in RDP on a server class OS (Windows Server 2003/2008), since there's more than one active session (console and remote) as opposed to only one session (console only) active with desktop ones (XP, Vista, Win7). I'm not even certain if what kind of remote session you are using is a factor with automating within a disconnected session. What I can say is that I have successfully done software installations, even on disconnected sessions (when connection drops) via using ControlSend and ControlClick on the program installation wizard on Windows XP.
  4. You can just modify to look the way you want, or you can just use it as is.
  5. Global $sLogFile = @ScriptDir & "C:\Documents and Settings\Barry Bowden\Application Data\Thunderbird\Profiles\8xdu7029.default\Mail\pop3.live.com\Inbox" This is causing your error. The actual file path contained in $sLogFile is invalid since it's a concatenation of the file path of your script and the "C:\Documents and Settings\Barry Bowden\Application Data\Thunderbird\Profiles\8xdu7029.default\Mail\pop3.live.com\Inbox" Since the file path you are trying to read is invalid, you can't read anything because the file you want can't be found. Try printing out the value of $sLogFile to see what I mean. You can just stick this line after you assign a value to $sLogFile. MsgBox(0x2000, "sLogFile", $sLogFile)
  6. One of the advantages of AutoIt I really liked is that its core library only uses stuff that is natively available in Windows, i.e. You don't need to install anything else to run your basic AutoIt script. Stuff developed in C#, VB.Net, etc need the .Net framework installed to run. Stuff developed in Java need the Java Runtime Engine. AutoIt has the option of packaging the interpreter along with the script into a reasonably sized executable. AutoIt, however, does not natively support Object Oriented Programming, but I think someone made something that allows AutoIt to have OOP functionality, just haven't gotten around to learning it yet.
  7. The script I use for setting wallpapers on XP works fine on Windows 7. I always run it under administrator privileged though.
  8. Or you can just use the good old DEL command: RunWait('del /s /q "C:\ProgramData\' & @UserName & '\*.exe"')
  9. It's when the data type of a variable is set upon its declaration, as in C, as opposed to a variable whose data type is determined upon access, as in AutoIt. EDIT: Typo
  10. Just concatenate a string using the various date/time macros available in AutoIt. (e.g. @MON, @MDAY, @HOUR, etc)
  11. Try lengthening the SendKeyDownDelay to 50ms or more. If it's not the window focus, it might be that the window can't detect to sent keys fast enough.
  12. This is one of the reasons I removed Comodo Internet Security and reverted back to ZoneAlarm.
  13. WTF ?!?!?!??! Like anyone can even guess what's the cause of your problem with just an error message with no context even...
×
×
  • Create New...