Stilgar Posted July 18, 2009 Share Posted July 18, 2009 m=100-n While 1=1 If n>35 Then WinWait("*** - Mozilla Firefox") Sleep(500) MouseClick( "left", 200, 400, 1, 5) sleep(1000) MouseClick( "left", 380, 590, 1, 5) sleep(500) MouseClick( "left", 380, 775, 1, 5) sleep(500) MouseClick( "left", 380, 620, 1, 5) Else MouseClick( "left", 200, 660, 1, 5) Sleep(500) MouseClick( "left", 760, 650, 1, 5) Sleep(1000) MouseClick( "left", 710, 625, 1, 5) Send(m) MouseClick( "left", 760, 625, 1, 5) but i dont know how to write in script.. to know what is "n" What you wanna do whith this? Anyway, that's the number of your posts: #include <FF.au3> _FFConnect() $sUser = 'toader' $sPosts = _FFXpath("//div[contains(*/span[@class='author vcard'],'" & $sUser & "')]//ul[@class='user_fields']/li[2]/span[@class='fc']") MsgBox(64,"",$sPosts) jEdit4AutoIt PlanMaker_UDF Link to comment Share on other sites More sharing options...
6105 Posted July 18, 2009 Author Share Posted July 18, 2009 What you wanna do whith this? Anyway, that's the number of your posts: #include <FF.au3> _FFConnect() $sUser = 'toader' $sPosts = _FFXpath("//div[contains(*/span[@class='author vcard'],'" & $sUser & "')]//ul[@class='user_fields']/li[2]/span[@class='fc']") MsgBox(64,"",$sPosts) don't work.. and cant understand(( i need only it.. if needed numbers ur post numbers is in "y=52,x=536,y2=73,x2=536" how to read only this? [center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Don't utter a single word[/font][/center][center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Just shut your pretty mouth[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you again[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you[/font][/center][center][font=courier new,courier,monospace]In hell[/font][/center] Link to comment Share on other sites More sharing options...
Stilgar Posted July 18, 2009 Share Posted July 18, 2009 don't work.. and cant understand(( i need only it.. if needed numbers ur post numbers is in "y=52,x=536,y2=73,x2=536" how to read only this?What doesn't work (here it works)?What don't you understand? (if you wanna automat webpages you should a little but understand from DOM, HTML, CSS, Javascript and in this case Xpath, too)Coordintes on webpages are not very helpfull, they are depending on:- your screen resultion- if you are using the font-size given from the webpage- if you are using the css give from the webpage- if your pages are changed from AddOns like AddBlock ...- ...and if you scroll the page, all your coordinates are useless. jEdit4AutoIt PlanMaker_UDF Link to comment Share on other sites More sharing options...
6105 Posted July 18, 2009 Author Share Posted July 18, 2009 What doesn't work (here it works)?What don't you understand? (if you wanna automat webpages you should a little but understand from DOM, HTML, CSS, Javascript and in this case Xpath, too)Coordintes on webpages are not very helpfull, they are depending on:- your screen resultion- if you are using the font-size given from the webpage- if you are using the css give from the webpage- if your pages are changed from AddOns like AddBlock ...- ...and if you scroll the page, all your coordinates are useless.dont work.. i will start ur script.. and thats do not do nothing.. and after 2-3 minutes shows empty msgbox.and script for start i will do only for me.. to test it.. where numbers is allways in 1 places.. [center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Don't utter a single word[/font][/center][center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Just shut your pretty mouth[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you again[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you[/font][/center][center][font=courier new,courier,monospace]In hell[/font][/center] Link to comment Share on other sites More sharing options...
Stilgar Posted July 18, 2009 Share Posted July 18, 2009 dont work.. i will start ur script.. and thats do not do nothing.. and after 2-3 minutes shows empty msgbox.and script for start i will do only for me.. to test it.. where numbers is allways in 1 places..Have you MozRepl installed? Have you started it? What is the output in the console from your editor? jEdit4AutoIt PlanMaker_UDF Link to comment Share on other sites More sharing options...
6105 Posted July 18, 2009 Author Share Posted July 18, 2009 Have you MozRepl installed? Have you started it? What is the output in the console from your editor?MozRepl??? what is it??? [center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Don't utter a single word[/font][/center][center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Just shut your pretty mouth[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you again[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you[/font][/center][center][font=courier new,courier,monospace]In hell[/font][/center] Link to comment Share on other sites More sharing options...
Stilgar Posted July 18, 2009 Share Posted July 18, 2009 If you read the answers from Authenticity on the first page in this topic then you would know it (it's an AddOn for FireFox, without it the FF.au3 doesn't work) Look at the first lines from the documentation: http://english.documentation.ff-au3.thorsten-willert.de/ or this thread: http://www.autoitscript.com/forum/index.php?showtopic=95595 jEdit4AutoIt PlanMaker_UDF 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