Jump to content

alanchinese

Members
  • Posts

    10
  • Joined

  • Last visited

Recent Profile Visitors

85 profile views

alanchinese's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hello, is there a way to get the content of an AFX tool bar? Here is the control information. I believe others suggest using ControlGetHandle This >post illustrates how to deal with list view. I am trying to do the same thing for this tool bar. It looks exactly like the status bar. >>>> Control <<<< Class: Afx:400000:8:10003:10:0 Instance: 1 ClassnameNN: Afx:400000:8:10003:10:01 Name: Advanced (Class): [CLASS:Afx:400000:8:10003:10:0; INSTANCE:1] ID: 59393 Text:
  2. Hello, is there a way to read the visible label text from a ThunderRT6UserControlDC control? Apparently, it's not window text. I used window detective to identify the font style, but just not the label text. Thank you so much for your help.
  3. Hi, I recently found that the application that we are automating have a shortcut to navigate through the mini-tabs (CTRL+Left or CTRL+Right). It was not documented. I am wondering if there is a way to detect all available keyboard shortcuts for a certain window state (handle)? Thank you very much.
  4. I am planning to use one PC though I can add another one or two. The whole purpose is to simulate the load. Not quite sure how mouse clicks and keyboard actions are accomplished while the application is running in the background. Also, I am trying to find out how the load testing tools (HP LoadRunner) is architecting this solution.
  5. i wrote this application, though i want to know how to handle the third party applications too. are there different approaches?
  6. I have a thick app that does data entry, calculation, and interact with database. I want to create a load (100+ concurrent users) and avoid using HP LoadRunner.
  7. Hello, I am trying to generate some loads of my AutoIt script, wondering if I can fire off my script in the background thread. I know some C# and think that running it in windows service could serve the purpose. Is there a better way?
  8. Thank you jdelaney. I repeated the script overnight, it failed significantly less. Now my follow up question is, how to wait for a specific image to appear? I am wondering if there is a way for me to capture a target image's checksum and wait for this image to apear so my script can behave upon more than one results from a long running process. I have seen PixelChecksum returning different results from different script executions. So the following code would not work. For example ; Note: this function will not work as expected ; $x, $y, $w, $h: region to check; $prepareRate: amount of milliseconds to skip on checking; $waitRate: amount of milliseconds between checks Func _WaitForImageToAppear($x, $y, $w, $h, $prepareRate, $waitRate) Sleep($prepareRate) Local $count = 0 While True Local $checksum = PixelChecksum($x, $y, $w, $h) Switch $checksum Case $targetImageCheckSum1 Return 1 Case $targetImageCheckSum2 Return 2 Case Else If $timeOut > 1000 Then Return 0 EndIf EndSwitch $timeOut += 1 Sleep($waitRate) WEnd EndFunc
  9. Hi Wayfarer, the issue is not about the app is hanging. It says "Not responding" for a while, and return to normal when resource are available or it is not working that hard. The issue is, the bitmap checksum changes when the app greys out. My code waits for a region of bitmap to change, i.e., "Processing...." is changed to "Completed". It still reads "Processing...", but the color is different. Here is my function: ; $x, $y, $w, $h: region to check; $prepareRate: amount of milliseconds to skip on checking; $waitRate: amount of milliseconds between checks Func _WaitForImageChanged($x, $y, $w, $h, $prepareRate, $waitRate) Sleep($prepareRate) Local $checksum1 = PixelChecksum($x, $y, $w, $h) Local $checksum2 = $checksum1 while $checksum1 = $checksum2 $checksum2 = PixelChecksum($x, $y, $w, $h) Sleep($waitRate) WEnd EndFunc
  10. Hello Community, I am automating an thick application. One of the steps is to wait for a bitmap hash changed after an event, taking arbitrary amount of time. I use PixelChecksum to check if the hash is changed every second. It worked fine, but it occassionally breaks when the application is "Not Responding", which turns the front end grey. What kind of workarounds would you suggest? I appreciate any feedbacks and suggestions.
×
×
  • Create New...