Getting value from html button inside gui Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
Mipha
Posts: 18
Joined: 27 Jul 2018, 17:08

Getting value from html button inside gui

16 Aug 2018, 10:04

This is what I got so far. I want to retrieve the value from a button when I press it. How should I go about doing that?

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

A_AhkUser
Posts: 862
Joined: 06 Mar 2017, 16:18
Location: France

Re: Getting value from html button inside gui  Topic is solved

21 Aug 2018, 14:35

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

Mipha
Posts: 18
Joined: 27 Jul 2018, 17:08

Re: Getting value from html button inside gui

22 Aug 2018, 18:05

Thanks for the answer. I've been stuck on this one for a while.
A_AhkUser
Posts: 862
Joined: 06 Mar 2017, 16:18
Location: France

Re: Getting value from html button inside gui

22 Aug 2018, 19:11

I'm glad I could help ;) Btw, I used the getAttribute method; its main advantage is that it does not notify of COM errors if the property could not been accessed, regardless the use of ComObjError. Also, note that I used event.srcElement, which is IE-specific (or, at least, I think). You can off course use alternatively event.target.

Return to “Ask For Help”

Who is online

Users browsing this forum: arcticir, Google [Bot], TXShooter and 67 guests