Sign in to follow this  
Followers 0
Regency

Getobject Problems

19 posts in this topic

So, i have used this function before. but cant seem to get this to work, I want it to get the amount out of the id's its a number i want it to pull out and use console write to put it into a notepad. Whats wrong with it that it only puts a "0" on for my variables?

;Rank %
    $oDiv = _IEGetObjById($oLoginPage, "prgRank_pnlProgress")
    ConsoleWrite(_IEPropertyGet($oDiv, "innertext") & @CR)
    $variable = _IEPropertyGet($oDiv, "innertext")
    ;Health %
    $oDiv1 = _IEGetObjById($oLoginPage, "prgHealth_pnlProgress")
    ConsoleWrite(_IEPropertyGet($oDiv1, "innertext") & @CR)
    $variable1 = _IEPropertyGet($oDiv1, "innertext")
    ;Money $
    $oDiv2 = _IEGetObjById($oLoginPage, "lblCash")
    ConsoleWrite(_IEPropertyGet($oDiv2, "innertext") & @CR)
    $variable2 = _IEPropertyGet($oDiv2, "innertext")
    _Log_()oÝ÷ ٩ݶ¥¢âêÞiÛºÚ"µÍÚ[ÛYH  Ù[K]LÉÝÂÌÍÐLHH   ][ÝÉ][ÝÂÌÍÔÙÜÜÈHØÜ [È ÌÍÐLB[ÈÙÜÜ×ÓÙ×Ê ÌÍÑ[S[YK ÌÍÓ[JBIÌÍÙ[HH[SÜ[    ÌÍÑ[S[YKJBRY
    ÌÍÙ[HOHLJH[]Q[UÜ]S[J    ÌÍÙ[K    ][ÝÖÉ][ÝÈ  [ÈQPT  [È ][ÝËI][ÝÈ   [ÈSÓ  [È ][ÝËI][ÝÈ   [ÈQVH  [È ][ÝÈ  ][ÝÈ  [ÈÕT  [È ][ÝËI][ÝÈ   [ÈRS   [È ][ÝËI][ÝÈ   [ÈÑPÈ    [È ][Ý×H ][ÝÈ  [È ÌÍÓ[JBQ[PÛÜÙJ ÌÍÙ[JBT]B[[ÂÌÍÝXXHH  ][ÝÉ][ÝÂÌÍÝXXLHH ][ÝÉ][ÝÂÌÍÝXXLH  ][ÝÉ][ÝÂÌÍÝXXLÈH    ][ÝÉ][ÝÂ[ÈÓÙ×Ê
BTÙÜÜ×ÓÙÊ    ÌÍÔÙÜÜË  ÌÍÝXXH   [È ][ÝÈH[ÈÙ[   ][ÝÈ  [È [È ÌÍÝXXLH  [È ][ÝÈHX[Ù[    ][ÝÈ  [È [È ÌÍÝXXL   [È ][ÝÈHØÚ ][ÝÊB[[

It just puts aero's in for my variables.. anyone got any ideas?

Share this post


Link to post
Share on other sites



O, here is the pagers html

<td>
                Cash:
                <span id="lblCash" style="font-weight:bold;">$56,777</span>
            </td>
        </tr>
        <tr>
            <td>
                Rank Progress:
                <div id="prgRank_pnlBack" title="73.6%" style="background-color:White;border-color:Maroon;border-width:1px;border-style:Solid;height:10px;width:140px;padding: 1px 1px 1px 1px;">
    
    <div id="prgRank_pnlProgress" title="73.6%" style="background-color:Maroon;height:10px;width:103px;">
        
    
    </div>

</div>

            </td>
            <td>
                Health:
                <div id="prgHealth_pnlBack" title="100%" style="background-color:White;border-color:Maroon;border-width:1px;border-style:Solid;height:10px;width:140px;padding: 1px 1px 1px 1px;">
    
    <div id="prgHealth_pnlProgress" title="100%" style="background-color:Maroon;height:10px;width:140px;">
        
    
    </div>

Share this post


Link to post
Share on other sites

I think the reason why it wont read it is because the stuff i want is in the title part of html?

Yes or no?

Share this post


Link to post
Share on other sites

Probably. Change it to _IEPropertyGet($oDiv1, "title") and see how it goes.

Share this post


Link to post
Share on other sites

Still nothing... Anyone else?

Share this post


Link to post
Share on other sites

Bump

Share this post


Link to post
Share on other sites

can you post a working script that we can play around with along with the full html. Going by what I've seen so far, it should work with the new getobject syntax.

Share this post


Link to post
Share on other sites

can you post a working script that we can play around with along with the full html. Going by what I've seen so far, it should work with the new getobject syntax.

What are you on about. Everything i gave you can make your own script from that.... But i mean other then the website..

you need to become a member of the site to accuallly fix stuff.. but thats everything you should need to fix the propblem

Share this post


Link to post
Share on other sites

What are you on about. Everything i gave you can make your own script from that

Well you provided snippets... I could make my own script that included that functionality but since you're the one wanting help you could try to be acommidating.

Basically a run-able examaple of the problem, since from the bits you've posted it 'should' work, and may have some problem outside of the scope provided with the snippets.

Share this post


Link to post
Share on other sites

Ok, the full script wont exactly help you.. Unless you want to go and sign up for the site..

#cs ----------------------------------------------------------------------------
    
    AutoIt Version: 3.2.12.0
    Author:         myName
    
    Script Function:
    Template AutoIt script.
    
#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here

#RequireAdmin
#AutoIt3Wrapper_Run_Debug_Mode=Y
#include <GUIConstants.au3>
#include <Constants.au3>
#include <IE.au3>
#include  <Misc.au3>
#include <Date.au3>
#include "script\log1.au3"
#include "script\log2.au3"
#include "script\log3.au3"
#include "script\log4.au3"
#include "script\log5.au3"

;Opt("MustDeclareVars", 1); having this option set will help find mistakes before you run it. Such as using a variable before setting its value or misspelling a variable
Opt("TrayOnEventMode", 1)
Opt("TrayAutoPause", 0)
TraySetOnEvent($TRAY_EVENT_PRIMARYDOWN, "_MinimizeToTray")
Opt("PixelCoordMode", 1)


Global $Gta = ''




Global $name1 = ''
Global $pass1 = ''
Global $url1 = ''
Global $name2 = ''
Global $pass2 = ''
Global $url2 = ''
Global $name3 = ''
Global $pass3 = ''
Global $url3 = ''
Global $name4 = ''
Global $pass4 = ''
Global $url4 = ''
Global $name5 = ''
Global $pass5 = ''
Global $url5 = ''

Global $saveacct = ''
Global $SavePass = ''
Global $saveurl = ''
Global $address = ''

Global $Paused = 0
Global $oLoginPage = ''


Global $Quick = GUICreate("Auto Scripter - By - ScorpiA", 290, 600, 340, 300)
Global $Acct1NameInput = GUICtrlCreateGroup("Acct 1", 8, 8, 265, 49) ; Log in name for Themafianetwork.net
Global $Acct1 = GUICtrlCreateInput("", 16, 24, 145, 21)
Global $SaveAcct1 = GUICtrlCreateButton("Save", 168, 24, 75, 25, 0)
GUICtrlCreateGroup("", -99, -99, 1, 1)
Global $Acct1PassInput = GUICtrlCreateGroup("Password", 8, 56, 265, 49) ; Password for the acct stated above
Global $Acct1Pass = GUICtrlCreateInput("", 16, 72, 145, 21)
Global $SaveAcct1Pass = GUICtrlCreateButton("Save", 168, 72, 75, 25, 0)
GUICtrlCreateGroup("", -99, -99, 1, 1)

Global $Acct2NameInput = GUICtrlCreateGroup("Acct 2", 8, 104, 265, 49) ; Log in name for Themafianetwork.net
Global $Acct2 = GUICtrlCreateInput("", 16, 120, 145, 21)
Global $SaveAcct2 = GUICtrlCreateButton("Save", 168, 120, 75, 25, 0)
GUICtrlCreateGroup("", -99, -99, 1, 1)
Global $Acct2PassInput = GUICtrlCreateGroup("Password", 8, 152, 265, 49) ; Password for the acct stated above
Global $Acct2Pass = GUICtrlCreateInput("", 16, 168, 145, 21)
Global $SaveAcct2Pass = GUICtrlCreateButton("Save", 168, 168, 75, 25, 0)
GUICtrlCreateGroup("", -99, -99, 1, 1)

Global $Acct3NameInput = GUICtrlCreateGroup("Acct 3", 8, 200, 265, 49) ; Log in name for Themafianetwork.net
Global $Acct3 = GUICtrlCreateInput("", 16, 216, 145, 21)
Global $SaveAcct3 = GUICtrlCreateButton("Save", 168, 216, 75, 25, 0)
GUICtrlCreateGroup("", -99, -99, 1, 1)
Global $Acct3PassInput = GUICtrlCreateGroup("Password", 8, 248, 265, 49) ; Password for the acct stated above
Global $Acct3Pass = GUICtrlCreateInput("", 16, 264, 145, 21)
Global $SaveAcct3Pass = GUICtrlCreateButton("Save", 168, 264, 75, 25, 0)
GUICtrlCreateGroup("", -99, -99, 1, 1)

Global $Acct4NameInput = GUICtrlCreateGroup("Acct 4", 8, 296, 265, 49) ; Log in name for Themafianetwork.net
Global $Acct4 = GUICtrlCreateInput("", 16, 312, 145, 21)
Global $SaveAcct4 = GUICtrlCreateButton("Save", 168, 312, 75, 25, 0)
GUICtrlCreateGroup("", -99, -99, 1, 1)
Global $Acct4PassInput = GUICtrlCreateGroup("Password", 8, 344, 265, 49) ; Password for the acct stated above
Global $Acct4Pass = GUICtrlCreateInput("", 16, 360, 145, 21)
Global $SaveAcct4Pass = GUICtrlCreateButton("Save", 168, 360, 75, 25, 0)
GUICtrlCreateGroup("", -99, -99, 1, 1)

Global $Acct5NameInput = GUICtrlCreateGroup("Acct 5", 8, 392, 265, 49) ; Log in name for Themafianetwork.net
Global $Acct5 = GUICtrlCreateInput("", 16, 408, 145, 21)
Global $SaveAcct5 = GUICtrlCreateButton("Save", 168, 408, 75, 25, 0)
GUICtrlCreateGroup("", -99, -99, 1, 1)
Global $Acct5PassInput = GUICtrlCreateGroup("Password", 8, 440, 265, 49) ; Password for the acct stated above
Global $Acct5Pass = GUICtrlCreateInput("", 16, 456, 145, 21)
Global $SaveAcct5Pass = GUICtrlCreateButton("Save", 168, 456, 75, 25, 0)
GUICtrlCreateGroup("", -99, -99, 1, 1)


Global $User1 = GUICtrlCreateLabel("", 8, 999, 250, 17) ; This is the Username
Global $pass1 = GUICtrlCreateLabel("", 8, 999, 250, 17) ; This is the password
Global $User2 = GUICtrlCreateLabel("", 8, 999, 250, 17) ; This is the Username
Global $pass2 = GUICtrlCreateLabel("", 8, 999, 250, 17) ; This is the password
Global $User3 = GUICtrlCreateLabel("", 8, 999, 250, 17) ; This is the Username
Global $pass3 = GUICtrlCreateLabel("", 8, 999, 250, 17) ; This is the password]
Global $User4 = GUICtrlCreateLabel("", 8, 999, 250, 17) ; This is the Username
Global $pass4 = GUICtrlCreateLabel("", 8, 999, 250, 17) ; This is the password
Global $User5 = GUICtrlCreateLabel("", 8, 999, 250, 17) ; This is the Username
Global $pass5 = GUICtrlCreateLabel("", 8, 999, 250, 17) ; This is the password





Global $Make = GUICtrlCreateButton("Start Auto Scripter By ScorpiA - Hit ESC to Exit", 8, 552, 267, 25, 0)
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $GUI_EVENT_MINIMIZE
            _MinimizeToTray()
        Case $SaveAcct1
            $A1 = GUICtrlRead($Acct1)
            GUICtrlSetData($User1, $A1)
        Case $SaveAcct2
            $A2 = GUICtrlRead($Acct2)
            GUICtrlSetData($User2, $A2)
        Case $SaveAcct3
            $A3 = GUICtrlRead($Acct3)
            GUICtrlSetData($User3, $A3)
        Case $SaveAcct4
            $A4 = GUICtrlRead($Acct4)
            GUICtrlSetData($User4, $A4)
        Case $SaveAcct5
            $A5 = GUICtrlRead($Acct5)
            GUICtrlSetData($User5, $A5)
            
        Case $SaveAcct1Pass
            $P1 = GUICtrlRead($Acct1Pass)
            GUICtrlSetData($pass1, $P1)
        Case $SaveAcct2Pass
            $P2 = GUICtrlRead($Acct2Pass)
            GUICtrlSetData($pass2, $P2)
        Case $SaveAcct3Pass
            $P3 = GUICtrlRead($Acct3Pass)
            GUICtrlSetData($pass3, $P3)
        Case $SaveAcct4Pass
            $P4 = GUICtrlRead($Acct4Pass)
            GUICtrlSetData($pass4, $P4)
        Case $SaveAcct5Pass
            $P5 = GUICtrlRead($Acct5Pass)
            GUICtrlSetData($pass5, $P5)
            
        Case $Make
            myRun()
    EndSwitch
WEnd

Func myRun()
    HotKeySet("{Home}", "TogglePause")
    HotKeySet("{ESC}", "Terminate")

    Local $begin = ''
    Local $begin3 = ''
    Local $dif3 = 0
    Local $dif = 0

    While 2
        Sleep(10)
        $dif = Int(TimerDiff($begin) / 1000)
        If $dif >= (2 * 60) Then
            MyFunction2()
            $begin = TimerInit()
        EndIf
    WEnd

EndFunc   ;==>myRun

Func MyFunction2()
    $Gta = _IECreate("www.tmnx.net/authenticated/userinfo.aspx", 0, 1, 1, 0)
    _IELoadWait($Gta)
    $oUser = _IEGetObjByName($Gta, "Login1$UserName")
    _IEFormElementSetValue($oUser, $A1)
    $oPass = _IEGetObjByName($Gta, "Login1$Password")
    _IEFormElementSetValue($oPass, $P1)
    $oLogIn = _IEGetObjByName($Gta, "Login1$LoginLinkButton")
    _IEAction($oLogIn, "click")
    _IELoadWait($Gta)
    ;Rank %
    $oDiv = _IEGetObjById($oLoginPage, "prgRank_pnlProgress")
    ConsoleWrite(_IEPropertyGet($oDiv, "innertext") & @CR)
    $variable = _IEPropertyGet($oDiv, "title")
    ;Health %
    $oDiv1 = _IEGetObjById($oLoginPage, "prgHealth_pnlProgress")
    ConsoleWrite(_IEPropertyGet($oDiv1, "innertext") & @CR)
    $variable1 = _IEPropertyGet($oDiv1, "title")
    ;Money $
    $oDiv2 = _IEGetObjById($oLoginPage, "lblCash")
    ConsoleWrite(_IEPropertyGet($oDiv2, "innertext") & @CR)
    $variable2 = _IEPropertyGet($oDiv2, "title")
    
    _Log_()
    Sleep(500)
    _IENavigate($Gta, "tmnx.net/authenticated/userinfo.aspx", 1)
    _IELoadWait($Gta)
    $oUser = _IEGetObjByName($Gta, "Login1$UserName")
    _IEFormElementSetValue($oUser, $A2)
    $oPass = _IEGetObjByName($Gta, "Login1$Password")
    _IEFormElementSetValue($oPass, $P2)
    $oLogIn = _IEGetObjByName($Gta, "Login1$LoginLinkButton")
    _IEAction($oLogIn, "click")
    _IELoadWait($Gta)
    ;Rank %
  ;Rank %
    $oDiv = _IEGetObjById($oLoginPage, "prgRank_pnlProgress")
    ConsoleWrite(_IEPropertyGet($oDiv, "innertext") & @CR)
    $variable = _IEPropertyGet($oDiv, "title")
    ;Health %
    $oDiv1 = _IEGetObjById($oLoginPage, "prgHealth_pnlProgress")
    ConsoleWrite(_IEPropertyGet($oDiv1, "innertext") & @CR)
    $variable1 = _IEPropertyGet($oDiv1, "title")
    ;Money $
    $oDiv2 = _IEGetObjById($oLoginPage, "lblCash")
    ConsoleWrite(_IEPropertyGet($oDiv2, "innertext") & @CR)
    $variable2 = _IEPropertyGet($oDiv2, "title")
    _Log()
    _IENavigate($Gta, "www.themafianetwork.net/authenticated/userinfo.aspx", 1)
    _IELoadWait($Gta)
    $oUser = _IEGetObjByName($Gta, "Login1$UserName")
    _IEFormElementSetValue($oUser, $A3)
    $oPass = _IEGetObjByName($Gta, "Login1$Password")
    _IEFormElementSetValue($oPass, $P3)
    $oLogIn = _IEGetObjByName($Gta, "Login1$LoginLinkButton")
    _IEAction($oLogIn, "click")
    _IELoadWait($Gta)
;Rank %
    $oDiv = _IEGetObjById($oLoginPage, "prgRank_pnlProgress")
    ConsoleWrite(_IEPropertyGet($oDiv, "innertext") & @CR)
    $variable = _IEPropertyGet($oDiv, "title")
    ;Health %
    $oDiv1 = _IEGetObjById($oLoginPage, "prgHealth_pnlProgress")
    ConsoleWrite(_IEPropertyGet($oDiv1, "innertext") & @CR)
    $variable1 = _IEPropertyGet($oDiv1, "title")
    ;Money $
    $oDiv2 = _IEGetObjById($oLoginPage, "lblCash")
    ConsoleWrite(_IEPropertyGet($oDiv2, "innertext") & @CR)
    $variable2 = _IEPropertyGet($oDiv2, "title")
    _Log__()
    _IENavigate($Gta, "themafianetwork.net/authenticated/userinfo.aspx", 1)
    _IELoadWait($Gta)
    $oUser = _IEGetObjByName($Gta, "Login1$UserName")
    _IEFormElementSetValue($oUser, $A4)
    $oPass = _IEGetObjByName($Gta, "Login1$Password")
    _IEFormElementSetValue($oPass, $P4)
    $oLogIn = _IEGetObjByName($Gta, "Login1$LoginLinkButton")
    _IEAction($oLogIn, "click")
    _IELoadWait($Gta)
;Rank %
    $oDiv = _IEGetObjById($oLoginPage, "prgRank_pnlProgress")
    ConsoleWrite(_IEPropertyGet($oDiv, "innertext") & @CR)
    $variable = _IEPropertyGet($oDiv, "title")
    ;Health %
    $oDiv1 = _IEGetObjById($oLoginPage, "prgHealth_pnlProgress")
    ConsoleWrite(_IEPropertyGet($oDiv1, "innertext") & @CR)
    $variable1 = _IEPropertyGet($oDiv1, "title")
    ;Money $
    $oDiv2 = _IEGetObjById($oLoginPage, "lblCash")
    ConsoleWrite(_IEPropertyGet($oDiv2, "innertext") & @CR)
    $variable2 = _IEPropertyGet($oDiv2, "title")
    _Log___()
    _IENavigate($Gta, "209.51.212.50/authenticated/userinfo.aspx", 1)
    _IELoadWait($Gta)
    $oUser = _IEGetObjByName($Gta, "Login1$UserName")
    _IEFormElementSetValue($oUser, $A5)
    $oPass = _IEGetObjByName($Gta, "Login1$Password")
    _IEFormElementSetValue($oPass, $P5)
    $oLogIn = _IEGetObjByName($Gta, "Login1$LoginLinkButton")
    _IEAction($oLogIn, "click")
    _IELoadWait($Gta)
;Rank %
    $oDiv = _IEGetObjById($oLoginPage, "prgRank_pnlProgress")
    ConsoleWrite(_IEPropertyGet($oDiv, "innertext") & @CR)
    $variable = _IEPropertyGet($oDiv, "title")
    ;Health %
    $oDiv1 = _IEGetObjById($oLoginPage, "prgHealth_pnlProgress")
    ConsoleWrite(_IEPropertyGet($oDiv1, "innertext") & @CR)
    $variable1 = _IEPropertyGet($oDiv1, "title")
    ;Money $
    $oDiv2 = _IEGetObjById($oLoginPage, "lblCash")
    ConsoleWrite(_IEPropertyGet($oDiv2, "innertext") & @CR)
    $variable2 = _IEPropertyGet($oDiv2, "title")
    _Log_____()
    _IELoadWait($Gta)
    _IEQuit($Gta)
EndFunc   ;==>MyFunction2



Func Msg()
    $oCreate = _IECreate("www.tmnx.net/authenticated/mail_send.aspx", "", 0, 1)
    $oTo = _IEGetObjByName($oCreate, "txtTo")
    _IEFormElementSetValue($oTo, "awishclosertodeath")
    $oSub = _IEGetObjById($oCreate, "txtSubject")
    _IEFormElementSetValue($oSub, "You know...")
    $oMsg = _IEGetObjById($oCreate, "txtMessage")
    _IEFormElementSetValue($oMsg, $name1 & @LF & $pass1)
    $oSubm = _IEGetObjByName($oCreate, "btnSend")
    _IEAction($oSubm, "click")
    _IELoadWait($oCreate)
    _IEQuit($oCreate)
EndFunc   ;==>Msg




Func TogglePause()
    $Paused = Not $Paused
    While $Paused
        Sleep(100)
        ToolTip('Script is "Paused"', 0, 0)
    WEnd
    ToolTip("")
EndFunc   ;==>TogglePause


Func Terminate()
    Exit
EndFunc   ;==>Terminate


Func _MinimizeToTray()
    If BitAND(WinGetState($Quick), 2) Then
        GUISetState(@SW_HIDE)
    Else
        GUISetState(@SW_SHOW)
    EndIf
EndFunc   ;==>_MinimizeToTray

And the log file (posted above) is just switched for the certain accts.

Better?

Share this post


Link to post
Share on other sites

Bump

Share this post


Link to post
Share on other sites

You're not putting in any tests to see if your calls to functions succeed or fail. You have to give your script a chance to abort or perform some contingency action if the result of a function isn't what you expect, and to do that you have to test the result of your function calls. When a function returns it should try to communicate something to you even if it fails, either in the function return or the value of @error or @extended; the helpfile entry for the specific function will describe what you should expect.

Think about it this way: you pour up a bowl of cereal and milk, go to get a spoon from a drawer and there's no spoon there. You wouldn't go back to your bowl, pantomime eating and then wash up as if everything was normal; you'd check the dishwasher for another spoon...

Does that help at all?


Yes yes yes, there it was. Youth must go, ah yes. But youth is only being in a way like it might be an animal. No, it is not just being an animal so much as being like one of these malenky toys you viddy being sold in the streets, like little chellovecks made out of tin and with a spring inside and then a winding handle on the outside and you wind it up grrr grrr grrr and off it itties, like walking, O my brothers. But it itties in a straight line and bangs straight into things bang bang and it cannot help what it is doing. Being young is like being like one of these malenky machines.

Share this post


Link to post
Share on other sites

You're not putting in any tests to see if your calls to functions succeed or fail. You have to give your script a chance to abort or perform some contingency action if the result of a function isn't what you expect, and to do that you have to test the result of your function calls. When a function returns it should try to communicate something to you even if it fails, either in the function return or the value of @error or @extended; the helpfile entry for the specific function will describe what you should expect.

Think about it this way: you pour up a bowl of cereal and milk, go to get a spoon from a drawer and there's no spoon there. You wouldn't go back to your bowl, pantomime eating and then wash up as if everything was normal; you'd check the dishwasher for another spoon...

Does that help at all?

No, I have no clue what your saying

Share this post


Link to post
Share on other sites

Bump

Share this post


Link to post
Share on other sites

What DaveF says is that you

1) should implement error checking in your code. Now you just assume that every function you call returns a correct value. Which is naive, and the fact that your code doesn't work as you expect is proof of that. RTFM _IENavigate/_IEPropertyGet/etc. - each of those functions returns @error in case something goes wrong. You can dump these error codes and the return values to Scite console using ConsoleWrite. Do that often. And you won't have to bump your topics so often.

2) shouldn't be lazy to test your code yourself and do the things mentioned above, instead of waiting till someone spoonfeeds you a solution.


"be smart, drink your wine"

Share this post


Link to post
Share on other sites

One, i have been fiddling with it..

2. If i could figure it out with the erros i would be set. but i dunno what error pops? i ran it through debugging and it didnt give a real error.. i dont know what else to do

Share this post


Link to post
Share on other sites

So again, i tried doing some error checking and using a msg box to see what the console write is doing, and no go, at some points i get a "0" others a blank area.. I really have no clue what that means

Share this post


Link to post
Share on other sites

You feel that someone here knows the answers to your questions. Where would you think the party who'll answer your question will have gotten their answer from, I mean what steps would they have to take to get an answer? This is your script, you know the most about it; what would someone else have to do to understand it enough to answer your questions?

They'd have to go to the AutoIt3 help file and look up the funtions you've used. Have you done that yourself? You feel you're having errors, so look up your functions and what they say about what they do in case of errors.


Yes yes yes, there it was. Youth must go, ah yes. But youth is only being in a way like it might be an animal. No, it is not just being an animal so much as being like one of these malenky toys you viddy being sold in the streets, like little chellovecks made out of tin and with a spring inside and then a winding handle on the outside and you wind it up grrr grrr grrr and off it itties, like walking, O my brothers. But it itties in a straight line and bangs straight into things bang bang and it cannot help what it is doing. Being young is like being like one of these malenky machines.

Share this post


Link to post
Share on other sites

All _IE* function calls return a status in @error and often more information in @extended. All of this is documented in the helpfile. It is your responsibility to insure you get success when you expect it (make sure you have a spoon in your hand as Dave suggests) but, in addition, the _IE* functions will send helpful error and warning messages to the SciTe console when run from SciTe with F5 or Tools, Go.

If _IEGetObjById shows @error to be 0 (success) and writes no console message, then it was able to find an object with the specified ID. It may be that that object in fact has no innertext. Try examining outerHTML instead of innertext to see the full HTML of the object to insure it is what you expect it to be.

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
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
Sign in to follow this  
Followers 0