Jump to content
Sign in to follow this  
Guille

IE clikc on form detection

Recommended Posts

Guille

HI

I need to code a bit of software that counts how many times I click on a webpage button. To give you an idea it could be the search button on google page.

I've a good knowledge of AutoIt but very small in IE coding and I haven't found any function that detects a click on a form.

Does someone got an idea to how I can do this?

thanks in advance.

Share this post


Link to post
Share on other sites
d4rk

if you want to use _IE*, first you must use _IECreat(), then the general is

$i=1
$clicktimes=0
do
if (you click button) then
$clicktimes=$clicktimes+1
endif
until $i<>1

[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites
Guille

well all I need is the "(you click button)" code :)

Share this post


Link to post
Share on other sites
DaleHohm

I can show you a solution to this, but I request that you first go to the helpfile and read about ObjEvent. The solution I will propose will involve _IECreate, _IEFormGetObjByName, ObjEvent and creating a function for handling the evets called Evt_onsubmit()

Read a little, take a stab at it and reply back.

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

Share this post


Link to post
Share on other sites
Guille

Thanks a lot, i've got an idea to where I've to looking for now, I'm a bit lost in IE coding. I'll try this way.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×