Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

How do I click a button with a changing name?

$
0
0
Hello,

I am new to Autoit and I want to automatically select a specific button, then click a specific button opened in a new window, fill out a form and send the form.

Here is the page: http://www.buchsys.de/mannheim/angebote/aktueller_zeitraum/_Badminton_fuer_Sie___Ihn.html
It is for my university where we can book or reserve badminton courts. I am only interested in the green buttons as the orange ones are not possible to book.

Example:

On the table Mittwoch 16:00 - 17:00 on the second row is a green button. I found out with firebug that the button name="BS_Kursid_29759" . My problem is, how do I select this button which changes every week? If I have got this then I believe it shouldnt be a big problem to do the rest.

#include <IE.au3>

$IE = _IECreate("www.google.de")
$Button = _IEGetObjByName ($IE, "btnG")
_IEAction($Button,"click")

Is my code until now.

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>