zemkor Posted May 14, 2015 Posted May 14, 2015 Hello, i have problem. My script working only windows 8 and windows 7/64 not working. Is any problem in scipt ? Error Variable must be of type "Object"Thanks for answer$oIEzmaz = _IECreate("http://www.bazos.sk/moje-inzeraty.php/") $cozmazat = GUICtrlRead($TB_Nadpis) $hesloinz = GUICtrlRead($TB_Heslo) _IELoadWait($oIEzmaz) Local $formular = _IEFormGetObjByName($oIEzmaz, "formedit") Local $vybrat = _IEFormElementGetObjByName($formular, "administrace") $oButtons = _IEGetObjByName($formular,"administrace",-1) For $oBtn In $oButtons If _IEFormElementGetValue($oBtn) = "Zmazať" Then _IEAction($oBtn, "focus") _IEAction($oBtn, "click") ExitLoop EndIf Next
MilesAhead Posted May 14, 2015 Posted May 14, 2015 On 5/14/2015 at 10:36 AM, zemkor said: Hello, i have problem. My script working only windows 8 and windows 7/64 not working. Is any problem in scipt ? Error Variable must be of type "Object"Thanks for answer$oIEzmaz = _IECreate("http://www.bazos.sk/moje-inzeraty.php/") ; ^^^^^^^^^ check @error here. If the function failed no object was created $cozmazat = GUICtrlRead($TB_Nadpis) $hesloinz = GUICtrlRead($TB_Heslo) _IELoadWait($oIEzmaz) Local $formular = _IEFormGetObjByName($oIEzmaz, "formedit") Local $vybrat = _IEFormElementGetObjByName($formular, "administrace") $oButtons = _IEGetObjByName($formular,"administrace",-1) For $oBtn In $oButtons If _IEFormElementGetValue($oBtn) = "Zmazať" Then _IEAction($oBtn, "focus") _IEAction($oBtn, "click") ExitLoop EndIf Next My Freeware Page
zemkor Posted May 14, 2015 Author Posted May 14, 2015 Sorry but i don't see a problem. Why this working on windows 8 and on Windows 7 not ?
Danp2 Posted May 14, 2015 Posted May 14, 2015 Adding error checking as suggested by MilesAhead will help you avoid these types of issues in the future. Currently, you haven't provided enough information to even know where the error is occurring in your script. When I look at the website, I don't even see a form with the name "formedit". Perhaps that's where the problem lies. <shrug>If not, then you will need to provide more information in order for us to further assist you. Latest Webdriver UDF Release Webdriver Wiki FAQs
zemkor Posted May 14, 2015 Author Posted May 14, 2015 I have new information. Problem is internet explorer 11. On windows 7 is 11 and on windows 8 is explorer 10. After downgrade explorer 11 to 10 script working. Do you have anyone similar problem ?
MikahS Posted May 14, 2015 Posted May 14, 2015 Here is Smoke_n's description of the problem: Snips & Scripts Reveal hidden contents My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now