If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#21
|
|||
|
|||
How to make a double-click only affect the clicked-on file ?
In message , R.Wieser
writes: Lee, So the search tool was open and you were typing in the file name when it started misbehaving? I'm sorry, I see I was not too clear there. I just typed the filename while the focus was on the explorer window on the right (containing all the files). It behaves as a kind of auto-complete (jumping to the first file matching the first typed char, than on typing the second char to the file matching that one, and so on). To sum up those ramblings, it appears to be a random firing off of CTRL-TAB. ALT after that goes straight to the tool bar then. Does that sound feasible to you? I have no idea if its feasable. But I think its simpler: when you hold ALT down your keystrokes are regarded as "shortcut keys" and are send to the toolbar. If the ALT key "sticks" (on the keyboard itself, or being remembered by the OS as being down) they will (ofcourse) go to the toolbar too. But while that works for the ALT key, the problem that I'm having seems to be related to the SHIFT key (holding ALT down while selecting a file in explorer does not seem to do anything special). And that makes me realize that I seem to have (at least) *two* keys that act funny: SHIFT and ALT ... [] Another possible something that might need considering: keyboard mapping. I know, for example, that in the USA, there are two keys marked Alt, which (AFAIK) do the same thing there; in the UK, the right one is marked Alt Gr, although I've never been too sure what it's for (possibly generating things like é, though it doesn't for me - I generated that with an excellent utility called AllChars, though I don't know if that works in '98 - I'm using XP here). Anyway, keyboard mapping may be relevant - I've certainly seen cases where different mapping applies between Windows and DOS, and _I think_ console mode too. (Though I can't think of any layout where [either of ]the _shift_ key[s] have a different function under anything.) -- J. P. Gilliver. UMRA: 1960/1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf Madness takes its toll. Please have exact change [via Penny Mayes )] |
#22
|
|||
|
|||
How to make a double-click only affect the clicked-on file ?
John,
Could it be that something somewhere remembers the shift key condition when you switch to console mode, and restores it when you return? That would be a heck of a bug, but everything is possible I guess. Personally I get the feeling that the "key up" message sometimes just doesn't pass the boundary between the switching from full-screen CLI to the GUI, and the "key down" state simply stays active there, only to bother me when I switch back to it. Though I can't think how you'd switch to console mode with the shift key down. ... and I only realized this only much further down the road :-\ :-) I've been wondering about that too. But I realized that many other keys could be remembered in their pressed position, but just not have any averse effect -- other than having to, if it happens, press the key twice to have it appear. Hmmm ... Not that it solves the problem, but it might narrow down where to look! If you have any idea, don't hesitate to mention it ! From my POV it could be anywhere between the computers keyboard-communication chip (I'm using a PS2 keyboard) and the very application that is absorbing the keystrokes. Interesting; IME, any lack of detection of a PS/2 _mouse_ isn't usually restored by plugging it in again No, but I imagine that the keyboard could be sending, when power is aplied, a "waking up" sequence, which a driver could be using to initialise/reset its own state. Regards, Rudy Wieser -- Origional message: J. P. Gilliver (John) schreef in berichtnieuws ... In message , R.Wieser writes: Lee, In order for an otherwise innocent double click to invoke several files at once one normally has to have been in that folder before and single clicked on an object which highlights it. There you mention something. Only now I realize that if the selection would be done from the first item I should have been seeing a lot of open folders -- which I don't. I have to check that next time it happens. But yes, the folder I'm double-clicking an item in was already open before I switched to-and-back-from the console window. A thought: the behaviour is as if you had the shift key held down (so it activates several files when you only wanted one), yes? Could it be that something somewhere remembers the shift key condition when you switch to console mode, and restores it when you return? Though I can't think how you'd switch to console mode with the shift key down. But a possibility to ponder. Not that it solves the problem, but it might narrow down where to look! [] And I'm not really sure I am talking about the same thing you are. Yet. I get the feeling we now are. By the way, thank you for *not* biting my head of when I mentioned we weren't (I've got experiences otherwise ... :-\ ). I know what you mean. Nice to find civilized discourse for a change (I've read on in the thread). We old hands perhaps remember politer (and/or perhaps just more patient) times ... [] You use a PS2 keyboard I assume? Yep. One of the last ones in existence it seems. :-) It does, sometimes, doesn't it! (I always prefer to use PS2 - not only because it works from boot which USB often don't, but because it doesn't use up a USB socket, instead using a socket which would otherwise not be being used at all. Though I gather some motherboards - and certainly all laptops for quite a few years - no longer necessarily _have_ PS/2 sockets.) [] By the way: yesterday it happened again. This time I did not touch my keyboard, but physically dis- and reconnected it again. The sticky key was no more. Interesting; IME, any lack of detection of a PS/2 _mouse_ isn't usually restored by plugging it in again (USB ones _do_ re-detect); I don't think I've tried it with a keyboard. In other words: it does not seem to be a physical problem (might still be in the keyboards electronics, but as the moment of appearing seems to be bound to what I do in the OS I doubt that). [] -- J. P. Gilliver. UMRA: 1960/1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf As the man said when confronted by a large dinner salad, "This isn't food. This is what food eats." |
#23
|
|||
|
|||
How to make a double-click only affect the clicked-on file ?
On Saturday, April 8, 2017 at 2:42:04 AM UTC-6, R.Wieser wrote:
Lee, So the search tool was open and you were typing in the file name when it started misbehaving? I'm sorry, I see I was not too clear there. I just typed the filename while the focus was on the explorer window on the right (containing all the files). It behaves as a kind of auto-complete (jumping to the first file matching the first typed char, than on typing the second char to the file matching that one, and so on). Ok, I got it now. Thanks. When ever I've tried that or repeated same key presses it moves maybe three times and then it breaks entirely and autocomplete quits working, if indeed we can use that 'taken' name for this function.. Autocomplete for me is suggestions in a drop down box while you needed to see what was under the drop down box most of the time. To sum up those ramblings, it appears to be a random firing off of CTRL-TAB. ALT after that goes straight to the tool bar then. Does that sound feasible to you? I have no idea if its feasable. But I think its simpler: when you hold ALT down your keystrokes are regarded as "shortcut keys" and are send to the toolbar. If the ALT key "sticks" (on the keyboard itself, or being remembered by the OS as being down) they will (ofcourse) go to the toolbar too. Plausible might have been the better word choice there, but yeah I was asking for your thoughts at that point. But while that works for the ALT key, the problem that I'm having seems to be related to the SHIFT key (holding ALT down while selecting a file in explorer does not seem to do anything special). And that makes me realize that I seem to have (at least) *two* keys that act funny: SHIFT and ALT ... Yes, multiple issues seem to be afoot here too. I suggest you try to find a forum for your make and model of confuser and see if anyone in there also has your problem But I did ! :-) I was/am assuming that its a Win98 OS related problem (probably something in the line of the ALT-TAB not always working properly when switching to/from a full-screen CLI), so I posted it here. Noooo.... Not based on OS but your make and model. And then use the search function to whittle away the non-relevant stuff. When searching in a smaller database than this usenet archive you get more relevant hits and if it's a common problem because of the make and model you've just now hit the jackpot and a posted fix or workaround is almost a certainty. We still don't know why this happening mainly to you, it could be your make and model which I still don't know either. Perhaps someone has such a thing along the lines of a keyboard initializer, set it to go off when the focus changes every single time might possibly work. I did something like it: I found a windows build-in function which informs you when another program receives focus. I build a small program with which, when that happens, checks if the shift, control and/or alt keys are (still) down. If so, it pops up a message telling me so. Now lets see if it catches the problem situation (I already had it appear when pressing ALT-F4 :-) ) ... Regards, Rudy Wieser More information on your 'I build a small program' please, sounds very interesting. |
#25
|
|||
|
|||
How to make a double-click only affect the clicked-on file ?
On Saturday, April 8, 2017 at 8:56:46 AM UTC-6, R.Wieser wrote:
Lee, I noticed that the autocomplete jumps to the first intry matching the entered chars, regardless of if its a folder or a file. If its a folder than you need to use the cursor-keys to move past it and eventually other possibly matching folders to have it search the files. Also, any cursor-key movement or a few moments of not typing anything will reset the auto-complete. By cursor keys do you mean arrow keys? Otherwise I know not what you mean. I was not aware of the time element in this game, thanks for that tip. I do know that if you repeat the key it will move down say from folder to folder of the same starting letter until it hits the files and will do the same there too. But eventually it quits me anyway and I've not had the patience to stick with this approach for very long at all. Not knowing about the time element might the reason for that though and will have to keep that in mind next time I attempt it. If one has the accessibility options working the arrow key functions can exist in the numeric keypad as well. And by default there are alternatives to left side CTRL-A (select all), CTRL-Z (undo), CTRL-X (cut), CTRL-C (copy), and CTRL-V (paste), but I disremember what they are exactly since I'm not left handed. One of the accessibility options is turned on by six repeat hits of the CTRL key too, even it's turned off IIRC. One could lose their mind trying to keep up with all the possibles of this topic. Noooo.... Not based on OS but your make and model. I myself have the idea that the problem is OS related. When I would specify a make and model of my 'puter (don't know how to be honest, as I put the thing together myself -- and not even all parts where new when I did) I would actually be limiting the audience, and thus possible replies ... Understood, but you are limiting me from applying MY searching skills by keeping mum. Failing to buy a store bought computer assembled for you isn't a valid reason, you can offer up the motherboard model number instead. No one in here is going to go hmph and quit you because you went ChainTec instead of a good brand. I don't think the answer will be found in a group this large and old, the search engine here can't be trusted to find good results in my experience. It's certainly not categorized by problem or model such that you would disappear the moment you type ASUS 12345x or we would turn our noses up either. More information on your 'I build a small program' please, sounds very interesting. :-) It wasn't build using scripting I'm afraid. Since ever so long I've been using Assembly (the programming language) to put (small) stuff together. As, under Windows, Assembly directly talks to DLLs there is little I can't ask of them, and in turn the system. The downside of using Assembly is that I have to write *everything* myself. The upside is ofcourse that I *can* write everything myself. :-) Regards, Rudy Wieser I dabble in assembler myself, and not in the slightest concerned that you didn't go script kiddy on me either. We all play to our own strengths, to do otherwise is simply foolish. Still interested in more information but it's off topic and problems exist in relaying how your code is working anyway. |
#26
|
|||
|
|||
How to make a double-click only affect the clicked-on file ?
Lee,
By cursor keys do you mean arrow keys? Yep. Should have used that name. :-\ I do know that if you repeat the key it will move down say from folder to folder of the same starting letter until it hits the files and will do the same there too. You know that I had to check that ? I either never knew or, more likely forgot all about it. It seems to work only for the very first char though. Failing to buy a store bought computer assembled for you isn't a valid reason, you can offer up the motherboard model number instead. It certainly isn't a valid reason not to give a motherboards model number, but as I mentioned, I don't think its bound to the hardware, so specifying it would 1) limit my audience and 2) make people think so and make them look in the wrong direction(s). .... I've just tried to see if "systeminfo" would tell me what model and make my motherboard is, but it doesn't seem to do so. It'll have to wait until next time I'm taking the thing apart I guess (and maybe put it into a textfile somewhere. :-) ) I dabble in assembler myself, and not in the slightest concerned that you didn't go script kiddy on me either. I thought that Assembly programmers where a dying breed, rather seldom to find in the wild. :-) But I seldom mention forthright which language I'm using, as I've seen people stop responding to questions (mostly regarding the use of DLL functions) when I did so. Still interested in more information but it's off topic As far as I can tell this particular newsgroup allows for a *lot* of leeway. As long as its not overtaking the groups origional purpose ofcourse ... The relevant call is "SetWinEventHook" (in user32.dll) which I instruct to listen to EVENT_SYSTEM_FOREGROUND only. When that one fires I use "GetAsyncKeyState" to check the VK_ALT, VK_CTRL and VK_SHIFT keys and see if any is pressed*. If so, I pop up a modal message-box. Currently thats about all. I noticed that I could probably include a check if the new-focussed window is a popup, and than ignore it. *Though I'm currently not even sure if "GetAsyncKeyState" is the right call to check for the sticky key ... Regards, Rudy Wieser -- Origional message: Lee schreef in berichtnieuws ... On Saturday, April 8, 2017 at 8:56:46 AM UTC-6, R.Wieser wrote: Lee, I noticed that the autocomplete jumps to the first intry matching the entered chars, regardless of if its a folder or a file. If its a folder than you need to use the cursor-keys to move past it and eventually other possibly matching folders to have it search the files. Also, any cursor-key movement or a few moments of not typing anything will reset the auto-complete. By cursor keys do you mean arrow keys? Otherwise I know not what you mean. I was not aware of the time element in this game, thanks for that tip. I do know that if you repeat the key it will move down say from folder to folder of the same starting letter until it hits the files and will do the same there too. But eventually it quits me anyway and I've not had the patience to stick with this approach for very long at all. Not knowing about the time element might the reason for that though and will have to keep that in mind next time I attempt it. If one has the accessibility options working the arrow key functions can exist in the numeric keypad as well. And by default there are alternatives to left side CTRL-A (select all), CTRL-Z (undo), CTRL-X (cut), CTRL-C (copy), and CTRL-V (paste), but I disremember what they are exactly since I'm not left handed. One of the accessibility options is turned on by six repeat hits of the CTRL key too, even it's turned off IIRC. One could lose their mind trying to keep up with all the possibles of this topic. Noooo.... Not based on OS but your make and model. I myself have the idea that the problem is OS related. When I would specify a make and model of my 'puter (don't know how to be honest, as I put the thing together myself -- and not even all parts where new when I did) I would actually be limiting the audience, and thus possible replies ... Understood, but you are limiting me from applying MY searching skills by keeping mum. Failing to buy a store bought computer assembled for you isn't a valid reason, you can offer up the motherboard model number instead. No one in here is going to go hmph and quit you because you went ChainTec instead of a good brand. I don't think the answer will be found in a group this large and old, the search engine here can't be trusted to find good results in my experience. It's certainly not categorized by problem or model such that you would disappear the moment you type ASUS 12345x or we would turn our noses up either. More information on your 'I build a small program' please, sounds very interesting. :-) It wasn't build using scripting I'm afraid. Since ever so long I've been using Assembly (the programming language) to put (small) stuff together. As, under Windows, Assembly directly talks to DLLs there is little I can't ask of them, and in turn the system. The downside of using Assembly is that I have to write *everything* myself. The upside is ofcourse that I *can* write everything myself. :-) Regards, Rudy Wieser I dabble in assembler myself, and not in the slightest concerned that you didn't go script kiddy on me either. We all play to our own strengths, to do otherwise is simply foolish. Still interested in more information but it's off topic and problems exist in relaying how your code is working anyway. |
#27
|
|||
|
|||
How to make a double-click only affect the clicked-on file ?
On Sunday, April 9, 2017 at 1:34:36 AM UTC-6, R.Wieser wrote:
Lee, I do know that if you repeat the key ... You know that I had to check that ? I either never knew or, more likely forgot all about it. It seems to work only for the very first char though. Well that works both ways, you've been teaching me right along too. Yes, only working well on the first character. ... I've just tried to see if "systeminfo" would tell me what model and make my motherboard is, but it doesn't seem to do so. It'll have to wait until next time I'm taking the thing apart I guess (and maybe put it into a textfile somewhere. :-) ) Somehow I knew this would be the outcome. hee, hee. If it weren't for the fact that my 1997 $125 JDR ChainTec special came with a motherboard manual with the number on the front cover I wouldn't know it either. And then I lost it for a while so I did have to tear it down and look, then archive that info into a text file, download the manual and most recent BIOS too. Builders should do that day one, but we never do - having too much fun with the new toy. Here is a free tip - don't store your motherboard manual PDF on the same machine. You can of course, but if you also store a copy on a different box you can maybe get at it easier if God forbid something happens and the 1st box won't boot no more? But I seldom mention forthright which language I'm using, as I've seen people stop responding to questions (mostly regarding the use of DLL functions) when I did so. Still interested in more information but it's off topic As far as I can tell this particular newsgroup allows for a *lot* of leeway. As long as its not overtaking the groups origional purpose ofcourse ... I was reluctant as to posting of voluminous source code, you've found a way to shortcut that issue, thanks. The relevant call is "SetWinEventHook" (in user32.dll) which I instruct to listen to EVENT_SYSTEM_FOREGROUND only. When that one fires I use "GetAsyncKeyState" to check the VK_ALT, VK_CTRL and VK_SHIFT keys and see if any is pressed*. If so, I pop up a modal message-box. Currently thats about all. I noticed that I could probably include a check if the new-focussed window is a popup, and than ignore it. *Though I'm currently not even sure if "GetAsyncKeyState" is the right call to check for the sticky key ... Regards, Rudy Wieser Well I'm not sure either since I haven't run down all the dll calls available. It does seems to work somewhat and that's better than a poke in the eye with a sharp stick any day. I've seen some info on the finer details of the insides of a dll call, how it processes states, etc., and it's an interesting read whenever I stumble upon those and I know instinctively that this particular page gets about one visit per month if that. But I don't know where to start doing what you've done and that might be the reject factor when trying to discuss this method before - your audience doesn't know either and therefore can't begin to help much. I am almost a master with the lowly 6502 on the mighty Atari 8 bit and very much a noob with x86 but have been able to monkey around with the source to aefdisk which went open source on GitHub just last year - the author is done with working on it so posted source of a derivative of the last free (with two defeated functions) and commercial version he was offering for decades. It was somewhat defective source and with help at msfn got the fix put in. MetaPad source is also out there somewhere, it needs a slap or two upside the head as well. |
#28
|
|||
|
|||
How to make a double-click only affect the clicked-on file ?
In message , Lee
writes: [] exist in the numeric keypad as well. And by default there are alternatives to left side CTRL-A (select all), CTRL-Z (undo), CTRL-X (cut), CTRL-C (copy), and CTRL-V (paste), but I disremember what they are exactly since I'm not left handed. One of the accessibility options [] IIRR, they (or at least some of them) involve some of the keys in the "six-pack". I _am_ left-handed, but find the Ctrl+ options very convenient: maybe because I once learnt to play piano I don't find use of the little finger difficult. (I also find Alt-space then C easier than Alt-F4, and Alt-space then x - with Alt-space then enter to restore - easier than mouse, especially if my hands are on the keyboard anyway.) -- J. P. Gilliver. UMRA: 1960/1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf User Error: Replace user, hit any key to continue. |
#29
|
|||
|
|||
How to make a double-click only affect the clicked-on file ?
In message , Lee
writes: On Sunday, April 9, 2017 at 1:34:36 AM UTC-6, R.Wieser wrote: [] ... I've just tried to see if "systeminfo" would tell me what model and make my motherboard is, but it doesn't seem to do so. It'll have to wait until next time I'm taking the thing apart I guess (and maybe put it into a textfile somewhere. :-) ) Somehow I knew this would be the outcome. hee, hee. If it weren't for the fact that my 1997 $125 JDR ChainTec special came with a motherboard manual with the number on the front cover I wouldn't know it either. [] Belarc often has a reasonable stab at identifying the mobo. I _think_ that works under '9x, or at least I think older versions did. -- J. P. Gilliver. UMRA: 1960/1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf User Error: Replace user, hit any key to continue. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Spybot opens when I double-click on a hosts file, how do I make itopen Notepad? | SlickRCBD[_2_] | General | 5 | July 21st 08 04:57 AM |
Programs won't run with double-click or from menus until batch file run | [email protected] | General | 5 | July 30th 05 05:24 AM |
double click to open file not working for Office | B.Long | Software & Applications | 0 | September 13th 04 01:35 PM |
Double click not working | Sue | General | 1 | July 20th 04 06:39 PM |
Problem with Mouse Click / Double-Click | Steve Clements | General | 11 | July 8th 04 03:35 AM |