Jump to content

Theodoor

Members
  • Posts

    13
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Theodoor's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hi, I am trying to use the ControlClick in a "save as"-window to select the path of where to save the document. I found out that when in press the icon in front of the path, i select the path. So I am trying to press that button (i have attached a print screen of this window). While trying to figure out how i had to use the ControlClick, it said somewhere that i could us Au3Info to find out what title,... i should use with the ControlClick. The result of the Au3Info I have attached aswel. The ControlClick that i tried are these: (and none of these even move the mouse) ControlClick("[CLASS:ToolbarWindow32; INSTANCE:4]", "", "", "Left" ,1 ,10,10) ControlClick("[CLASS:ToolbarWindow32; INSTANCE:4]", "", "1001", "Left" ,1 ,10,10) ControlClick("[CLASS:ToolbarWindow32]", "", "", "Left" ,1 ,10,10) ControlClick("Save project as", "", "", "Left" ,1 ,10,10) I don't know what I am doing wrong. Should I use a controlID? is my windowtitle wrong? Can anyone help me? Thanks in advance, Theo
  2. Hi, I have made a very long scriptin AutoIt. But sometimes when i edit it, it gets stuck somwhere (mostly because i forgot to implement something in the script, like opening a file it needs to edit). But how do i check how far the script has progressed? Or at what line it is while it is running? It would really come in handy if this was possible. Kind regards, Theo
  3. i am sorry, you were right, it wasn t able to find the proces. The actual name of the process (in the processes list) was MatchID.exe It works now. Again, thank you !
  4. if i run this, it gives no errors: doesn t that mean that the process was found ? TEST.au3
  5. yes i was (and am) running the process
  6. Script and corresponding error attached ProcessGetCPU.au3
  7. ok so i ran into another problem. As you can see on the screenshot i used: local $iPID = 7252 but obviously the Process ID changes after reboot. So i tried your suggested method : Local $aArray = ProcessList("MatchID 2D.exe") Local $iPID = $aArray[1][1] Local $sProcess = $iPID But when i run the script, i get this error (attached prt scrn) I looked up the function ProcessList and i can't seem to find anything that i am doing wrong.
  8. @Earthshine Since i am quite new to AutoIT, i wasn't sure if this is the 'proper way' to implement it. But it works. Again, thank you very much for the tip and help!
  9. tank you for the reply !! Sorry about my late answer, i was looking into the ImageSearch function and having a lot of problems with it .. But monitoring the CPU does seem like a better option! I wasn't sure how to implement the function into my script. So i copy pasted the script of the function itself ( everything from "Func" to "EndFunc") at the start of my script and added this into my script: (see attached picture) It seems to work So thank you very much !!! @Earthshine
  10. it doesn't work and sorry about the quoting i am currently looking for a solution using imagesearch. I will update when i find out more
  11. if i wanna look for the wordt 'subset', do i do this by using this function: WinWaitActive("MatchID 2D","Subset") Or am i doing something wrong ?
  12. Thank you for your quick response. I have thought about this aswel. But the process that this calculation uses is MatchID.exe And this process keeps running even after the calculation is complete
  13. Hi, I am trying to close a window after it is done calculating. I have no idea how to check what AutoIT is able to read from the window. So i don't know what variable i could put at the parameter 'text' from the function WinWaitActive. So far i have tried these options: WinWaitActive("MatchID 2D","") MouseClick("left",43,703,1) ;clicks on the cross ;(when i do this, it instantly clicks on the close button after the window opens) WinWaitActive("MatchID 2D","Close") MouseClick("left",43,703,1) ;clicks on the cross ;(when i do this, the program never closes the window and the autoIT script keeps running) WinWaitActive("MatchID 2D","Close") MouseClick("left",43,703,1) ;clicks on the cross ;(when i do this, the program never closes the window and the autoIT script keeps running, just like the previous try) I have attached print screens of what the window looks like before it is done calculating and after. I hope someone can help me (if you recuire more info, please respond and i shall provide if i can) Greetings Theo
×
×
  • Create New...