kiennv159 Posted February 27, 2011 Share Posted February 27, 2011 Tôi thấy rõ sự khác biệt giữa 2 phím LShift & RShift khi dùng hàm trên! ai có thể giải thích và khắc phục tình trạng này? đây là code rút gọn của tôi For $i = 0 to 127 HotKeySet(Chr($i), "checkpresskey") Next While 1 Sleep(80) WEnd Func checkpresskey() HotKeySet(@HotKeyPressed) Send(@HotKeyPressed) EndFunc nó hoàn toàn chạy nhưng gặp vấn đề sau: -bạn hãy chạy chương trình và mở Notepad lên và nhập vào chuỗi sau vd: "kien_nguyen330" -với phím (_) được ấn bằng Left Shift thì ổn cả, còn Right Shift thì "kien_NGUYEN##)" -không chỉ (_) mà các chữ sau khi dùng Right Shift cũng đều bị kẹt vậy mọi ý tưởng đều giúp tôi rất nhiều SOSASCII.au3 Link to comment Share on other sites More sharing options...
UEZ Posted February 27, 2011 Share Posted February 27, 2011 Xin lỗi, nhưng bạn phải viết bằng tiếng Anh, nếu không có lẽ hầu hết những người dùng không thể giúp bạn. Tôi biết có một số diễn đàn Tiếng Việt ra khỏi đó mà bạn có thể truy cập nếu bạn không thể viết bằng tiếng Anh. Br, UEZ kiennv159 1 Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
kiennv159 Posted February 27, 2011 Author Share Posted February 27, 2011 Vietnamese some forums do not really quick enough, and I will try to use English to explain the problem. this code is made clear my problem For $i = 0 to 127 HotKeySet(Chr($i), "checkpresskey") Next While 1 Sleep(80) WEnd Func checkpresskey() HotKeySet(@HotKeyPressed) Send(@HotKeyPressed) EndFunc you open Notepad and try to run into the following string eg: "kien_nguyen330. " -if key (_) is typed by RShift + - the result would be: "kien_NGUYEN # #)". that's my problem. LeftShift use the good running Who can help me? Link to comment Share on other sites More sharing options...
czardas Posted February 27, 2011 Share Posted February 27, 2011 I have no idea what you are doing, but not all ascii characters are keys on the keyboard. Perhaps it would help if you post the original code. kiennv159 1 operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
kiennv159 Posted February 27, 2011 Author Share Posted February 27, 2011 I have code that is shortened. my problem is, can navigate key RShift to LShift ?. because the Left Shift is normal operation I always wait latest contribution Link to comment Share on other sites More sharing options...
czardas Posted February 27, 2011 Share Posted February 27, 2011 It looks like you have pressed CAPS LOCK. Perhaps it has something to do with your keyboard being different. kiennv159 1 operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
kiennv159 Posted February 27, 2011 Author Share Posted February 27, 2011 I affirm that does not happen you run that code and open the text to look away. type "kien_nguyen ..." or anything but similar. use the Right Shift key, the problem appears Link to comment Share on other sites More sharing options...
czardas Posted February 27, 2011 Share Posted February 27, 2011 (edited) Yeah, it's strange. It stops doing it after you repeat the key presses. I have no idea why it does that. Edited February 27, 2011 by czardas kiennv159 1 operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
kiennv159 Posted February 27, 2011 Author Share Posted February 27, 2011 I know the Shift key can be maintained without the impact of the hand. It is using the keyboard but I do not know what it's keystrokes. I'm sure that an accident has enabled key combination that raises issues Link to comment Share on other sites More sharing options...
czardas Posted February 27, 2011 Share Posted February 27, 2011 (edited) You should look again at the Send Command list in the help file. Look at the list of keys. It gives {RSHIFT} for sending the right shift key. The method you are using is not clear to me, nor correct in my opinion. Edited February 27, 2011 by czardas kiennv159 and truonghieuhust 2 operator64 ArrayWorkshop 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