Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dynamic windows title
#1
Hello,

I am trying to create a macro where one of the windows have a dynamic title that changes depending on the source.
 
Code:
Copy      Help
int w1=act(win("Artikkelregister | 880014829" "*.Window.*"))
    lef 1097 24 w1 1 ;;egenskapsside 'The Ribbon', verktøylinje 'Quick Access Toolbar'
    lef 507 143 w1 1 ;;sidekategoriliste, sidekategori 'Innkjøp'
    lef 514 603 w1 1 ;;kontur, celle 'Ny row 3'
    lef 515 603 w1 1 ;;kontur, celle 'Ny row 3'

It is the 8800*** number that can be something completely different. Either shorter or longer number or only text. But no longer than 20 characters. 

How can i solve this?
#2
int w1=act(win("Artikkelregister | *14829" "*.Window.*" "" 1))
#3
Sorry, i didn't get it to work.

Error (RT) in Macro1:  window not found.  


Underneath is a picture of different titles and how they display. 
​​​​​​​



[Image: temp.png]
#4
Replace the changing part of the window name with *.


Forum Jump:


Users browsing this thread: 1 Guest(s)