Jump to content

help finding buttons on an IE web page


Recommended Posts

first off, find the name or the id of button, then use _IEGetObjById or _IEGetObjByName

with links, you can search inner html for text between the <a> and </a>

[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Link to comment
Share on other sites

ok tried them still didn't get me what i wanted

CODE
Func login()

sleep(500)

$oFrame = _IEFrameGetObjByName($oIE, "chat")

$oForm = _IEFormGetObjByName($oFrame, "Enter")

$oLogin = _IEFormElementGetObjByName($oForm, "l")

$oPass = _IEFormElementGetObjByName($oForm, "p")

$oEnter = _IEFormElementGetObjByName($oForm, "btn_Enter") ;;;;;;;;;;;;;;;;;;;;problem here;;;;;;;;;;

_IEFormElementSetValue($oLogin, $username)

_IEFormElementSetValue($oPass, $password)

$oEnter.click

_IELoadWait($oIE)

sleep(5000)

$oClan = _IEGetObjByName($oFrame, "joku1", 3)

$oClan.click

_IELoadWait($oIE)

sleep(1000)

_IELinkClickByText($oFrame, "Fast chat")

_IELoadWait($oIE)

sleep(2000)

$oFrame2 = _IEFrameGetObjByName($oIE, "chat")

$oForm2 = _IEFormGetObjByName($oFrame2, "msg")

$oTarget = _IEFormElementGetObjByName($oForm2, "target")

$oSend = _IEFormElementGetObjByName($oForm2, "btn_chat")

_IEFormElementSetValue($oTarget, "/norace")

$oSend.click

_IELoadWait($oIE)

sleep(1000)

i am tryin to get it to click the Enter button on the page and it will do everything i want it to except click the enter button =(

Link to comment
Share on other sites

ok tried them still didn't get me what i wanted

CODE
Func login()

sleep(500)

$oFrame = _IEFrameGetObjByName($oIE, "chat")

$oForm = _IEFormGetObjByName($oFrame, "Enter")

$oLogin = _IEFormElementGetObjByName($oForm, "l")

$oPass = _IEFormElementGetObjByName($oForm, "p")

$oEnter = _IEFormElementGetObjByName($oForm, "btn_Enter") ;;;;;;;;;;;;;;;;;;;;problem here;;;;;;;;;;

_IEFormElementSetValue($oLogin, $username)

_IEFormElementSetValue($oPass, $password)

$oEnter.click

_IELoadWait($oIE)

sleep(5000)

$oClan = _IEGetObjByName($oFrame, "joku1", 3)

$oClan.click

_IELoadWait($oIE)

sleep(1000)

_IELinkClickByText($oFrame, "Fast chat")

_IELoadWait($oIE)

sleep(2000)

$oFrame2 = _IEFrameGetObjByName($oIE, "chat")

$oForm2 = _IEFormGetObjByName($oFrame2, "msg")

$oTarget = _IEFormElementGetObjByName($oForm2, "target")

$oSend = _IEFormElementGetObjByName($oForm2, "btn_chat")

_IEFormElementSetValue($oTarget, "/norace")

$oSend.click

_IELoadWait($oIE)

sleep(1000)

i am tryin to get it to click the Enter button on the page and it will do everything i want it to except click the enter button =(

You catch the probem from the 3rd line, where is the $oIE value ? if you already have it, please post your full code here so we can find what mess up this

[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Link to comment
Share on other sites

why don't you post it here ? in case when i can't , somebody better will help you, i've seen many many great code was posted on this forum :)

[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Link to comment
Share on other sites

You should be getting messages written to the SciTe console. Please examine them and share them here to get more help. You can also turn on SciTe DebugMode to get more help understanding the exact statement flow.

I also highly recommend DebugBar (see my sig). The firefox tools are great, but DebugBar allows you to do everything in IE.

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

ok have debug bar found the button that i want......but with the script i have it is an old one back from 05-06 i made it and forgot where i have everything at and it needs a Major overhaul so i may restart it over or i may post the whole thing in hopes of someone helping me =/

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...