bling8d Posted July 31, 2012 Posted July 31, 2012 Hey guys, I'm a beginner and I try to do this: except that the counter from the website isn't images.So I used _IEGetObjById with the counter id and it returns --:--:-- which is the format of the counter whitout the values. So how could I get the value?Thank you
bogQ Posted July 31, 2012 Posted July 31, 2012 just a thought maybe you should post script that can replicate problem with link to the page so that everyone can try it? TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.
bling8d Posted July 31, 2012 Author Posted July 31, 2012 You can take this webite http://www.zeekler.com/index_penny.aspAnd my little code: #include <IE.au3> $oIE = _IECreate ("http://www.zeekler.com/index_penny.asp") $myVar = _IEGetObjById ($oIE, "counter_index_page_49356") ConsoleWrite("test" & $myVar.innertext & @CRLF) if $myVar= "00:00:19" Then MsgBox(0,"test",$myVar) EndIfYou may have to change the counter id if the item is gone. Btw I'm doing this for learning purposes, I don't care about buying cheap coffee maker x) I could have taken another website, same thingSo yeah... ConsoleWrite returns --:--:--, how do I get the value?
BrewManNH Posted July 31, 2012 Posted July 31, 2012 I don't think you can, it appears to be a javascript running in the background that displays the timer. There doesn't appear to be anything on that page that displays the actual timer value. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator
bogQ Posted July 31, 2012 Posted July 31, 2012 (edited) _IEBodyReadText($oIE) + alot of string manipulation (and 0% guarantee for any time based sinhronization) Edited July 31, 2012 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.
bling8d Posted July 31, 2012 Author Posted July 31, 2012 _IEBodyReadText($oIE) returns --:--:-- too I'm gonna browse the js code see if I can get something that can help me
bogQ Posted July 31, 2012 Posted July 31, 2012 (edited) From their siteThis eliminates 'sniper bidding' and gives everyone a fair chance at winning.if your looking at their java code than your targeting their site and it is not forfor learning purposes.I don't see you as fair bidder.edit: even if you do look for java code i hardly think that you even know how to get them. Edited July 31, 2012 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.
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