Jump to content

Recommended Posts

Posted (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 by wolfgangbeyer
writing mistake
Posted

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.

Posted
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.  

  • Moderators
Posted

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.

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Posted (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 by wolfgangbeyer
Hint according to ControlSend() added
  • Moderators
Posted

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...