Jump to content

Help with IE Input and Combo box


Recommended Posts

Hi all!

I need to make a script similar that is able to send a message from a site

here is my code:

sendsms("test","315457455")
Func sendsms($message, $number)
    TrayTip("", "Sending Sms to " & $number, 0)
    ;create Browser in the login page.
    $oIE2 = _IECreate("http://www.najdi.si/", 0, $Is_Visible)
    _IELoadWait($oIE2, 1000, 10000)
    $GetSource = _IEDocReadHTML($oIE2)
    TrayTip("", "Login", 0)
    _IELoadWait($oIE2,0,10000)
        Local $Link, $linkURL, $alllinks[1], $links = $oIE2.document.links, $Counter = 0
    For $Link In $links
        $linkURL = $Link.href
        If $linkURL = "http://www.najdi.si/#" Then
            _IELinkClickByIndex($oIE2,$Counter)
        EndIf
        _ArrayAdd($alllinks, $linkURL)
        $Counter += 1
    Next
endfunc

i'll be very happy if some guru can make an example with this website

Edit: i notice i posted in the wrong seccion. if some moderator see this, please move to the General support pls

Edited by Linux
You can help! Donate to AutoIt! or, visit ClimatePREDICTION.netMy posts:Travian Bot Example (100+ servers) BETAHow to Host you code/app for free! (unlimited team number) (Public or Private)"Sir, we're surrounded!" "Excellent. We can attack in any direction!"
Link to comment
Share on other sites

Took a quick look at the site... there are several iFrames there that you may need to negotiate.

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

Link to comment
Share on other sites

Look at the examples in the helpfile for _IEFrameGetObjByName. You then use the object reuturned by those functions as you do $oIE in all the other examples.

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

Link to comment
Share on other sites

the names allways change.

its like: OBJ_1_2342342342342342

i tried to read the source code to extract the name, but without success

You can help! Donate to AutoIt! or, visit ClimatePREDICTION.netMy posts:Travian Bot Example (100+ servers) BETAHow to Host you code/app for free! (unlimited team number) (Public or Private)"Sir, we're surrounded!" "Excellent. We can attack in any direction!"
Link to comment
Share on other sites

the names allways change.

its like: OBJ_1_2342342342342342

i tried to read the source code to extract the name, but without success

Use DebugBar to chase them down. You can get the collection and walk through it looking for a particular attribute, or just use the index number if it is always the 1st/2nd/etc. frame.

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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...