Jump to content

tentacole

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by tentacole

  1. I figured out my problem I was having.. hopefully it may help you. For your ControlClicks function, it looks like you are using the ClassNameNN - Try using the Advanced(Class) instead. The problem I was having was that I was attempting to create a loop to select between two instances within the window, but when I would click on the second instance, the second instance would turn into the first instance.
  2. That was my original plan. I had planned on using the command FileReadLine on the .txt file I'm using - then ctrl + f for that string, but was unsure how to proceed from there. Only thought I had was to move the mouse to the highlighted text then double click it.
  3. I figured out the problem. There are two windows within the program, when you have the first selected, the control instance is 1 and the second window's control is instance 2... But when you have the second window selected, that control is instance 1, and the first window's control is instance 2. The WinActivate("OnDemand", "-> 1") is not selecting the correct window.
  4. I'm currently having this same problem. Did you ever find a fix to this issue?
  5. >>>> Window <<<< Title: OnDemand Class: Afx:00400000:b:00010005:00000006:0CF9158D Position: -8, -8 Size: 1936, 1176 Style: 0x15CF0000 ExStyle: 0x00000300 Handle: 0x00770CDA >>>> Control <<<< Class: AfxFrameOrView120u Instance: 1 ClassnameNN: AfxFrameOrView120u1 Name: Advanced (Class): [CLASS:AfxFrameOrView120u; INSTANCE:1] ID: 59648 Text: Position: 10, 57 Size: 1879, 503 ControlClick Coords: 27, 10 Style: 0x50000000 ExStyle: 0x00000200 Handle: 0x01B20888 >>>> Mouse <<<< Position: 37, 67 Cursor ID: 0 Color: 0x00FF00 Yes, there is more to this code. The program I'm using is a program that stores .pdf letters. The script is to automate a search of a range of dates, search for a specific string within those date ranges, and then copy an ID that each letter has and paste it into a notepad. This is the information that is provided to me through Autoit v3 Window Info. I am attempting to double click on a line of text within this Control. After it clicks on the first line, I'm attempting to double click on the next line of text, which those ControlClick Coordinates are 27, 25. My assumption to the problem is that variable type for $y changes after adding 15 to $y each loop, but I'm unsure.
  6. It's a line of text that I plan to copy and paste into a notepad file. For example: Click x: 27 y: 10, copy, paste into notepad Click x: 27 y: 25, copy, paste into notepad Click x: 27 y: 40,copy, paste into notepad But the selects x: 27 y: 10 throughout the entire script.
  7. Afternoon! This is my first post, so I apologize if this is in the wrong place. I've created a while loop to click in a certain area of an application, and have the y axis change at the end of each loop. My loop continues to click at x:27, x:10, even though the $y is adding 15 at the end of each loop. I did a Send($x) and Send($y) into a Notepad to see if the $y had changed after each loop, and the 15 was being added to $y each loop. (If this makes sense) I'm unsure where I'm going wrong, and would be extremely grateful if someone can point me in the correct direction to fix this. Local $rDirectory = "H:\oDemandProject\fList.txt" Local $rLine = _FileCountLines($rDirectory) Local $x = 27 Local $y = 10 While $rline > 0 WinActivate("OnDemand", "-> 1") WinWaitActive("OnDemand", "-> 1") ControlClick("OnDemand", "", "[CLASS:AfxFrameOrView120u; INSTANCE:1]", "left", 4, $x, $y) $y += 15 $rLine -= 1 WEnd
×
×
  • Create New...