topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Wednesday November 12, 2025, 5:52 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

Recent Posts

Pages: prev1 ... 38 39 40 41 42 [43] 44 45 46 47 48 ... 264next
1051
I thought that this approach seemed more stable but I couldn't figure out how to replace it with Alt.
Using Alt, endKeys i don't think would be necessary because no one would ever double tap Alt.
I'm also posting on StackOverflow and will post back here if I get any results.
-jeff_eisenberg (May 02, 2017, 10:06 AM)

Ergonomics of the UI:
  • Replacing the target TapTap key with another one seems to be (will be) relatively easy.    :up:
  • By the way, the EndKeys thing seems to be an irrelevant diversion, looking at thew process flow. It's all about ergonomics.
  • Getting the rest of the code right seems to be where the problems lie!    :-[
  • More ergonomics: ",,,no one would ever double tap Alt. ..." - actually, I discovered that it can be very frequently used by people (like me) who use Alt+Tab as a window switcher. That keeps triggering the TapTap with invalid keys, so needs to be filtered out such that only "valid" TapTaps are processed. :(
1052
The above code seems to be incomplete/wrong and thus will not work AS-IS.
I have spent quite a bit of time re-writing it and getting it to work, but not being an AHK coder of any great merit, I am having to learn by doing (and using the Help manual).
In the process, I have figured out what needs to be done to stop the errors getting through in the original code sample you had - the input needs to be validated. Though it worked after a fashion, that sample has several errors in, by the way.
At the moment I am stuck at the point where there seems to be a disconnect - I cannot get some AHK input validation routines to work the way the manual says they should, and I haven't had the time to figure out why they won't. I need to become less ignorant about it.
I am going to have to check to see whether I have the latest AHK and matching manual.

So please don't expect me to be of much use in the short term as it is probably very much a case of the blind leading the blind. What's keeping me involved is a desire to help coupled with an instinctive compulsion to solve puzzles - like the one you presented - and I know I will be able to benefit by learning from becoming involved (same way as I am slowly learning Python by helping my daughter in her computer studies).

I am conditioned to think in terms of simple number-crunching, data analysis, financial modelling, linear programming and cross-tabulation using appropriate tools and  sometimesa low-level (assembler) language or something that seems nice and straightforward like FORTRAN, so trying to use a relatively high-level language like Python or the AHK script is hurting my head...    :o
1053
I have now been able to intermittently reproduce the errors similar to your Bug #1, but not yet Bug #2, using the code above for the ALT key. (So, it seems not to matter whether one uses the ALT key or the SHIFT key as the doubletap.)
  • If I type [Alt+f+ALT Alt+f+ALT in succession like that,  repeatedly and at different speeds, it makes a difference:
  • Typing it in succession sometimes outputs "ff", which is an AHK abbreviation hotkey for me, producing "Firefox" (that's how I know "ff" must have been output).
  • If I type it very quickly, then it will sometimes output the "f" test message box.

From this, I at first surmised that what may be happening here is that, due to timing delays/interrupts/collisions (or something) in the keyboard controller, the keys are arriving out of sequence at the buffers for A_ThisHotkey and A_PriorHotkey. I mean, that could be the explanation for Alt+f+ALT --> "ff". However, that probably could not occur unless the keyboard controller were on the blink. More likely is that the "f" is put into and remains in a buffer, and the "ALT" does not, so the next "f" arrives next to the first "f".

Typing Alt+f+ALT Alt+f+ALT repeatedly at speed will occasionally lead to  two ALTs occurring close together (back-back) and within 2 seconds the "f" following, thus creating a match in the A_ThisHotkey and A_PriorHotkey, and the "f" thus triggering a valid action (the Message Box). So it's probably just an accident of event sequence and timing. So it's not a bug.

I suspect that this event sequence and timing accident may be at root of the cause of your Bug #2 also, and that using a different (non-Shift) and little-used doubletap key will avoid/reduce the potential for that particular "bug".

The obvious thing to do would be to put NULLs or (better) odd/different and non-SHIFT/ALT values in A_ThisHotkey and A_PriorHotkey, after setting Double_SHIFT := false (so they then likely would not match next time around, whatever the next key pressed), however, that seems to be something that is not possible in AHK.

Listing all the possible endkeys as per <https://stackoverflow.com/questions/43701593/authohotkey-exclusive-double-tap-shift-followed-by-action-key> would seem to be a really kludgy way of working around this, but maybe there is no more elegant way to work around it.

You could still consider using the TapTap executable, I suppose...
1054
@jeff_eisenberg: That's interesting. Thanks.
Just out of interest, I used your code, but modified it for doubletap of the ALT key, as below - it works just fine and with no problems (so far!):
~ALT Up:: ; Sense doubletap ALT key
If (A_ThisHotkey == A_PriorHotkey && A_TimeSincePriorHotkey < 400)
{
      Double_ALT := true     ; doubletap ALT key has been detected.
      Sleep, 2000           ; allows time for a action key to be depressed subsequently.
      Double_ALT := false   ; reset if no key depressed inside that time.
}
return

   #If (Double_ALT)       ; Press one of the following  action keys within two seconds after ALT doubletap, to initiate an action.
d::
{
           FormatTime, CurrentDateTime,, yyyy-MM-dd HHmm  ; It will look like 2017-12-21 0353hrs
   SendInput %CurrentDateTime%hrs
           Double_ALT :=false
}
          return
a:: MsgBox, Test "a" key pressed.
s:: MsgBox, Test "s" key pressed.
f:: MsgBox, Test "f" key pressed.
        return   ; Belts-and-braces return.
__________________________________

Could I suggest that you might try similarly (i.e., with doubletap of the ALT key, or similar, rather than the SHIFT key), to establish whether the error behaviour is any different in your case? (Not sure whether you have already tried that.)
It would be interesting if, as and when you do find a fix to your problem, you posted the solution here also.
1055
@jeff_eisenberg:
Ah, I knew this problem seemed a tad familiar. My subconscious eventually dug it out.
It looks lke it might be the "tap-tap problem", and some work has been done with it in the DC Forum and the AHK forum, which - if you've not seen it already - might be of some use/help to you.
Refer IDEA: Super Efficient Extended Hotkey Mapper

As I wrote above, your piece of AHK coding submitted in the OP seems to work for me, so far. I can't see anything amiss with your AHK coding either, and the doubletap seems to be properly catered for, but I'm no expert.

If insoluble, then a useful workaround to your apparent problem might be to use the nifty TapTap app that @mouser wrote, refer:
1056
@jeff_eisenberg:
Sorry, but the script seems to work fine for me.   :(
That is, it works and I couldn't provoke any errors. However, the script conflicts with some of my existing AHK hotkeys where I use hotkey combos Left-Shift+RightShift+(another character) to trigger various functions, so the Left-Shift+RightShift triggers your script (which would seem to be what one would expect, so nothing wrong there.

Maybe therein lies a possible answer? - i.e., it might be conflicting with some of your own existing hotkeys?
Another possibility: Is your Shift key bouncing (i.e., not mechanically sound)?

If you cannot consistently reproduce the error(s), then it might well be something variable/unpredictable like that.
Just a thought.
1057
@panzer: Thanks for this:
IainB, something for you  :D :
"... techblocker is a free browser extension which enables you to block irrelevant and repetitive ads which add no value to your surfing experience. In addition, it also helps you to avoid being tracked by websites, blocks all domains that can spread malware, and even lets you disable social media buttons while you are surfing ...":
http://techblocker.com/
https://chrome.googl...dcjahfafaccgbkdlgmib
_______________________________
It looks a bit like the approach taken in the ad-blocker in the Brave browser (which is a rather nifty browser).


Also, thanks for the Gibbon Tabs link. I am trialling that now.
1058
@tomos: if you read the two discussion threads I linked to, one tells you most/all the fields where information is stored, and the second tells you where to get the last ("Sunset") version Picasa  3.9 Build 141.259. Your version is apparently an older version - v3.9.137. So,you could indeed be missing some newer functionality - I don't know.
Get the Sunset version, install it and point it to the folders with the images you want indexed, and it will do that. Then start putting data into some pix and search on that.
Most of the data is/can be entered via the "Captions" in Picasa, and otherwise in Tags. The names of face-recognised people are also recorded and this can be used to link with a Gmail address book. There's geo-tagging as well.
Most/all of these fields can be found/searched using Picasa.

One can examine the .jpg fields using irfanview: Open up a .jpg image in irfanview, press Alt+i 3 times, and you will be in the IPTC Info view, where you can see all the interesting fields that are available for use.

If Picasa does not seem to be finding the data that you know is in the .jpg image files, then it will probably be because either Picasa has not been told to capture the folders where those files are, or has not had time to index them. My experience is that Picasa never fails, but the user can inadvertently screw it up without realising it.    :-[
1059
@mouser:
Hmm.. Anyone know any other image-comment-searching tools to test with?
I might be misunderstanding the Q, but I thought we'd already pretty much done this one to death some time ago - refer the DC forum thread: Re: Feature Request: Search text notes in screenshots

The  best proggy I have come across for searching through and indexing image files by text content in various fields is still Picasa.
The Picasa "Sunset" version, availability and download links are described in the DC forum thread, here: Re: Picasa to be 'phased out'
1060
@panzer: Aha! Thankyou. Downloaded OK.
1061
^^ Ah, I see. Thanks.
1062
@panzer: That smells a bit fishy. I wonder if the author has been "got at"?

Many thanks for the links.
How does one go about downloading the installer file intact from the chrome store?
I can't figure it out.
I have made backup copies of the two folders (Name: bdgggpliahokemcgimpfcaaeknfbjlce) for BAJ in the Slimjet browser (user data), just in case, and the extension is synced to the cloud, so I can always re-install it, one way or another, but I would like to get hold of the installer, for posterity and for examination/study.
1063
Living Room / Re: What books are you reading?
« Last post by IainB on April 24, 2017, 10:18 PM »
The law says that one cannot be charged if one does not possess the necessary capacity.
1064
Well I'm glad to hear it's not a CHS bug.  I'll make the latest beta official soon.

Eh? Sorry, I is confuzzled by all these Betas... I thought the thing in the OP (as v2.42.0 - Apr 21, 2017) is/was the latest version (not sure whether it's a Beta though) - is that not so?
Thinking it was, I today downloaded and installed the relevant files from there, for the portable version, because the ChangeLog seemed to indicate all those changes that you had made and that we had been testing, and I saw the .exe file was a different hash to my (Beta) version - which file had the same version number (but slightly earlier date).

What/where is the definitive latest version/Beta? Did I just step backwards, or sideways, or something? Oops.    :-[

Whichever version I have from the OP, it's working very nicely anyway and I am now enjoying making good use of the now fixed-up Virtual Folder SQL field (for which fix, thankyou very much), as it enables the full potential of the nifty VF functionality.    :Thmbsup:
1065
@cranioscopical:
...For a recent beta I'd expunged existing copies of CH+S and hadn't properly restored the settings when I installed the new version.
_______________________
-cranioscopical (April 24, 2017, 02:57 PM)
Not trying to teach my grandmother to suck eggs, but if one keeps regularly making dated backup copies of:
  • The file ClipboardHelpAndSpell.ini
  • The folder PresetViews
- then one can restore these old settings files after an update, which will restore the old user settings where they had just been overwritten by the update.

I find that it also helps to backup/restore ConfigDir.ini, having set it to make CHS "portable", thus:
// IMPORTANT NOTE: Lines starting with // are COMMENTS; you need to remove // to make a line active

PORTABLE=TRUE
CONFIGDIR = .
...etc.

- all these being kept in the CHS app. folder as the "root" for config settings, which folder is not contained within a Program Files folder.
However, being "portable" like this stops the user settings being proliferated amongst the User-named folders - which suits me fine, though it might not suit everyone's needs.

Before I settled on the above approach, I would tend to get things confused after every CHS update and would end up manually restoring the settings from within CHS - a tedious exercise.

Hope this helps or is of use.
1066
The "faded" dim look is, I think, the *normal* way CHS looks if you have selected the ALL group.  It's shows the grid rows as dimmed when the items are not within the group itself but instead in a child group.

Can you confirm that by unchecking the customize checkboxes on the Custom Appearance tab?

Yes, that has always been true for CHS, I think.
The "dimmed" rows seem to be just default colours, where the user can change them to be some other colour.
I usually set "Grid child row" to black, as that makes them more easily discernible (perceived more clearly) to my eyes, in the Grid pane. That simple change can make a big difference for ergonomic perception. It's worth playing around with, if the user wants to get things right for their peculiar eyesight.
1067
@Curt: Many thanks for posting about FBX (FileBox eXtender) from http://www.hyperionics.com/

I had downloaded this in 2011, into my "Applications To Trial" folder, but never got around to actually trialling it as I was too busy migrating to another laptop and then forgot about FBX.
After reading your post, I thought "That sounds familiar", did a search of my disk and backups and found the 2011 downloaded file, which has the same checksum as the same/"latest" file version (v2.01.00 64-bit) as is still free + unsupported (discontinued) and available for download on hyperionics.com

So I installed FBX, and am now experimenting with it.
I already like how you can choose to set it to put those rather useful "Roll-Up/Down" and OnTop (Pin) buttons on every Window - and those are just incidentals!
I had been looking for something like that for ages.     :-[

There is an excellent Help file with it and I like how the source code is provided as well.    :Thmbsup:
1068
Found Deals and Discounts / Re: Antivirus
« Last post by IainB on April 23, 2017, 08:56 PM »
The question would seem to be kind of academic, since you don't need to pay for a very good  - possibly the best - AV (antivirus) software, given that there's a perfectly good free one that comes bundled with Windows 10 in Windows Defender.
Windows Defender includes a Firewall and an AV (which was previously named MSE - Microsoft Security Essentials). All you need to do is enable that AV in the OS, and away you go. However some OEM installations actually disable the MSE component, and nag you to pay for a pre-installed AV package (Norton/Symantec seem to be notorious for doing that). Maybe that is happening in your case.
If it is what is happening in your case, then you will probably first have to remove all traces of Norton/Symantec or whatever you have, before the MSE AV can be enabled. That was what happened with one of my laptops, at any rate. I used RevoUninstaller ($FREE version) to uninstall any proggies related to "Norton" " or "Symantec", then I used Everything to search up all left-over files/folders related to "Norton" " or "Symantec" (including in the Windows Store cache) and deleted them, then ran CCleaner ($FREE version) to remove any left-over Registry hooks. Those AVs were almost as bad as a virus/malware.

As @f0dder wrote in reply to your question in the thread Re: Windows 10 Privacy Concerns
What antivirus I can for my windows 10 Privacy and protection?
Just stick with Windows Defender for AV - possibly supplementing with MalwareBytes AntiMalware - but read this.

As for "privacy", you might want to read this. O&O Shutup10 doesn't seem too bad, though.

 - where your question was:
What antivirus I can for my windows 10 Privacy and protection?

@f0dder's advice is very good in that it seems to be consistent with the discovery/experience of many Windows PC users in this forum (i.e., it is not just an unfounded opinion). If you search the discussions in the forum, you will find various useful threads on MSE (Microsoft Security Essentials) and MalwareBytes.

Of course, if you want to, or prefer to pay for an AV proggy such as Avira, then go ahead - knock yourself out - but then, why worry about the value of a discount coupon for an Avira subscription?    :tellme:
1069
Clipboard Help+Spell / Re: "Invisible clip" ? (Ignore Clip Hotkey)
« Last post by IainB on April 22, 2017, 10:12 AM »
@mouser: ^^ Ruddy great response.    :Thmbsup:
You clearly seem to get the point. Thankyou. If your deliberations arrive at the conclusion that it's too much like hard work though, please don't go to the trouble to make changes just for my sake.
1070
Clipboard Help+Spell / Re: "Invisible clip" ? (Ignore Clip Hotkey)
« Last post by IainB on April 21, 2017, 01:11 PM »
@mouser: You say/ask:
There isn't currently a way to get that info from CHS; can you explain a use case where you would want to be able to tell whether CHS is enabled or disabled from AHK?
_______________________

Before you posted that you had put the "reverse toggle" in, I was puzzling over how to do what @tomos was basically asking for, but using AHK rather than build it in to CHS:
...a hotkey that would copy selected but not save it in the CHS database. Not sure how, or if, that could be implemented. ...
_______________________
I saw it as a puzzle rather than a "use case".
When you posted that you had made the "reverse toggle", I saw what you had done as a nifty way of getting around the need to determine the current state, that went about 80% of the way there, in a situation where the current state was not easily known, but it could only be one of two possible complex states.
Your "reverse toggle" thus was actually quite a simple (logical) workaround, because it made use of the fact that the current state could only be one of 2 options, without actually knowing what they were, but it still left the question unanswered in my mind as to how one might be able to find the current state - e.g., like in this potentially extremely useful bit of AHK code for a toggle to make a selected window topmost, and then reverse that when the user wants, but where the current OnTop state is not known by the user:
_________________________
^>+T:: ; Ctrl+RightShift+T  - OnTop - TOGGLE FUNCTION
WinGetTitle,title,A ; this code cribbed from MilesAhead (DonationCoder) TopMost Toggle script.
  WinSet,Topmost,Toggle,A ; toggle TopMost state
  WinGet, ExStyle, ExStyle, A ; DLLCALL to tell if window AlwaysOnTop
  if (ExStyle & 0x8) ; 0x8 is WS_EX_TOPMOST.
    tiptext := "Topmost ON"
  else
    tiptext := "Topmost OFF"
  ToolTip,%tiptext%
  Sleep, 500
  ToolTip
Return
_________________________
The DLLCALL to tell if window AlwaysOnTop is the thing. It enables an appropriate ToolTip to be output which tells the user precisely what the OnTop state is now (after toggling), rather than him/her having to recall what the initial state was and figure out (deduce) what it must be by now. This is called "visible feedback". No feedback or invisible/not perceived feedback is asking for trouble.

That's the trouble with toggles - whether in cockpit instrumentation or a computer window display - the ideal ergonomic objective is that the user is (must be) assured with good ergonomic feedback as to what the state is after the toggle has been used. So there would be less or no ambiguity/uncertainty about the matter. In a cockpit, it could be a matter of life-or-death. In a computer proggy like CHS, it would help the user  to avoid absent-mindedly (that would be me) making the wrong deduction about what the toggle state is/was (or not even realising that anything had changed by using the toggle), and (say) inadvertently saving a load of confidential data to the clip database because they had forgotten or simply did not know/realise that they had changed the toggle or what the blasted toggle state was.

My benchmark is "Will this be something that me and my kids could use/understand, without confusion?", so I thought that, if I were wanting to make a CHS toggle that they could use/understand, then it would be a mandatory requirement for it to provide the appropriate visible feedback in the same/similar way as the OnTop toggle.
The toggle you provided is something that I might be able to use correctly sometimes (though perhaps not when absent-minded if lost in thought), but probably not my kids.

Hence my Q to you: "Would it be possible for CHS to broadcast the state that has been toggled?"
I wasn't asking for you to do anything about it, as, for all I know, the state might be able to be subtly deduced from some conditions that I was unaware of. Looks like the answer is a "No", anyway. Pity. Never mind.
1071
Clipboard Help+Spell / Re: "Invisible clip" ? (Ignore Clip Hotkey)
« Last post by IainB on April 21, 2017, 10:26 AM »
That's quite a nifty approach - masking the state and doing the "opposite" thing. I was wondering how to do that using AHK and the problem was that one does not know what state has been toggled to start with, so the state has to be assumed and that is uncertain.
Would it be possible for CHS to broadcast the state that has been toggled - somewhere where AHK could access/read it?
That is, whether the state is:
  • CHS normally enabled and copying all of your clips
  • CHS normally ignoring all clips

- or would that be written out to ClipboardHelpAndSpell.ini anyway, each time the state is toggled/changed?
1072
This discussion should probably be marked as "Closed" or "Fixed", now.
1073
Clipboard Help+Spell / Re: "Invisible clip" ? (Ignore Clip Hotkey)
« Last post by IainB on April 21, 2017, 07:05 AM »
@Chessnia:
...Then maybe they have to copy a bank account number from their password list app, they have to switch off the program. Then switch it on again. Then they don't want to save an image into the clipboard, off again, on again. Another image, etc. Switching it on and off is actually a rather cumbersome "solution" to the situation I was describing. It makes it even more confusing than actually deleting it manually. ...
_______________________________
I think you have hit the nail on the head there - the work process that one is following needs to be considered. Why would one inflict a confusing process on the user?

So, looking at it as a work process:
  • Ergonomically, doing what you are suggesting the user might want to be done here could indeed likely be rather confusing - as you say - and may even induce human error because of that.

  • My suggestion would thus be to simplify and to concentrate on one thing at a time - capture everything that one clips, regardless, then periodically review the clips and tick as "Favourite" those clips that one wishes to keep permanently, then delete any/all clips remaining that have not been marked as favourites. That puts them into the clip database's Recycle Bin. One can then permanently delete those clips in the Recycle Bin by emptying the bin.

  • So that is what I usually do, except I add on a "belts-and-braces" process step and first review the deleted clips in the Recycle Bin to double-check whether I really did want them deleted. So, I conduct this check, recovering any clips that I decide to retain, and only then do I empty the bin.

  • One could otherwise set CHS to auto-delete any non-favourited clips once they have reached/passed a certain age, but I prefer not to use that approach as I wish to control, the deletion process in a more timely fashion, rather than have things blindly auto-deleted at a later time - which also risks having confidential data remain in auto-backups of the clip database.

Scanning/reviewing and checking the list of clips like this requires scrolling the non-favourited clips in the database, which used to be a tedious process for me, due to the slugishness of the scrolling in CHS. However, @mouser recently fixed that, so that CHS is now blazingly fast most of the time and the check-and-delete process can thus be very rapid. It's a doddle.

If one worked in this manner, then being able to toggle CHS On/Off via a hotkey, or something, would thus categorically probably not be a requirement (not mandatory, not highly desirable, and not nice-to-have), and having such a feature could thus arguably be superfluous -  though I am not suggesting by this that the toggle should not be there.
1074
^^ My comment above:
Having just re-read the discussion on NANY 2015 Release - Splat (Simple Program Launching and Termination), I belatedly realised that, by intelligent use of SPLAT we might be able to arrive at the same ends and achieve Nirvana and avoid functional duplication in/with ProcessTamer - to a greater extent, at least.

So, PT could remain "lean and mean".

What do you think?    :tellme:
1075
"Your Arizona cave shot was pretty cool as well!"
Well, with someone whose avatar was a caveman, one would expect them to say that...
Pages: prev1 ... 38 39 40 41 42 [43] 44 45 46 47 48 ... 264next