Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

How to active a windows which name changes...


  • Please log in to reply
1 reply to this topic
SilenceDK
  • Members
  • 2 posts
  • Last active: May 19 2014 01:03 PM
  • Joined: 19 May 2014

Hi.

 

New to this forum and also to the amazing World of autohotkey...

 

I ran into a problem though.

I need to open a window in a softphone application.

The problem is that the name of the window changes...

 

Like: "(x) Trio Agent - Yyyy Yyyyyyyyyy(Zzzzzzzzzz) @ ttttttttttt"

 

where

x = number of customers in que

Trio Agent =Always the same string

Yyyy = Name of the agent

@ tttttttttttt = Local telephone number

 

The only string that is always the same is "Trio Agent" i.e. the application name, but how do I activate that specific window when the rest of the Windows title is never the same?

 

Any suggestions

 

/Nick , Denmark



Oldman
  • Members
  • 2475 posts
  • Last active: Feb 18 2015 04:57 PM
  • Joined: 01 Dec 2013

See here.

SetTitleMatchMode, 2
WinActivate, Trio Agent -

Si ton labeur est dur et que tes résultats sont minces, souviens toi du grand chêne qui avant n'était qu'un gland....comme toi ! (anonyme) ;)

L'art de lire, c'est l'art de penser avec un peu d'aide. (É. Faguet)

Windows 3.1. Collector's Edition.     (www.avaaz.org)