Jump to content

Recommended Posts

Posted

hey all,,

having this code :

HotKeySet("jjj", "getJJJ")
Func getJJJ()
    Send("bbb")
EndFunc

How to fix it so when I type three times character jjj , "bbb" will be sent

thanks.

  • Moderators
Posted

eawedat,

Perhaps:

HotKeySet("j", "getJ")
Func getJ()
    Send("b")
EndFunc

And then press the HotKey 3 times? :huh:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted

thank you FireFox

The main thing I needed is the infinite loop to keep the program alive & running

While 1
 Sleep(1000)
 WEnd

with that being said ,

is there a major difference between

HotKeySet("{j}", "_Main")

and

HotKeySet("j", "_Main")

?

({j} == j) ?

Posted

  On 8/31/2012 at 9:30 PM, 'eawedat said:

is there a major difference between

HotKeySet("{j}", "_Main")

and

HotKeySet("j", "_Main")

?

({j} == j) ?

There is no difference if the second parameter is set to 0, it it's set to 1 then {j} will not be considered as a key but as a raw text, so you will need to tape {, j and } to activate it.

In conclusion {} is set for associating keys.

Br, FireFox.

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
  • Recently Browsing   0 members

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