Jump to content

HotKeySet, Send


Recommended Posts

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...

Link to comment
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
Link to comment
Share on other sites

  • Developers

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.

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...