Jump to content
Sign in to follow this  
stuka

deleted

Recommended Posts

Thats simple :)

Lets assume you hit the "z" on your keyboard. That will trigger Func z(), which will Send a "z", which will trigger Func a() ....etc etc etc...

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

maybe it's possible, but i gotta randomize the keys

its simple, just temporary disable the HotKey for the letter you send.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Oh wait, Jos, I'm sorry but do you have an example on how to temporarily disable a hotkey?

this should do it for letter a:

Func a()
    HotKeySet("a")
    Send("a")
    HotKeySet("a", "z")
EndFunc  ;==>a

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

I have:

HotKeySet("a","a")
HotKeySet("b","b")
while 1
    Sleep(100)
WEnd
Func a()
    HotKeySet("b")
    Send("b")
    HotKeySet("b","b")
EndFunc

Func b()
    HotKeySet("a")
    Send("a")
    HotKeySet("a","a")
EndFunc

Edit: Too slow

Edited by monoceres

Broken link? PM me and I'll send you the file!

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  

×
×
  • Create New...