topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 11:47 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Robby250 [ switch to compact view ]

Pages: [1]
1
Post New Requests Here / Re: Key counting script
« on: October 02, 2011, 05:35 PM »
Okay, after a month of usage, I have had a few issues.
First of all, the first day I got it the counter reset once from about 10000 keys or whatever I had back then to 0.
That didn't happen again, however, but today a key which had about 700000 presses last time I checked should've gotten to about 800000 now, but when I checked it went down to 237000, in line with some other keys which had about the same value, and these other keys I don't think that they were so close in value to each other before.

Then, some of the blocked keys, namely XButton1 and 2, had 1-2 counts even though they're disabled. I set it back to 0 through the notepad, but they keep getting 1-2 counts again.
There may have been some other precision issues with the key counts, but they didn't stand out so I'm not sure whether it actually happened.

Because these issues happened so randomly and in a large amount of time they are hard to recreate and therefore probably unfixable. The only solution I can see with my nonexistent scripting experience is to implement the key counts and key exclusions into the app itself, because for some reason I think that it's related to the fact that the files are detached and it has to check for them instead of being inside the app.

Cheers.

Edit: My counter went down again from 3 million and something to 2.7 million and I think that it will keep getting stuck here. I was thinking that it could be because of not having access to modifying it, but I do and in addition I haven't changed anything ever since I got the app.

2
Post New Requests Here / Re: Key counting script
« on: September 01, 2011, 05:33 PM »
Please understand that I am employed full-time and that I do these Coding Snacks when I can get to them in my spare time.
Don't get me wrong, I'm not trying to call you faster, but I wrote that just in case you wouldn't check this thread because there aren't any new posts.

Also, that works just fine, I don't think that I'll need any other updates, I appreciate your work. Thank you very much.

3
Post New Requests Here / Re: Key counting script
« on: September 01, 2011, 03:50 PM »
Double post as a notification perhaps?

4
Post New Requests Here / Re: Key counting script
« on: September 01, 2011, 09:53 AM »
The only thing I can suggest is to use something less common like F11 & F12 or something.
It's not that it adds to the specific key what bothers me, but that it adds to the total.

I'm thinking... there's Mouse button 1, left click, 2, right click, 3, middle scroll click, then 4 and 5 the side buttons this mouse has. Maybe there are Mouse buttons 6 and 7 too or something similar?

Edit1:I just remembered, since I'm using modifiers on the mouse buttons 4 and 5 now these are unused, so I can just put these on the thumb scroll. Silly me.
Any news of the AltGr fix though?
Edit2: Oh man... that actually didn't work... since as long as I have Xbutton1::ctrl for example, and the thumb scroll indentifies itself as exactly that, it now acts as a ctrl...

Edit3:The only thing I could think of, is for you to disable on the counter 2 buttons such as browser forward and backward, I bind them to the mouse button 4 and 5 using the mouse's software, then, using autohotkey, I make something like Browser_back::ctrl, and for the other alt, then mouse button 4 and 5 are free to use for the thumb scroll.

Edit4:I binded those like I said, now all I need is a version of the app without the browser forward and back. Could you make one for me please?

5
Post New Requests Here / Re: Key counting script
« on: September 01, 2011, 09:26 AM »
Ah. I remembered to try out if the right alt counts as 2 keystrokes. And indeed it counts as one to right alt and one to left ctrl. Is this fixable? I can live with it though, Since I never normally use AltGr as it's called.

Also, my mouse has a thumb scroll that I can bind on whatever keystroke I want. So I binded it with Left and Right from the keyboard, and this seems to count too. I need to bind it something so that I can use it in games, and I've chosen left and right to be able to use horizontal scrolling as well. Maybe you know some mouse keys or virtual buttons or anything that I can bind in those places, to make it usable but also not be counted? A software to simulate those to input them into the mouse's software would also help. Thanks.

6
Post New Requests Here / Re: Key counting script
« on: September 01, 2011, 09:05 AM »
Oh my god. That is perfect. It counts the key layout correctly, while not counting the Autohotkey modifier changes I've made.

Should I edit this post if I find any problems with the app, or make a new post to bump the thread? Thanks a lot! I appreciate it.

7
Post New Requests Here / Re: Key counting script
« on: September 01, 2011, 05:17 AM »
It says "404 Not Found" on anything below and including /snacks/.

8
Post New Requests Here / Re: Key counting script
« on: August 30, 2011, 08:56 AM »
If, by the menu key, you mean the context menu key (commonly called the Apps key)
Yes, I've included a photo of the keyboard in the original post in case you missed it.

Never mind my previous question with the modifiers, I found that out, and now a mouse button acts as Ctrl+shift, another as alt+shift, and the left Windows key as ctrl+alt+shift. I'm wondering if they count when I'm pressing them, because I wouldn't want them to count as modifiers, but I can deal with it; the actual binds I've done are:
Code: Autohotkey [Select]
  1. LWin::
  2. Send {Alt down}
  3. Send {Ctrl down}
  4. Send {Shift down}
  5. KeyWait LWin
  6. Send {Alt up}
  7. Send {Ctrl up}
  8. Send {Shift up}
  9. return
  10.  
  11. Xbutton2::
  12. Send {Alt down}
  13. Send {Shift down}
  14. Keywait Xbutton2
  15. Send {Alt up}
  16. Send {Shift up}
  17. return
  18.  
  19. Xbutton1::
  20. Send {Ctrl down}
  21. Send {Shift down}
  22. Keywait Xbutton1
  23. Send {Ctrl up}
  24. Send {Shift up}
  25. return


Also, I'm using a colemak keyboard layout, which has been installed through the "Keyboards and Languages" menu. Some games seem to indentify it as qwerty, and others indentify it correctly. Would this be a problem for which key is counted in the program?

9
Post New Requests Here / Re: Key counting script
« on: August 30, 2011, 08:50 AM »
Sure, that's possible.  I assume you mean this for gaming purposes.  If so, check out the AutoHotkey forum.  It's probably full of scripts like this.
You mean the AutoHotkey board on Donationcoder or the AutoHotkey forums made by them? I've searched a lot using google anyway, and all I have found is something like this:
If I want left alt to press alt, ctrl and shift it should be like this: Lalt::alt & ctrl & shift, or I've even tried Lalt::!^Shift.

Problem is, it isn't working.
I've read the tutorial (I admit that pretty summarily) and couldn't find anything helpful. I've also looked on the Autohotkey forum and a few promising looking threads disappointed me. I thought that bringing the question here would shorten all the hassle.

I have it written so that it does separate left/right Control, Alt, Shift and Win keys.  That being said, not all keyboards are the same so your results may vary.  It works here on my Microsoft Natural Keyboard Pro.

It seems that the Razer BlackWidow doesn't have a right windows key, but it has a menu key and a function key instead. Could you include those too please?

10
Post New Requests Here / Re: Key counting script
« on: August 30, 2011, 02:55 AM »
@Robby250: I started work on this but there is one caveat.  Let me try to explain.  The original app, KeyCounter, should technically be called CharacterCounter since that's actually what it's doing.  Counting characters...not keystrokes.  So, this version I'm making for you is an up-event keystroke counter.  This brings us to the caveat.  Since it's a keystroke counter, it doesn't know about something like, for instance, the exclamation point.  The exclamation point is a character, not a key.  So, for an exclamation point, this new app will register two keystroke up-events: "Right Shift" and the "1" key.  Does that make sense?  Is this going to be an issue?
No, actually that's exactly what I want, I even mentioned in the other thread that I want for example ' and " to count as the same key, which is another difference to the KeyCounter.
Also, I'm wondering. Can it notice the difference between the right shift and left shift; right ctrl and left? Or do some of them identify as exactly the same? And recently I've noticed that my right Alt produces both Alt and Ctrl... Would that count as 2 keystrokes?

And by the way, you don't need such an extended explanation, I can understand :P.

Something cool I thought of but would take too much time and effort to make, is an interface with a keyboard layout like this one: http://patorjk.com/typing-speed-test/
After you're done with the test, it colors the keys by response time (I was thinking of counting by amount of presses) and on mouseover shows counts of the keys... But as I said, isn't something for such a simple script like this.

Another thing I want to know with Autohotkey, and you seem like someone who knows about it, is if you can bind several keys to a single key. Not only to send them on a press, but the selected keys to be pressed when I press the key they're bound to, and release when I release it. Do you know if that's possible? I haven't found anything like this anywhere. Not related to this script though.

11
Post New Requests Here / Re: Key counting script
« on: August 25, 2011, 04:31 PM »
Just select a rate that you consider safe enough and not make it an overkill. If there is a problem with it I will probably be able to edit the saving rate anyway, because I think there are obvious signs such as Savefile bla bla *file name* around there along with a number it is pretty noticeable that that is the saving rate, is it not?
That is, considering you are making it an .ahk script and not .exe.

12
Post New Requests Here / Re: Key counting script
« on: August 25, 2011, 03:23 PM »
If it doesn't produce any performance issues I'm good with even less than 10 seconds. Also, by auto-saving I meant that the script detects when it is being turned off and saves... or something like that ¯\(°_o)/¯.

13
Post New Requests Here / Re: Key counting script
« on: August 25, 2011, 02:40 PM »
Yeah, that is fine, but can it auto save when the script is shutting down (computer shutdown), or can it only save ocasionally, and the data in between saves is lost? I would like it to be as accurate as possible. :p

14
Post New Requests Here / Key counting script
« on: August 25, 2011, 02:07 PM »
Hi there,

I was led to this forum after searching on the internet for a key counting software, to be exact at skwire's Keycounter discussion page. There I reported a few issues with the software and he replied that those cannot be resolved due to the limitations of Autohotkey; then gave me a simple script for keycounting I could work on. Here's the script:

Are you familiar with AutoHotkey programming at all?  If so, here's a quick snippet I wrote that will do what you want for letters a-z and numbers 0-9.  Press F1 at anytime to see a simple message box showing your keystroke stats.  You could easily extend this to cover all keys, to save/load data, display data in a more elegant way, etc.

Now, I thought that it would be better if I took the script out of the quote:

Code: Autohotkey [Select]
  1. myKeys := "abcdefghijklmnopqrstuvwxyz1234567890"
  2.  
  3. ; Iterate through myKeys variable and create a hotkey for each letter and number.
  4. Loop, Parse, myKeys
  5. {
  6.     Hotkey, ~*%A_LoopField% up, CountKeys, On
  7. }
  8.  
  9. Return ; End of auto-execute section.
  10.  
  11.  
  12. CountKeys:
  13. {
  14.     ; Get the third character from the left of the hotkey name.
  15.     StringMid, myKey, A_ThisHotkey, 3, 1
  16.    
  17.     ; Increase character counter and total counter.
  18.     %myKey%_Count++
  19.     Total_Count++
  20. }
  21. Return
  22.  
  23. F1::
  24. {
  25.     ; Null out report variable.
  26.     myReport := ""
  27.    
  28.     ; Iterate over myKeys variable and build out report, key by key.
  29.     Loop, Parse, myKeys
  30.     {
  31.         myReport .= A_LoopField . ":`t" . %A_LoopField%_Count . "`n"
  32.     }
  33.    
  34.     ; Display report with total at the bottom.
  35.     MsgBox, % myReport . "`nTotal:`t" . Total_Count
  36. }
  37. Return

Unfortunately, I do not know any Autohotkey programming, and I basically want this to cover the whole keyboard, auto save the counter data and load it on script startup.

The reason of why I want this is because I am getting a new keyboard soon and I want to track each keypress individually and total, out of curiosity. If it matters (for which keys to add to the counter), I will be getting a Razer BlackWidow: http://tbreak.com/te...h/files/DSC00056.jpg

The initial issues I found with KeyCounter and I do not want to happen are: repeated keys (e.g. holding W for 5 seconds, it repeats the key many times) were being taken in consideration by the KeyCounter. I only want a single keystroke count; and keys combined with a modifier (e.g. alt+2; ctrl+shift+E, etc.), the modifier was being counted but the key(s) under the modifier were not. I wish they were.

skwire,
Thanks for this snippet, I replied at KeyCounter's discussion thread, but you probably did not see the post, were too busy, or whatever the reason is, it does not matter, but I think that you are reading the forums you are moderating :).

EDIT: Ah, I just saw the "Post New Requests Here" page, was I supposed to make the thread there? I am sorry.

15
N.A.N.Y. 2008 / Re: KeyCounter
« on: August 20, 2011, 06:33 PM »
That works fine, and no I'm not familiar with AutoHotkey programming, but I can see how to add the letters I want and whatnot.
Trouble is, I don't know how to make it save the data recorded and load it the next time, or add modifier and special key counters.
Also, "." "/", quotation marks and probably more characters are considered illegal characters and I can't add them. I basically want kind of every key on the keyboard to be counted, like Keycounter does. Another difference from Keycounter is that I'd prefer it to count, for example, both "/" and "?" as one key.

If I don't know what I'm talking about and what I want is not possible with Autohotkey, I'm sorry. I don't really know what you can and can't do with it. The reason I want this is because I'm getting a new keyboard soon and I want to track from the beginning the amount of each physical keypress and total, out of curiosity, to see how much every individual key lasts, how huge the difference of key usage is, etc.

Edit: I've tried another software called Whatpulse and at first it seemed fine. Then I realized that it doesn't count alt+key combinations, so it's no good.

Edit2: Any help? Should I be posting this on Coding Snacks?

16
N.A.N.Y. 2008 / Re: KeyCounter
« on: August 20, 2011, 02:10 PM »
Hello again, after using the other software for a while, I have found some undesirable things with it aswell:

-Amount of each individual key isn't tracked in total, it resets when I close the software, it only keeps information of key presses in certain days and total;

-Now, the tracking of total key presses in total is something I want, but it is merged with the amount of mouse clicks as well, which I don't want;

-It has too many unnecessary options and trackers such as daily key presses, mouse clicks, words, etc.

I only want a simple tracker with the amount of keypresses for each individual key and total amount of keys, and this software seems perfect for the job.
I've noticed that the typometer doesn't track key presses, it tracks the release of a key, hence probably making it possible to ignore repeated keys. If you could find a way for your software to also track keys under modifiers, that's all I would need. The software would be ideal. I don't necessarily need it not to track repeated keys, since I could disable them, but that would be a bonus. What I need is the key-under-modifier tracker or however you name it.


17
N.A.N.Y. 2008 / Re: KeyCounter
« on: August 09, 2011, 04:58 PM »
2 & 3) Due to the limitations of the Input command in AutoHotkey, I don't think there is much I can do about either of these issues.

Hmm, I thought that the keys under modifier presses could be done due to another thing you've mentioned yourself:
KeyCounter doesn't count "characters" such as 'a' or 'z' or 'я' or 'は' etc.  It counts presses of physical keys.

But anyway, I'll try that other software, thanks for the link!

EDIT: That program works well, doesn't have any of the issues I've mentioned here. Thanks!

18
N.A.N.Y. 2008 / Re: KeyCounter
« on: August 08, 2011, 08:06 AM »
Hey there, this is a wonderful application; but I've created this account to report 2 things.

First of all, I'm on Windows 7 32 bit, but I don't think that has anything to do with the fact that the keycounts are saved to a file named Key_Counts.lst.tmp instead of Key_Counts.lst. Now, I've changed it to the latter, and the keys are loaded fine and everything is well. If you could modify your last version with this, I think that new users would appreciate it.

Secondly, the program includes in the key counts repeated keys; for example if you hold W for 10 seconds, it registers a lot of keypresses. This is annoying in games where you hold movement keys and such, and I just want to know how many times I've pressed a certain button. If you could include an option to disable the registering for repeated keys then this application would be lovely.

Oh, one more thing. Buttons coupled with modifier keys don't seem to count (alt+2; ctrl+shift+4, etc.). I'd like alt+2 to count as one press to alt, which is counted and another one to the 2, which doesn't count as far as I've seen.

Bold part is the most important issue for me, since for repeated keys I've disabled them completely, and the first issue I've fixed it manually.

Pages: [1]