In the inputbox that comes up, you're supposed to write the name of some US university (e.g., central michigan university)
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
pwb := ComObjCreate("InternetExplorer.Application")
pwb.visible := true
pwb.toolbar := false
numberlink := 21
num = 1
InputBox query
StringReplace, search, query, %A_Space%, `%20, all
navigate = https www.studyblue.com /#search/classes/%search%/scope=ALL Broken Link for safety
MsgBox % navigate
pwb.navigate(navigate)
while pwb.ReadyState != 4
Sleep, 100
Loop, 10 {
queryselected = "#course-list-items > div:nth-child(%num%) > div > a"
cards = "#shared-content-view > section > div > div > div.document-list > div > div:nth-child(%num%) > span.new-study-item__title.js-title-text > a"
counter = "#course-list-items > div:nth-child(%num%) > span.list-item-option.study-item-metric.span2.offset4"
if (pwb.document.querySelector(%counter%).innerText > 0) {
;do stuff
}
num := num + 1
pwb.navigate(navigate)
}