Jump to content
Macro Express Forums

tass_co

Members
  • Posts

    8
  • Joined

  • Last visited

tass_co's Achievements

Rookie

Rookie (2/14)

  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Thank you again for your answer. As I said before, I don't know much about coding. As you said, I thought there might be a problem due to the "space" in the window title. Based on this, I tried to handle the "percentage" part and the code gave positive results. The working code is below. <VARIABLE SET INTEGER Option="\x00" Destination="%N[1]%" Value="0"/> <REPEAT UNTIL Variable="%N[1]%" Condition="\x00" Value="1"/> <IF WINDOW Option="\x01" Title="100% tamamlandı" Partial="TRUE" Wildcards="TRUE"/> <VARIABLE SET INTEGER Option="\x00" Destination="%N[1]%" Value="1"/> <DELAY Flags="\x01" Time="2"/> <END IF/> <DELAY Flags="\x01" Time="10"/> <END REPEAT/> <POWER OFF COMPUTER _ENABLED="FALSE"/> I would like to thank all my friends who responded and tried to help. Respects
  2. Thank you for offering a different solution, but I do not want to complicate the code when there is a much easier way to do it. I want to make a command or application that will run when the copy window is closed.
  3. Oh sorry I thought you were talking about something else. I have to use File Explorer to copy files. Because I decide which files to copy by considering the space on the disks.
  4. Thank you for your answer. I use 2 PCs. One is for download purposes only. The time it takes to copy files from one to another varies depending on file size. For example, I am transferring a 200GB file. ıt takes 1 hours. Therefore, I think the repetition time of the code you shared will sometimes be sufficient and sometimes not. Please correct me if I'm wrong.
  5. There will always be a space in front of "tamamlandı". Because Windows always shows the percentage in the title when copying/moving files. I added the delay for measure. Location does not matter. I tried the code you shared. Unfortunately, it does nothing when the copy is completed. It stays in the if loop
  6. Thank you for your answer. Unfortunately, I don't know much about the application. Sorry for that. What do you mean by "Use the MEP commands to manipulate the files"? Could you give me an example?
  7. Thank you for your answer. The code I am currently using works with Window Focusing logic. <WINDOW ACTIVATE Title="tamamlandı" Exact_Match="FALSE" Wildcards="FALSE" _IGNORE="0x0006"/> <WAIT FOR WINDOW TO LOSE FOCUS Title="tamamlandı" Partial="TRUE" Wildcards="TRUE" Indefinite="TRUE" Hours="0" Minutes="0" Seconds="0"/> <DELAY Flags="\x01" Time="5"/> <POWER OFF COMPUTER/> However, the focus of the window may be lost when another application/notification etc. arrives and the PC may shut down before the copying/moving process is completed. Unfortunately I need to find a more stable solution.
  8. Hello, Sometimes it takes a long time to copy/move my files. I wrote a code using the Macro application to shut down my computer as soon as this window is closed. However the If condition does not work properly with the File copy/move window. I'll be happy if you can help me. ps: I am using the Turkish language. I can find the copy window with the title "tamamlandı". (Of course Partial Matching. Full title ex "53% tamamlandı") <VARIABLE SET INTEGER Option="\x00" Destination="%N[1]%" Value="0"/> <REPEAT UNTIL Variable="%N[1]%" Condition="\x00" Value="1"/> <IF NOT WINDOW Option="\x01" Title=" tamamlandı" Partial="TRUE" Wildcards="FALSE"/> <VARIABLE SET INTEGER Option="\x00" Destination="%N[1]%" Value="1"/> <END IF/> <END REPEAT/> <DELAY Flags="\x01" Time="5"/> <MESSAGEBOX Caption="PENCERE" Message="PENCERE KAPANDI" Icon="0"/>
×
×
  • Create New...