Sign in to follow this  
Followers 0
gatsbysamericandream

Problem With Hotkeyset And Send

5 posts in this topic

I want to make key X a hotkey but I want X to show at the same time. If I do something like...:

Func press_a()

<SOME RANDOM ACTION>

Send("a")

EndFunc

... the function will just continuously keep recalling itself. Any way around this?

Share this post


Link to post
Share on other sites



May I be the first to say what???? :think:


The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center]

Share this post


Link to post
Share on other sites

If a function that allows me press A so that it shows up as it normally would, but something else also happens in the background. The problem is that when it sends A again, it just recalls the function over.

Share this post


Link to post
Share on other sites

Try this:

HotKeySet('x', '_x')

While 1
    Sleep(1000)
WEnd

Func _x()
    HotKeySet('x'); Basically turning the 'x' hotkey off
    Send('x')
    MsgBox(0, 'Test', 'Testing');Do something
    HotKeySet('x', '_x'); Restarting 'x' hotkey
EndFunc


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

THANKS A LOT SMOKE! IT WORKED 100%.

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  
Followers 0