Lazycat Posted December 8, 2007 Share Posted December 8, 2007 (edited) Note: right now this is not too usable!I'm tired to implement accelerators as plain Autoit code. Code is work, but noticeable slowdown responce to menu commands, called by mouse clicks. I think the problem with TranslateAccelerators, that executes outside the main Autoit message queue. This also don't work in event mode.If someone have an idea how to solve those issues (without modifying Autoit ) - you are welcome. But probably the best if accelerators will be standard Autoit ability - this is rather simple and should not add a many to size.AccelTable.au3Edit: For those who interesting what this thing for. Accelerator tables allow setup hotkeys for GUI (menu) commands. The difference with standard HotKeySet - hotkey not set globally, it's work only for current GUI. More information at MSDN: http://msdn2.microsoft.com/en-us/library/ms674703.aspx Edited December 9, 2007 by Lazycat Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
therks Posted December 8, 2007 Share Posted December 8, 2007 Awesome! This code is great, and I'd been told that accelerators were not possible at all until they were built in. Guess you showed me LazyCat. Also, I'm glad to see that someone besides me is still interested in having accelerators added to AutoIt. You should tack on something like "GUI-specific hotkeys" to the topic description, just to catch the attention of those who don't know what accelerators are. My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
Zedna Posted December 8, 2007 Share Posted December 8, 2007 This is awesome Lazycat!!! I think the best would by if Jon can take this code and implement it as native AutoIt functionality.He has "Accelerator table for GUI" mentioned in his ToDo list Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Zedna Posted December 8, 2007 Share Posted December 8, 2007 Bad news On my WIN98SE with AutoIt 3.2.8.1 it's not working. - I must add Global Const $WM_COMMAND = 0x0111 - but it's not problem - nothing happens (only ding sound) if any keyboard shortcut is invoked - Ctrl+O or Alt+X Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
weaponx Posted December 8, 2007 Share Posted December 8, 2007 (edited) I have no clue what this does. Can you put up a description for those who aren't familiar? EDIT: Punctuation error Edited December 9, 2007 by weaponx Link to comment Share on other sites More sharing options...
Valik Posted December 8, 2007 Share Posted December 8, 2007 I have no clue what this does. Can you put up a description for those who aren't familiar.I guess MSDN and/or Google would be too much work? Link to comment Share on other sites More sharing options...
weaponx Posted December 9, 2007 Share Posted December 9, 2007 (edited) I guess MSDN and/or Google would be too much work?When you sell a car do you write a description of it, or do you let people search for the generic description on Google? Edited December 9, 2007 by weaponx Link to comment Share on other sites More sharing options...
Valik Posted December 9, 2007 Share Posted December 9, 2007 When you sell a car do you write a description of it, or do you let people search for the generic description on Google?This is really a poor analogy. You're looking for information on cars in general, not specific information about a specific model of car.You state (although you really asked but you used a period instead of question mark):I have no clue what this does. Can you put up a description for those who aren't familiar.You are asking for no information which can't be answered by doing your own work searching in the internet. And based on some very simple logic, you don't know what it is, therefore you don't need this feature. If you want to know what it is, learn about it on your own time and stop harassing us to teach you things that are well documented. Link to comment Share on other sites More sharing options...
weaponx Posted December 9, 2007 Share Posted December 9, 2007 This is really a poor analogy. You're looking for information on cars in general, not specific information about a specific model of car.This is a perfect analogy considering any used car could have service history, upgrades, accident history, etc.... You state (although you really asked but you used a period instead of question mark):You are asking for no information which can't be answered by doing your own work searching in the internet. And based on some very simple logic, you don't know what it is, therefore you don't need this feature. If you want to know what it is, learn about it on your own time and stop harassing us to teach you things that are well documented.I've never harrassed anyone in these forums nor do I ever intend to. I wish you would stop harrassing me with the passive aggressive dissection of my posts. There is no need to address every single line of a paragraph. All I asked for was a description of an example script, how am I to know such a concept is used beyond AutoIt? When I see an example script posted like Auto3Lib am I supposed to check google first? Link to comment Share on other sites More sharing options...
martin Posted December 9, 2007 Share Posted December 9, 2007 (edited) @ValikI guess MSDN and/or Google would be too much work?Can you explain why you thought it worthwhile responding in this way to weaponx's post, but had nothing to say about Saunders' remark about " those who don't know what accelerators are." Are you singling weaponx out or is he just unlucky?(I'm not asking you to explain why you put your comments in such an unnecessarily scarcastic and unpleasant way because I realise that is beyond explanation.)you don't know what it is, therefore you don't need this feature.That's not simple logic - it's simply wrong. Plenty of people might not know what white blood cells are; does that mean they don't need them?If you addressed people in the way that you would like people to address you I'd have thought a lot of people would be happier. Edited December 9, 2007 by martin Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Valik Posted December 9, 2007 Share Posted December 9, 2007 (edited) This is a perfect analogy considering any used car could have service history, upgrades, accident history, etc....It's a stupid analogy, but then, since you came up with it, I guess I shouldn't really expect you to understand why it doesn't apply.I've never harrassed anyone in these forums nor do I ever intend to.I call it harrassment when you ask for basic information that can be obtained in 5 minutes by using the internet.I wish you would stop harrassing me with the passive aggressive dissection of my posts.Then stop posting stupid stuff.There is no need to address every single line of a paragraph.Why not? When the entire thing is full of flaws.All I asked for was a description of an example script, how am I to know such a concept is used beyond AutoIt?No, you asked what accelerator tables do. Basic information that's covered on the web.When I see an example script posted like Auto3Lib am I supposed to check google first?That depends on if you're asking something AutoIt-related or something related to the API itself.Incidentally, maybe in the future you should re-think your responses when somebody calls you out on something. You antagonize me with your pathetic analogy and then attempt to paint me up as the bad guy because I call you on it. Your cries of "he's harassing me" might not fall on deaf ears if you'd actually took my not so subtle hint and the obligatory lashing and tried to learn something on your own instead of argue with me.Put more succinctly, and I'm about to use an analogy correctly, you and martin should watch how this works. If you climb into a bear's cage and beat a stick on the bars to attract the bear's attention, don't act all surprised when the bear comes over and sodomizes you.That's not simple logic - it's simply wrong. Plenty of people might not know what white blood cells are; does that mean they don't need them?What is this, bad analogy day? But I see what you did there, you're attempting to latch onto the word need and give it more significance than it deserves (I suppose that's my fault for writing lazy English). The difference, and it's rather fundamental, between white blood cells and knowledge of accelerator tables is knowledge of accelerator tables is something that you must consciously apply. You must know about it in order for it to be used. It's not mandatory for somebody to know about white blood cells for them to still function. That is a key distinction which renders your analogy useless.Edit: Just saw your edit:Can you explain why you thought it worthwhile responding in this way to weaponx's post, but had nothing to say about Saunders' remark about " those who don't know what accelerators are." Are you singling weaponx out or is he just unlucky?Saunder's isn't asking what accelerator tables are. He knows and I know he knows. He's wanted them for years.(I'm not asking you to explain why you put your comments in such an unnecessarily scarcastic and unpleasant way because I realise that is beyond explanation.)If you really wish to get onto the subject of things that are unnecessary, I can think of a couple that wouldn't be missed. Do you want to go down that road?If you addressed people in the way that you would like people to address you I'd have thought a lot of people would be happier.When I actually do wish for a response from somebody, I am civil with them. I wasn't interested in a response from weaponx, I was interested in him shutting up and taking the hint and applying the hint in the future instead of posting questions. That being said, it is not my goal in life to make people happy. Edited December 9, 2007 by Valik Link to comment Share on other sites More sharing options...
JustinReno Posted December 9, 2007 Share Posted December 9, 2007 I call it harrassment when you ask for basic information that can be obtained in 5 minutes by using the internet.You call asking information without using Google harrassment? Link to comment Share on other sites More sharing options...
weaponx Posted December 9, 2007 Share Posted December 9, 2007 If you want to know what it is, learn about it on your own time and stop harassing us to teach you things that are well documented. Valik, you need not forget that this is a community and not everything is written in machine language. Just because you understand it doesn't mean the community does. With more details, issues can be expedited in a timely fashion and new concepts can reach a wider audience.Look through my post history and show me where I have ever even asked for help. You will find less than 5 posts, so please avoid insulting my intelligence as a programmer. I am only here to help others and learn from them as well. Link to comment Share on other sites More sharing options...
Valik Posted December 9, 2007 Share Posted December 9, 2007 harass1.to disturb persistently; torment, as with troubles or cares; bother continually; pester; persecute.I have marked the pertinent parts in bold. User's who fail to use the resources available to them (Google, MSDN, the forum search, the help file, et cetera) bother the forum continually pestering and persistently disturbing us for information they can obtain on their own. Link to comment Share on other sites More sharing options...
JustinReno Posted December 9, 2007 Share Posted December 9, 2007 (edited) Who said, besides you, that WeaponX is disturbing us? People ask those questions quite often.Edit:And, he is not asking the question continually or persistenly. Edited December 9, 2007 by JustinReno Link to comment Share on other sites More sharing options...
Valik Posted December 9, 2007 Share Posted December 9, 2007 Valik, you need not forget that this is a community and not everything is written in machine language. Just because you understand it doesn't mean the community does.I'm not sure what my ability to understand things has to do with users who obstinately refuse to use non-AutoIt-Forum releated resources to acquire knowledge.With more details, issues can be expedited in a timely fashion and new concepts can reach a wider audience.How's this for a timely fashion. I spent 15 seconds to type "Accelerator Table" into Google, click the first link to Wikipedia and read the first paragraph which explains what Accelerator Tables are.Now, would you like to know how you should have handled this situation? Once I mention MSDN/Google, instead of coming back at me, you should have done that. If you really want to "help the community" and all that, you could have posted the linke to the resource you found so others who don't know what Accelerator Tables are could read what you read. Rather than do that, you choose to banter words and play victim. Link to comment Share on other sites More sharing options...
Valik Posted December 9, 2007 Share Posted December 9, 2007 Who said, besides you, that WeaponX is disturbing us? People ask those questions quite often.Edit:And, he is not asking the question continually or persistenly.If I were you, I'd keep your dog out of this "fight". You clearly lack the requisite English comprehension abilities necessary to keep up. If you'll notice, and this was very deliberate, I stated users and did not name anybody in particular. What weaponx has done makes him just another user in a plague on this forum (or the internet in general) where people, for whatever reason, refuse to use publicly available repositories of information to acquire knowledge. Instead they wish to solicit for the information so that it's delivered to them instead of seeking it on their own. Link to comment Share on other sites More sharing options...
JustinReno Posted December 9, 2007 Share Posted December 9, 2007 Oh, OK, well that clears things up for me. Link to comment Share on other sites More sharing options...
weaponx Posted December 9, 2007 Share Posted December 9, 2007 A simple Google search provided the necessary closure I needed. Link to comment Share on other sites More sharing options...
therks Posted December 9, 2007 Share Posted December 9, 2007 (edited) Wow, I'm sad. I saw that this post had like 17 new posts (after mine) and thought that maybe it was getting some good attention.Lose. Missed the T in "this" somehow Edited December 9, 2007 by Saunders My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now