Jump to content

Script not working on Windows 7


Recommended Posts

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

 

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

Here is Smoke_n's description of the problem:

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My 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

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...