The error:
---------------------------
test.ahk
---------------------------
Error: 0x800401F3 - Invalid class string
Line#
271: Sleep,100
272: Goto,DownloadImg
273: }
275: SB_SetText("")
278: SB_SetText("login...")
279: url_2 = %site_url%/Default.aspx
280: referer_2 = %site_url%/Default.aspx
---> 284: oSC := ComObjCreate("ScriptControl")
285: oSC.Language := "JScript"
This error appeared in my computer many days ago. I searched in Google and Autohotkey Forum time to time, and didn't find a solution, until today I finally found the answer in Google. The solution is:
Run this command:
regsvr32 C:\WINDOWS\system32\msscript.ocxIf above command can't fix, try below commands:
regsvr32.exe jscript.dll regsvr32.exe vbscript.dll regsvr32.exe wshom.ocx regsvr32.exe msxml3.dll regsvr32.exe -i shell32.dll regsvr32.exe OLEAUT32.DLL
Hope this infomation could help someone. Good luck