DaleHohm Posted February 20, 2010 Share Posted February 20, 2010 I use Facebook, I just will not touch farmville. Sorry. Your symptoms lead me to believe you are not attached the correct frame. Use _IEDocReadHTML until what you see there matches what you see in DebugBar. 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 More sharing options...
hot202 Posted February 22, 2010 Author Share Posted February 22, 2010 i tryed that but i dont know how to make it go any other places like igot it to go to the iframe i just dont under stand how i can make it show _IEDocReadHTML show the same as debugbar. I really am stuck where i am now. Would u try a diff game on facebook Like Yoville? because im sure that any of the games made by Zynga are the same on how the iframe works. You can always delete the games after. Link to comment Share on other sites More sharing options...
JohnOne Posted February 22, 2010 Share Posted February 22, 2010 Have you tried on the zynga forums mate ? perhaps someone there knows the answer. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
hot202 Posted February 22, 2010 Author Share Posted February 22, 2010 nah i havnt mate. But im sure that the people on that forum wouldnt know autoit or even ie.au3. Link to comment Share on other sites More sharing options...
hot202 Posted March 14, 2010 Author Share Posted March 14, 2010 Hey guys its me again its been awhile but i am still unable to get this working. Just wanted to know can it be done? Am i on the right track? Can any one push me the right way? Thanks guys. Link to comment Share on other sites More sharing options...
JohnOne Posted March 14, 2010 Share Posted March 14, 2010 Deleting your post and then posting it again, is a snidey underhanded way of bumping, and is frowned upon here. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
hot202 Posted March 14, 2010 Author Share Posted March 14, 2010 i didnt just delete and post it again i deleted what i said and said it in a diff way and i still need help im still trying to get this working but i have got no where then what i was at before so i was asking if any one could help me out if they knew how to get this working. So yes it was kind of a bump. Link to comment Share on other sites More sharing options...
JohnOne Posted March 14, 2010 Share Posted March 14, 2010 Same horse, different jockey. There is an edit button to change your post, you deleted it, and re-posted. Just giving you the heads up on forum etiquette. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
hot202 Posted September 17, 2010 Author Share Posted September 17, 2010 big bump but i cant work this out. i havnt got any closer. the reason i want to do this is cos i like playing the facebook games. but without all the other stuff. just want to be able to see the games. even if anyone could work it out with a diff game that has the frames. #include <IE.au3> #AutoIt3Wrapper_run_debug_mode=Y $oIE = _IECreate ("http://apps.facebook.com/onthefarm/index.php") _IEErrorHandlerRegister() _IELoadWait($oIE) $oFrame = _IEFrameGetCollection($oIE, 1) ;$oFrame = _IEFrameGetObjByName ($oIE, "fb_iframe_4b753bf2612fa167ad569") $oIE2 = _IECreate ("http://fb-2.farmville.com/flash.php?") _IELoadWait($oIE) $oInput = _IEGetObjByName($oIE2, "flashapp") $oInput.scrollIntoView() Link to comment Share on other sites More sharing options...
seandisanti Posted September 17, 2010 Share Posted September 17, 2010 just find the url of the .swf file, and navigate directly to it... Link to comment Share on other sites More sharing options...
hot202 Posted September 17, 2010 Author Share Posted September 17, 2010 i dont think i can do that cos it needs to login to facebook to save the data Link to comment Share on other sites More sharing options...
seandisanti Posted September 17, 2010 Share Posted September 17, 2010 i dont think i can do that cos it needs to login to facebook to save the data i did a little automation last night for zynga poker, to accept all of my challenges. the way that i did it just for knocking it out quick, was i had a few message boxes pop up telling me to position my screen the way that i want it, then move the mouse to a couple of points on the screen to calibrate... basically something like... Hotkeyset("{ESC}","MakeItStop") Msgbox(0,"Challenge","Move mouse over challenge button and press enter") $Challenge = MouseGetPos() MouseClick("LEFT",$Challenge[0],$Challenge[1]) Msgbox(0,"Help","Move the mouse over the help buddy button and press enter") $HelpBuddy = MouseGetPos() MsgBox(0,"To Quit","just press escape when all challenges are accepted") While 1 MouseClick("LEFT",$Challenge[0],$Challenge[1]) sleep(1000) MouseClick("LEFT",$HelpBuddy[0],$HelpBuddy[1]) sleep(1000) Wend Func MakeItStop() Exit EndFunc Link to comment Share on other sites More sharing options...
hot202 Posted September 17, 2010 Author Share Posted September 17, 2010 Hey man thanks for the help. But I don't really want to automate the gameplay in anyway I just want it so I can play the game without all the other facebook stuff. I know I could set it up to crop the game with mouse but that's the part I would want it to do it auto. Link to comment Share on other sites More sharing options...
seandisanti Posted September 17, 2010 Share Posted September 17, 2010 Hey man thanks for the help. But I don't really want to automate the gameplay in anyway I just want it so I can play the game without all the other facebook stuff. I know I could set it up to crop the game with mouse but that's the part I would want it to do it auto.have you checked zynga.com to see if they have a downloadable version? and for the record, i'm not automating gameplay, just mundane stuff i do at startup. Link to comment Share on other sites More sharing options...
hot202 Posted September 18, 2010 Author Share Posted September 18, 2010 (edited) Nah dude I can't find anything to download. Edited September 18, 2010 by hot202 Link to comment Share on other sites More sharing options...
JohnOne Posted September 18, 2010 Share Posted September 18, 2010 Your question was answered on the first page, "scrollintoview". Its not working for you because you are probably doing it wrong, and need to ask the right questions. But if you havent been able to overcome this simple problem in 8 months, then maybe you ought to just leave it alone. Perhps you just dont have the capacity. Good luck whatever you do. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
seandisanti Posted September 18, 2010 Share Posted September 18, 2010 Its not working for you because you are probably doing it wrong, and need to ask the right questions.lol, i may steal that to add to my signature. Like i tell people at work, "Try it again, but correctly this time" Link to comment Share on other sites More sharing options...
hot202 Posted September 19, 2010 Author Share Posted September 19, 2010 Yeah I know how to get it to scroll. But the problem is with the iframes. It dosnt detect the flash game. If it was that simple don't you think I would of done it by now. An if it was that simple don't you think out of the 1800 views some one would know what to do. 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