Jump to content

Jonovision77

Members
  • Posts

    3
  • Joined

  • Last visited

Jonovision77's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Final Solution that worked 100% Opt("WinDetectHiddenText", 0) While 1 WinWaitActive("Retail Merchant", "Receipts") ;restricted to only run at the first page with receipt in the name If WinActive("Retail Merchant", "TenderPage") Then Call (_HotKeys) Sleep(100) Else Call (_ClearHotKeys) Sleep(100) EndIf Sleep(200) WEnd Thanks Water for the very helpful bit of code, a simple command. Of course this revealed that my coding was inherently flawed and I needed to adjust it before the hot keys became disabled upon leaving the final page.
  2. Because the hot keys are active the moment the receipt page is visited, which has a hidden text value of TenderPage but it is not listed under visible text until the final receipt page is visited. This is the text I used on the second while command and the loop activates early.
  3. Hi this is my first time asking for help, I usually find a solution online but this one has stumped me. I am working with a business retail software and I have noticed a very annoying feature with the software, it doesn't matter what window or tab I am on the hidden text is almost always the same because the more tabs I visit the number of hidden text items grow, which pretty much eliminates the usefulness of the text portion of winwaitactive("title", "text"). Is there a way that I can use only the visible text in identifying a window/tab? The reason I need this to work is because I have a while loop that is intended to only activate the hotkeys on the final page of the software. While 1 WinWaitActive("Retail Merchant","") ;no text here because the software in open While WinWaitActive("Retail Merchant","visible text") Call("_HotKeys") Sleep(200) WEnd Sleep(200) WEnd Or is there any other way of identifying a page with a unique value that doesn't change upon reloading the system or software? Thank you
×
×
  • Create New...