Friday, January 10, 2014

How to read Dynamic control ID

How to read dynamic control ID of an object

Image 1: Emulator's (MyMobiler) snapshot as seen on the desktop (device connected via WiFi):

























Image 2: Control ID value as seen from the AutoIT Windows Info tool ([CLASS:ATL:0132B3A0; INSTANCE:1]):




























Problem description:
  1. This value [CLASS:ATL:0132B3A0; INSTANCE:1] changes every time I start a new instance of MyMobiler (emulator)
  2. How can I capture this dynamic control ID from AutoIT script, store in a variable and use it in the script without reading every time I open the emulator