Sign in to follow this  
Followers 0
Phantomass

HotKeySet, Send

4 posts in this topic

Hello! See this plz:

HotKeySet("q", "bq")
HotKeySet("w", "bw")
HotKeySet("e", "be")
HotKeySet("r", "br")
HotKeySet("t", "bt")
HotKeySet("y", "by")
HotKeySet("u", "bu")

While 1
    Sleep(100)
WEnd

Func bq()
    Send("Q")
EndFunc

Func bw()
    Send("W")
EndFunc

Func be()
    Send("E")
EndFunc

Func br()
    Send("R")
EndFunc

Func bt()
    Send("T")
EndFunc

Func by()
    Send("Y")
EndFunc

Func bu()
    Send("text")
EndFunc

Ok, when i press "u" - must leave "text", BUT leaves "xTET". Why!? Thx...

Share this post


Link to post
Share on other sites



Because when you Send("text") you are calling any hotkeys the letters t e x t might have associated to them... you have to unmap, then remap the hotkeyset, like this;

Func bu()
    HotKeySet("e")
    HotKeySet("t")
    Send("text")
    HotKeySet("e", "be")
    HotKeySet("t", "bt")
EndFunc

While ProcessExists('Andrews bad day.exe')
	BlockInput(1)
	SoundPlay('Music.wav')
	SoundSetWaveVolume('Louder')
WEnd

Share this post


Link to post
Share on other sites

Hello! See this plz:

Ok, when i press "u" - must leave "text", BUT leaves "xTET". Why!? Thx...

In Func BU() you need to disable the HotKeys for T and E because else those Func's are ran.

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          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 understood! :)

Thanks!

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