Welcome Guest.   Make a donation to an author on the site October 31, 2014, 12:17:30 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
View the new Member Awards and Badges page.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: IDEA: Click counter  (Read 4686 times)
Notok
Charter Member
***
Posts: 32


View Profile Give some DonationCredits to this forum member
« on: October 02, 2008, 12:16:32 PM »

This is something that I could really use for some testing that I'm doing right now. What I want/need should be pretty simple (emphasis on "should"). I just want a small app that will run in Vista and keep a count of the number of times the mouse is clicked within a specified program. It should have easily accessible Start, Stop, and Reset buttons. It would be nice if it would show how long it's been tracking clicks and stay on top as well.
Logged
fenixproductions
Honorary Member
**
Posts: 1,170



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #1 on: October 02, 2008, 12:30:07 PM »

2Noteok
The best one I've ever tried:
http://www.fridgesoft.de/odoplus.php
Logged

Надо было учиться, а не камни в школу бросать...
--
When I am bored I write for displaynone smiley
--
f0dder is my personal hero smiley
Notok
Charter Member
***
Posts: 32


View Profile Give some DonationCredits to this forum member
« Reply #2 on: October 02, 2008, 12:59:37 PM »

Aha, that will do, thank you smiley I looked around but didn't find anything. I guess I just couldn't think of the right keywords.

Thanks again!
Logged
Notok
Charter Member
***
Posts: 32


View Profile Give some DonationCredits to this forum member
« Reply #3 on: October 02, 2008, 01:04:04 PM »

Okay, one thing that I'm not seeing, however, is the ability to only track clicks within one program. I see that it shows where you've clicked, but what I'd really like is to be able to set it to count the number of clicks within, say, Word, but not increase the count if I check my email, click the Start button, and so on.

I still do appreciate the suggestion, and will use it for the time being, but if it would be possible to get a program that would count clicks just within a selected app, that would be great smiley
Logged
VideoInPicture
Honorary Member
**
Posts: 467



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #4 on: October 03, 2008, 12:36:31 AM »

It's doable to track clicks per application but do you want click tracking for all the instances of a single application or just for one open instance. For example, I could program it so that the program just tracks the clicks in one open window of Firefox or I could program it so that it tracks the clicks in all open windows of Firefox. Tracking the clicks in a single window is simpler to program than to track the clicks in all the open windows of a given program.
Logged

Author of Circle Dock: http://circledock.wikidot.com
Author of Video In Picture: http://videoinpicture.wikidot.com
Author of Webcam Signature: http://webcamsignature.wikidot.com
Author of Easy Unicode Paster: http://easyunicodepaster.wikidot.com
Notok
Charter Member
***
Posts: 32


View Profile Give some DonationCredits to this forum member
« Reply #5 on: October 03, 2008, 11:34:50 AM »

I think that just one would be fine smiley I would actually be looking to use this on programs that don't do multiple instances.

One thing that might be nice would be to have the ability to have it continue on into a new session (of the target app, not the counter), as long as it's not difficult. I would think this to be little more than just requiring the user to reset stats rather than clearing them automatically the next time the counter is started. I could also potentially see this as being a roundabout way to count clicks in another instance, but I digress smiley

Thanks!
Logged
skrommel
Fastest code in the west
Developer
***
Posts: 882



View Profile WWW Give some DonationCredits to this forum member
« Reply #6 on: October 03, 2008, 01:18:06 PM »

 smiley Try CliCount!

Rightclick the tray menu to change the title to watch and reset the counters.

Skrommel

[copy or print]
;CliCount.ahk
; Count clicks in a user defined window
;Skrommel @ 2008

#NoEnv
#SingleInstance,Force
#Persistent,On
SetTitleMatchMode,2

applicationname=CliCount

OnExit,EXIT
Gosub,TRAYMENU
buttons=lrm
IniRead,title,%applicationname%.ini,Settings,title
If title=Error
  title=
Loop,Parse,buttons
{
  IniRead,%A_LoopField%button,%applicationname%.ini,Settings,%A_LoopField%button
  If %A_LoopField%button=ERROR
    %A_LoopField%button=0
}
Return


~*LButton::
~*RButton::
~*MButton::
StringTrimLeft,hotkey,A_ThisHotkey,2
MouseGetPos,,,mwin
WinGetTitle,mtitle,ahk_id %mwin%
IfInString,mtitle,%title%
  %hotkey%+=1
Return


TRAYMENU:
Menu,Tray,NoStandard
Menu,Tray,DeleteAll
Menu,Tray,Add,%applicationname%,SHOW
Menu,Tray,Add,
Menu,Tray,Default,%applicationname%
Menu,Tray,Add,E&xit,EXIT
Menu,Tray,Tip,%applicationname%
Return


SHOW:
InputBox,newtitle,%applicationname%,Left:`t%lbutton%`nRight:`t%rbutton%`nMiddle:`t%mbutton%`n`nPart of Window Caption:,,,,,,,,%title%
If ErrorLevel=1
  Return
title=%newtitle%
MsgBox,4,%applicationname%,Reset counters?
IfMsgBox,No
  Return
lbutton=0
rbutton=0
mbutton=0
Return


EXIT:
IniWrite,%title%,%applicationname%.ini,Settings,title
IniWrite,%lbutton%,%applicationname%.ini,Settings,lbutton
IniWrite,%rbutton%,%applicationname%.ini,Settings,rbutton
IniWrite,%mbutton%,%applicationname%.ini,Settings,mbutton
ExitApp

Logged

Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.
Notok
Charter Member
***
Posts: 32


View Profile Give some DonationCredits to this forum member
« Reply #7 on: October 04, 2008, 10:45:04 PM »

Any chance someone could compile this for me?

And thank you very much for that smiley
Logged
wreckedcarzz
Charter Member
***
Posts: 1,620



Happy wolfie ^_^

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #8 on: October 04, 2008, 10:45:40 PM »

I will; I'll edit this post in a minute with it up.

EDIT: Here ya go cheesy

* CliCount.exe (199.23 KB - downloaded 208 times.)
Logged

New website! With a fancy domain name and everything! *gasp*
http://www.wreckedcarzz.com/
Notok
Charter Member
***
Posts: 32


View Profile Give some DonationCredits to this forum member
« Reply #9 on: October 04, 2008, 10:47:05 PM »

yay, thank you much!
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.032s | Server load: 0.07 ]