Jump to content
Sign in to follow this  

Search string at website and action

Recommended Posts


Hello, i need to do script what will search string in website, if string finded they will make an action, else they will make another action, i was used _FFSearch($sStringToSearch) from AutoIt site, but doesn't work for me, here is my code :

#Include <FF.au3>


If _FFIsConnected() Then
    $sStringToSearch = "Please"

    If _FFSearch($sStringToSearch) Then
        MsgBox(0,"Found:", $sStringToSearch)
        MsgBox(0,"Can't find:", $sStringToSearch)
    MsgBox(0,"Error:", "Can't connect to FireFox!")

And that doesn't work for me, always telling me Can't find string ;/ this string is on site..

Are there any other solutions to search string on website?

Share this post

Link to post
Share on other sites

I can't edit this topic :/

But i was find alternative, and working :

$site1 = _INetGetSource("http://asdsadadsa.com")
$findit = "account"
If StringInStr($site, $findit) Then

So don't need help with this, but i had one problem, i need to make ControlClick at http://tyrania.net in this input to account login, i was trying, and i have that code, but don't working ;)

ControlClick("tyrania.net The best RPG SERVER - Mozilla Firefox", "", "[CLASS:MozillaWindowClass; INSTANCE:2]", "left", "1", 539, 517)

What is wrong? In AutoIt Window Info i have :

>>>> Window <<<<
Title:  tyrania.net The best RPG SERVER - Mozilla Firefox
Class:  MozillaUIWindowClass
Position:   -4, -4
Size:   1288, 1002
Style:  0x15CF0000
ExStyle:    0x00000100
Handle: 0x00080078

>>>> Control <<<<
Class:  MozillaWindowClass
Instance:   2
ClassnameNN:    MozillaWindowClass2
Advanced (Class):   [CLASS:MozillaWindowClass; INSTANCE:2]
Position:   0, 285
Size:   1280, 661
ControlClick Coords:    539, 517
Style:  0x56000000
ExStyle:    0x00000000
Handle: 0x002C0282

>>>> Mouse <<<<
Position:   539, 828
Cursor ID:  0
Color:  0xFFFFFF

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<

>>>> Hidden Text <<<<

Share this post

Link to post
Share on other sites

Help please :)

I example what i need.

If autoit find string "Welcome to your account!" in site, it's mean im Logged in, if don't find "Welcome to your account!" it's mean i don't logged in, please help me to do that ;)


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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.