Sign in to follow this  
Followers 0
JonBMN

Mouse click buffering

8 posts in this topic

I have a basic script that takes the mouse input on a button like so:

Local $msg, $Button, $GUIhandle, $response = ""
 
$GUIhandle = GUICreate("example", 680, 575)
$Button       = GUICtrlCreateButton("example", 260, 5, 30)
 
While 1
    $msg = GUIGetMsg()
    If $msg = $Button Then
        ExampleFunct()
        ExitLoop   
    EndIf
    If $response <> "" Then
        msgbox(0, "", $response)
    EndIf
Wend
 
Func ExampleFunct()
    $response = "respond"
EndFunc

 

Yet, If I kill this program and start it up after hitting the button with the left click 2-3 times, I will start it again and it will click the button on its own (like its buffered).

Share this post


Link to post
Share on other sites



JonBMN,

That code needs a GUISetState to show the GUI, it exits as soon as you press the button because you have an ExitLoop in there, and as you never reset the $response variable the MsgBox will fire an infinite number of times regardless of the number of times you press the button. :(

So as it stands it is a pretty poor attempt at a reproducer script. How about posting something that actually does exhibit what you say happens. ;)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Thank you for the condescending statement melba, I will post a reproducer script that I have been testing to make sure it actually reproduces the error.

Stay tuned I should have it up soon.

EDIT: Sorry I posted code that wasn't exactly suppose to reproduce the error it was suppose to just give you a visual. I really shouldn't have posted the code, and just asked the question knowingly that you would assume the latter.

Edited by JonBMN

Share this post


Link to post
Share on other sites

Wow, an attitude like that and you expect help on this forum? Good luck...


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

JonBMN,

I see you are living up to your previous reputation(s). I never really expected anything else, but it still is disappointing to see.... :(

Waiting for the code - but I will only look at it after the England game. Best they win... ;)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

 

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Thank you for the condescending statement melba, I will post a reproducer script that I have been testing to make sure it actually reproduces the error.

Stay tuned I should have it up soon.

EDIT: Sorry I posted code that wasn't exactly suppose to reproduce the error it was suppose to just give you a visual. I really shouldn't have posted the code, and just asked the question knowingly that you would assume the latter.

When EVER you criticize someone, you look foolish. I'm the first to admit I'm being foolish and hypocritical right now in fact just telling you this for I'm doing exactly what I'm telling you not to do. Being the better man means holding your tongue and showing ill will toward none. Again, I fail at this.

Steve is trying to help you. True, his reply was a bit critical of your code, however your response was not good either. Be the better man here and not slap the hand that is helping you.

A dog will not like you if you abuse it. Humans are no different.

Again, I'm being hypocritical in saying all this.

Edited by MBALZESHARI

Share this post


Link to post
Share on other sites

After all this I'm just done with this forum. Yes Steve I have a reputation for calling you out. You think that looks good on both of us? I know it doesn't look good on me, but I don't take anyone's shit. You wanted the job of moderator? Act like you actually care about the people that come to this forum, instead of just dancing around throwing little insults here and there because it makes you feel better about yourself.

I will say, I do feel bad for people that think they are being foolish and hypocritical to speak their mind, even when they, it seems, are trying to help someone. I'd rather not be in a place like this, and subject myself to criticism, just to be told that my criticism shouldn't be heard. You'd think the one place that someone could speak their mind and combat someone that is demeaning them would be the internet, but that is not the case here.

It's amazing to me everyone does not see this. Teachers are told to go back to school because they do not know everything, why can't I tell Steve that his attitude is bad and that he needs to take a step back? Guess I will never know.

Goodbye.

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

JonBMN,

I rather do care for the people who come to this forum - as a glance through a selection of my posts will show. What I do not care for is the small minority who make no effort and still expect help - under which category I would file a post containing a reproducer script that does not even run. ;)

As to "calling me out" - a search of posts where both you and I have posted shows a lot of "Thanks" from you, so I am at a complete loss to understand what you are talking about. Yes, I have "called you out" on the politeness stakes a few times - hence my remark about "reputation". Not to mention the PM exchange we had about ZiggyStardust and you sharing an IP - now there was an object lesson in how to antagonise a Mod (and a Dev at the same time) - but strangely enough you remained a member able to post and no action was taken against you. :)

I suggest a little look in the mirror - but as you will never read this I am not really ready to waste anymore time on you. :bye:

M23

Edit: And if you change your mind about leaving - you may find it harder to come back than you think. :D

Edited by Melba23

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0

  • Similar Content

    • X_xkijux_x
      By X_xkijux_x
      Ok so im using this program. clarify for school. I would like to have a program that takes every word i type in microsoft word and searches on it in claryfi. is this possible. I would like to have the program not stopping me from typing more after that word. Like when i type a word it auto search it on clarify without making me stop typing and if i want to change i can do that and if im fine that word i can just keep typing and it will search after the next word. 
    • Miliardsto
      By Miliardsto
      Is this possible to make program works like in diagram? There is so much encryption methods and UDFs are they give security? If the $Address will be crypted with some encryption algorithm could be possible to get the value of $Address in easy way? Of course We know its easy too look into autoit code and get value of variable and so We dont want to anyone see $Address value - there are functions Could func1.au3, func2.au3.. be for example func1.php or other type of file? As we know .php files are unnable to see. For example func1 would be read by FileRead() and then Execute() Is this generally possible to do?
      Will it give secure?
      What do you think about? Maybe there is something wrong in this concept or missed.

    • JaredStroeb
      By JaredStroeb
      I need to open an application and send it keys in Session 0.  I have exe's working locally, I can see the application open in session 0 through interactive services, but my send commands do not go to the application.  The following article running-autoit-session-0, directs me to use ControlSend() however my application has no controls that can be identified by AutoIt v3 Window Info.  Get All Windows Controls also returned nothing for the application's handle.  
      What are my options?  
      Can this be done with AutoIt?
      Is there a different "relatively simple" library/tool to use? (I am familiar with C# if there is a viable library there )

       
    • nassausky
      By nassausky
      Hey all,
      Has anyone created any queries for youtube? I was thinking it might be something like this but can't quite figure it out:
      $oIE = _IECreateEmbedded() _IENavigate($oIE,"https://www.youtube.com") Local $oForms = _IETagNameGetCollection($oIE, "form") Local $sTxt = "" For $oForm In $oForms If $oForm.id = "masthead-search" Then $oInputs = _IETagNameGetCollection($oIE, "input") For $oInput In $oInputs If $oInput.id = "masthead-search-term" Then _IEFormElementSetValue($oInput, "cards") _IEFormSubmit($oForm) EndIf Next EndIf Next  
    • Skysnake
      By Skysnake
      Scite comes up occasional, almost incidentally, in some support topics.  I have not found a "Scite" topic in the forums, so this is where I will start.  I have recently been using Scite intensively, specifically with a large project and I have certain issues.  I know that Scite is not an AutoIt product, but it is so closely integrated to the core release that it makes sense to raise issues and request support here.  If this is not the right please refer me to the right forum.
      Thx
       
      Skysnake