Jump to content

Recommended Posts

I realise that HotKeySet function is valid for all other windows while the script is running.When I run the program and just enter an url in the address bar of my browser the HotKeySet function for ENTER button activates in the script.How can i avoid this?

Change your script to use Alt+Enter instead. Or Ctrl+Enter or Shift+Enter, etc.
Link to post
Share on other sites

I find that pretty annoying too, but it's very useful most of the times. I don't know if there's an easier/more efficient way of doing it, but this is what I thought:

#include <GUIConstants.au3>

$Form1 = GUICreate("My Gui", 349, 174, 208, 128)

While 1
    If GUIGetMsg() = $GUI_EVENT_CLOSE Then Exit
    If WinActive($Form1) Then

Func hello()
Link to post
Share on other sites

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...