Wow, that's pretty neat! Delphi, I assume?
How hard would it be to use the firefox rendering engine (gecko) rather than ie?
Wow, that's pretty neat! Delphi, I assume?
How hard would it be to use the firefox rendering engine (gecko) rather than ie?
Interested in C# and Electrical Engineering? This might interest you.
Yes, Delphi
I have no idea how hard it would be. I just haven't found an up-to-date interface for Delphi yet.
I tried to use the firefox engine as plugin, but it epicly failed.
Verrekte Koekwous
The scipt detects the right answer for me, but while using appa, it doesn't seem to click the answer in any way shape or form. It just keeps spamming my debug with the answer .
I smell an amazing club live bot on the way
Interested in C# and Electrical Engineering? This might interest you.
Guess what I'm running right now
is the userAgent same as that of my IE installed on MY pc?
P.S[1] : I check the user agent of appa using http://salij.org/useragent
it reported as IE 7.0
Also... The application is great...
Already started botting on a text based rpg...
Will give out some common functions i made soon...
P.S.[2] : BUG : The appa_PageState returns 4 way before the page is even loaded...
If you are trying to test this... Do it on a page with is filled with images...
Last edited by l33t_h4x0r; 07-12-2009 at 01:56 AM.
Thanks
Appa basically wraps a TWebBrowser control from Delphi into a dll. So your UserAgent should be the same as your Internet Explorer. The PageState function returns the ReadyState from the browser, so there's not much I can change there.
Code:const READYSTATE_UNINITIALIZED = 0; Default initialisation state. const READYSTATE_LOADING = 1; Object is currently loading data. const READYSTATE_LOADED = 2; Object has been initialised. const READYSTATE_INTERACTIVE = 3; User can interact with the object but loading has not yet finished. const READYSTATE_COMPLETE = 4; All of the object's data has been loaded.
Notice the client dosen't switch to Appa. this means we can't use DTMs or any other wide range of functions that SCAR has built in that require a client. Plz correct me if I'm worng. How would we go about looking for DTMs and text recognition?
You'll have to use appa_CopyContentToBitmap and search on the bitmap.
EDIT: See post #25 from this thread for an example.
Last edited by nielsie95; 10-19-2009 at 09:22 PM.
Anyway you can post .zip?. I don't want winrar..
"SRL is the best SCAR community in the World, with the most talented programmers: adjust your volume."
-Wizzup?
I think this deserves a seperate thread designed that posts allt eh functions and controls of Appa. The function list in 1st post is ok but its helpful to have a list of all controls that can be used by appa. for instance, to set a form value we would use appa_SetValue as the action but I only know that from one of the examples posted.
EDIT:
Also I tried logging into a site using Appa and it said "unable to retrieve session cookie. please relogin."
Last edited by rawsilk; 10-20-2009 at 02:50 AM.
I don't think there's a need for that. If you don't understand something, you can ask me
I'm not sure about the cookies, I believe they should work.
This is pretty awesome, nielsie =) Great job, I love it!
Fair enough. About the cookies, I talked to my roommate in CS and apparently some login forms (especially secure sites) have an algorithm that they use to retrieve data and if it isn't matched then it wont work properly. It's designed to prevent exactly what I'm doing actually.
Oh well. I working on some functions that make it possible to do DTMs and such things to make navigating these sort of sites easier. Also, does anyone have a good bitmap set for verdana font maybe size 11px? Its a bummer when it crashes cus it wont access window's fonts. "Access violation".
EDIT:
Also, I get
[Runtime Error] : Exception: Access violation at address 00781150 in module 'scar.exe'. Read of address 00000000 in line 45 in script
When I try appa_CopyContentToBitmap(c); Any ideas?
Last edited by rawsilk; 10-20-2009 at 09:20 PM.
Did you enter a valid bitmap with proper size?
Is there a way to return the bitmap of the whole page? Not just the section that Appa is viewing? You were right about bitmap too haha, forgot size params.
No, sorry
Found a bug. When using
appa_ElementAction(i, appa_GetAttribute, 'onclick');
if there is no attribute 'onclick' then it returns a Null which f***s Scar up. It doesn't return an exception. Even if I try:
It would be better if it returned a var string and a result boolean. Boolean whether attribute exists.Code:a := appa_GetElements; for i := 0 to high(a) do begin try writeln(appa_ElementAction(i, appa_GetAttribute, 'onclick')); finally end; end;
It would be nice if Appa could emulate a physical Click better. Sites still detect it as a digitally sent click where they don't detect normal ClickMouse.
Mouse & MMouse possible?
TWebbrowser ftw =). Good Job Nielsi!.
There are currently 1 users browsing this thread. (0 members and 1 guests)