Jump to content
Sign in to follow this  
Cameltoe

Link Ie.au3

Recommended Posts

Cameltoe

is there any command for:

if _ielink = "google.no" then

sleep(5000)

endif

Really need something that do this .. would be really helpful for meg :D

Share this post


Link to post
Share on other sites
Cameltoe

So many views and no reply.. most be somebody that know of a link check function?

Share this post


Link to post
Share on other sites
Melba23

Cameltoe,

Please do not bump your own thread within 24 hours - it is considered rude here. :D

Remember this is not a 24/7 support forum - those who answer are only here because they like helping others and have some time to spare. You just have to wait until someone who knows something about your particular problem, and is willing to help, comes online. Be patient and someone will answer eventually. Or if not - tough! :huggles:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Cameltoe

K, thx :D will have that mind.

Share this post


Link to post
Share on other sites
GodlessSinner

Your question is unclear. If you know link, so what's a problem to compare it with another?


_____________________________________________________________________________

Share this post


Link to post
Share on other sites
Cameltoe

i want to check if the link matches, like this :

if not link = "google.com" then

keep doing the script

but:

if link = "google.no" then

sleep(5000)

i want a function that know what url im on and sleep at one specific url.

Edited by Cameltoe

Share this post


Link to post
Share on other sites
Cameltoe

Like i want the script to sleep at a spesific link .. i am wery bad to explain things.. hope someone get what i mean and help me out :D

Share this post


Link to post
Share on other sites
GodlessSinner

AutoItSetOption("WinTitleMatchMode", 2)

AdlibEnable("_gettitle", 250)

While 1
    Sleep(100)
WEnd

Func _gettitle()
    AdlibDisable()
    Switch WinGetTitle("","")
        Case "Google - Opera"
            MsgBox(0, "", "google!")
            Sleep(5000)
    EndSwitch
    AdlibEnable("_gettitle", 250)
EndFunc

I don't know how to get a browsing link, but different sites has a different titles..


_____________________________________________________________________________

Share this post


Link to post
Share on other sites
DaleHohm

If you are talking about <A href=xxx> links on a page, see _IELinkGetCollection and the associated example

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
Cameltoe

Nice Ty! i used the link get collection function and got out with this code:

$link = _IEPropertyGet($IE, "locationurl")

if $link = "google.no" Then
    MsgBox(0,"google","google is on")
EndIf

if not $link = "google.no" Then
    MsgBox(0,"google","google is dead!")
EndIf

Thx for all help :mellow:)

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  

×