Jump to content

[solved] help with hotkeys


Recommended Posts

is there a way to set the mouse as a hotkey?

tried search, couldnt find anything that helps

HotKeySet("!z", "getWindowname")

while 1
    sleep(100)
WEnd

Func getWindowname()
HotKeySet("!z", "getWindowname")
$wn = MouseGetPos()
$window=WinGetTitle($wn)
Msgbox(0, "result", $window)
EndFunc

how can i adjust my code to set mouse as hotkey?

this code is an improvement to one of my programs, when the program is run i want the user to be able to select a window to record text from it by clicking

currently, the user has to type in the exact name of the window, i already have the text recording code ready, so i dont need that

and currently, this is a test script, which is set to record a window name when the mouse is positioned over that winder and Alt-z is pressed

is there a way to set my code to record the window name when that window is clicked? preferably "right" clicked, or anything which avoids the left click

thanks in advance ^_^

Edited by snowman533

Intermediate AutoIt/Autohotkey User

Link to comment
Share on other sites

tried:

HotKeySet("Mouse1", "getWindowname")

HotKeySet("Mouse2", "getWindowname")

HotKeySet("Mouse3", "getWindowname")

none worked

i mean nothing happens when you click on a window with the set mouse button

Edited by snowman533

Intermediate AutoIt/Autohotkey User

Link to comment
Share on other sites

tried:

HotKeySet("Mouse1", "getWindowname")

HotKeySet("Mouse2", "getWindowname")

HotKeySet("Mouse3", "getWindowname")

none worked

i mean nothing happens when you click on a window with the set mouse button

I never said you could use HotKeySet() for this.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...