Public-AutoHotKey-Scripts icon indicating copy to clipboard operation
Public-AutoHotKey-Scripts copied to clipboard

contiuity erros with function: gui_search()

Open Nollikino opened this issue 9 years ago • 1 comments

I've found a bug with the function gui_search().

If you cancel a command that uses this function, after the GoSub command "gui_search_add_elements" finds a match, then the variable "search_urls" is not cleared.

Because of this, when you then use the function once again, it will run the cancelled command aswell as the new command that you launched.

I've solved it for my part by making the script clear the variable when the GuiEscape GoSub is called.

Here is the code:

GuiEscape:
    gui_destroy()
    search_urls := 0
    return

Nollikino avatar Mar 15 '16 10:03 Nollikino

This solution seems not to work (anymore). The issue should be fixed with my pull request.

a-nau avatar Feb 12 '21 16:02 a-nau