wolfgangbeyer Posted December 27, 2020 Posted December 27, 2020 (edited) Hi, probably a simple question: How can I get the actual number of characters in keyboard buffer? I have the problem, that AutoIt obviously proceeds after a send() statement even if some characters to send are in the keyboard buffer yet. Thank you for any hint! Edited December 27, 2020 by wolfgangbeyer writing mistake
Nine Posted December 27, 2020 Posted December 27, 2020 Please post a snippet of the code that you have problem with. Use this tool when posting code. Make sure we can replicate your issue. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
wolfgangbeyer Posted December 27, 2020 Author Posted December 27, 2020 Hi Nine, is it a known feature of the send() command, not to wait for an empty keyboard buffer when sending the next character? A code snippet for replication of my issue is not easy, because the problem arises perhaps in case of the interaction with Thunderbird, which receives the characters. Perhaps Thunderbird has an own buffer? I like to use AutoIt to send about 200 emails containing different parameters. I use a template with placeholders which are replaced by AutoIt via an Excel database. For analysing the problem I have placed a beep() statement after sending the last character of each email. Then I hear these beeps often before the last character of the email text appears on the screen.
Nine Posted December 27, 2020 Posted December 27, 2020 2 hours ago, wolfgangbeyer said: A code snippet for replication of my issue is not easy, "Not easy" is most probably the synonym of "I don't want to make an effort, so find a solution for me". Well good luck with this approach. BTW using Send function is the worst way to automate an application. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Moderators Melba23 Posted December 28, 2020 Moderators Posted December 28, 2020 wolfgangbeyer, Quote I like to use AutoIt to send about 200 emails containing different parameters That sounds a lot like spamming. Just why do you need to send so many? M23 P.S. And just to be absolutely clear - this is the Mod team determining the legality of the thread, so everyone else please keep out. Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
wolfgangbeyer Posted December 28, 2020 Author Posted December 28, 2020 (edited) @Nine: I never wanted anybody to find a solution for me. I simply had 2 questions: How getting the number of characters in keyboard buffer? And is it a known feature of the send() command, not to wait for an empty keyboard buffer when sending the next character? I don’t think that you like to make the effort to test code snippets in combination with Thunderbird which is probably unable to except keys when just sending an email. So far I see it is not easy to reproduce this issue. Instead of simply naming send() the worst way to automate an application you could recommend a better alternative. I should mention that in Thunderbird ControlSend() is not possible. @Melba23: Do you think that people who really like to send spam use AutoIt? I think there are more professional tools. I'm living in a collective with 200 people in 5 buildings and I just organize an relocation of our cloud from GroupOffice to Nextcloud. In this special context an answer to my questions would be helpful. I'm surprised about these unfriendly answers ... Edited December 28, 2020 by wolfgangbeyer Hint according to ControlSend() added
Moderators Melba23 Posted December 28, 2020 Moderators Posted December 28, 2020 wolfgangbeyer, Quote Do you think that people who really like to send spam use AutoIt? Yup - as experience has shown this to be the case and so why I asked you the direct question. Nothing unfriendly about it - just doing the job the site owner and AutoIt creator has asked me to do as a Moderator here. However, as you have given a perfectly reasonable explanation of why you need to do what you indicated I am content to leave the thread open. Good luck with finding an answer to your question - especially with the attitude you have just shown above. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Confuzzled Posted January 1, 2021 Posted January 1, 2021 Are you sending special characters that SEND has heartburn with?
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