xdp22 Posted October 23, 2010 Share Posted October 23, 2010 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> _FFStart("http://tyrania.net") If _FFIsConnected() Then $sStringToSearch = "Please" If _FFSearch($sStringToSearch) Then MsgBox(0,"Found:", $sStringToSearch) Else MsgBox(0,"Can't find:", $sStringToSearch) EndIf Else MsgBox(0,"Error:", "Can't connect to FireFox!") EndIf 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? Link to comment Share on other sites More sharing options...
xdp22 Posted October 23, 2010 Author Share Posted October 23, 2010 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 : expandcollapse popup>>>> 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 Name: Advanced (Class): [CLASS:MozillaWindowClass; INSTANCE:2] ID: Text: 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 <<<< Link to comment Share on other sites More sharing options...
xdp22 Posted October 23, 2010 Author Share Posted October 23, 2010 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 thanks Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now