Jump to content

PeteS

Members
  • Posts

    4
  • Joined

  • Last visited

PeteS's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thanks, Lar. I'm curious what you used to interrogate the CPU? Were you using ProcessGetStats()? If so, which stat were you looking at? This sounds like it could work. My CPU usage is reeling at this time, along with I/O Reads or I/O Writes. Pete S
  2. Using ControlSetText() worked beautifully for me. I do not have the CAPS lock on, am not using Shift, and I am not Czech or using a Czech keyboard, this is strange behavior. Bam, I have also seen the random capitalization in some of the strings on a couple executions of this script. All seems well with the ControlSetText() function. Thanks, Jos! Pete S
  3. The following code gives me inconsistent results. Sometimes the string is sent correctly, but sometimes it is sent with minor variations. The latest one was supposed to send the following string: "C:\_Work1\Dispense_Before.txt", but it sent this instead: "C:|_Work1\Dispense_Before.txt". Close, but not quite, although, the same string is displayed in a msgbox at the end, and it was displayed correctly. In this case, it is sending the string to an Edit box in a Save As dialog, but I got the same results when sending strings to TMemo controls, too. $saveAsName = $workLoc & $arTables[$tableIndx] & $suffix $doesItExist = FileExists($saveAsName) ControlSend("Save As", "", "[CLASS:Edit; INSTANCE:1]", $saveAsName) ControlClick("Save As", "", "[CLASS:Button; INSTANCE:2]") ;if the file had already existed, then we will need to Confirm its replacement if $doesItExist Then ControlClick("Save As", "", "[CLASS:Button; INSTANCE:1]") EndIf Sleep(3000) MsgBox(0, "File Saved", "File Saved as: " & $saveAsName) Maybe I should mention that before this, the script is copying very large amounts of text to and from the clipboard. I have put what seems to be sufficient sleep() delays to allow the copy and pasting to complete. I have tested with extremely long delays, with the same inconsistent results. Thanks, Pete S
  4. I have a 3rd party application that I am manipulating with an AutoIt script. The AutoIt script has the the 3rd party app query a database. The result set is about 500K records, and it takes about 20 secs for the query to finish, and the app to be ready for the next command. I can't figure out how to let AutoIt know when it is ready for the next command. The window always has focus. I can lose focus and get focus while the app is running the query. The cursor is an hourglass, but I'm not sure how to use that as a trigger. I don't want to use a sleep() function because I am querying tables of different sizes. Most are very small. Any ideas? Thanks, Pete S
×
×
  • Create New...