Jump to content
Sign in to follow this  
blackhydra866

Number sign?

Recommended Posts

blackhydra866

For some reason I can't get my script to actually write in a # sign.

HotKeySet("{NUMPAD1}", "_AddFirst")
HotKeySet("{NUMPAD2}", "_AddSecond")
HotKeySet("{NUMPAD3}", "_AddThird")

While 1
   
WEnd

Func _AddFirst()
    Send("{BACKSPACE 6}")
    Send("*")
    Send("[[")
    Send("{DOWN}")
    Send("{RIGHT 3}")
EndFunc

Func _AddSecond()
    Send("{= 2}")
    Send("{LEFT 3}")
    Send("{= 2}")
    Send("{LEFT 2}")
    Send("{BACKSPACE 7}")
EndFunc

Func _AddThird()
    Send("{BACKSPACE 5}")
    Send("#")
EndFunc

It's in the third one. It'll just do the backspaces but won't put in a number sign.

Share this post


Link to post
Share on other sites
Skruge

Welcome to the forums!

If you read the help file entry for Send(), you'll see that "#" is being treated as the Windows key.

All of these should work:

Send("#", 1)
Send("{#}")
Send("{ASC 35}")

Good luck!


[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

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  

×