It's a good teaching style to have if people have plenty of time to spend working on code. I personally learn best through example and a quick explanation, and then I know how to convert that to what I need in a particular case.
What's getting me right now is just doing an automatic tweet on twitter. The box is "<div id="tweet-box-mini-home-profile" class="tweet-box rich-editor notie" contenteditable="true" aria-multiline="true" role="textbox" spellcheck="true" aria-labelledby="tweet-box-mini-home-profile-label" dir="ltr" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false" aria-controls="typeahead-dropdown-4"></div>"
Using the iWB2 Learner tool, it returned to me the bolded. How do I go about targeting this? I'm at wb.document.all.tweet_box_mini_home_profile.value := Test Tweet
which does not work. I found that AHK does not accept - in the class name, so I tried just replacing them with underscores. I can launch the script, but it runs into an error when it tries to search it on the webpage - of course because there is no field by that particular name with underscores.
If I use the name as is:
---------------------------
Anarchy Sophisticated.ahk
---------------------------
Error at line 8.
Line Text: wb.document.all.tweet-box-mini-home-profile.value := "Test Tweet"
Error: This line does not contain a recognized action.
The program will exit.
---------------------------
OK
---------------------------