Jump to content
Sign in to follow this  
snowman533

[solved] help with hotkeys

Recommended Posts

snowman533

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

Share this post


Link to post
Share on other sites
snowman533

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

Share this post


Link to post
Share on other sites
FinalVersion

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.

Share this post


Link to post
Share on other sites
snowman533

then you are not helping

is there a way to set a mouse as hotkey or not? provide an example

i cannot find anything that helps me in search, neither can i in help


Intermediate AutoIt/Autohotkey User

Share this post


Link to post
Share on other sites
BigDod

Have a look at This topic



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites
snowman533

Thanks BigDod

solved


Intermediate AutoIt/Autohotkey User

Share this post


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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.