Good!
I'm making one script to press one key (PAUSE) and it stays pressing and releasing mouse left click.
But i want to press F1 and a tooltip shows up: "Please select the Key". And after that, instead PAUSE sends left mouse clicks, it send the key the user pressed on keyboard. Better if it detects multiples key too.
I've:
#include<IE.au3>
#include <Misc.au3>
HotKeySet("{ESC}" , "close")
HotKeySet("{PAUSE}" , "startpause")
HotKeySet("{F1}" , "mapkey")
Dim $click = False
Dim $keymapped = Null
Dim $mousekey = True
$dll = DllOpen("user32.dll")
Func close()
Exit
EndFunc
Func startpause()
$click = Not $click
EndFunc
Func mapkey()
$keymapped = GET HERE KEY THAT USER PRESSED!
EndFunc
While 1
If $click = True Then
If $mousekey = True Then
MouseClick("left")
EndIf
If $mousekey = False And $keymapped Not Null Then
Send($keymapped)
EndIf
Sleep(50)
EndIf
sleep(20)
WEnd
Could anyone help me creating this, please?
Thank you!