Sign in to follow this  
Followers 0
protoid

hotkeyset won't let me go to functions...

7 posts in this topic

this is a part of a script I made to record keystrokes and play them back into a game (LIERO if anyone's heard of it)

the syntax check can't find anything, but whenever i try to run the script i get the message "Unknown function name.:

HotKeySet("a",key("a")) "

HotKeySet("{scrolllock}", "terminate")
HotKeySet("a",key("A"))
HotKeySet("b",key("B"))
HotKeySet("c",key("C"))
HotKeySet("d",key("D"))
HotKeySet("e",key("E"))
HotKeySet("f",key("F"))
HotKeySet("g",key("G"))
HotKeySet("h",key("H"))
HotKeySet("i",key("I"))
HotKeySet("j",key("J"))
HotKeySet("k",key("K"))
HotKeySet("l",key("L"))
HotKeySet("m",key("M"))
HotKeySet("n",key("N"))
HotKeySet("o",key("O"))
HotKeySet("p",key("P"))
HotKeySet("q",key("Q"))
HotKeySet("r",key("R"))
HotKeySet("s",key("S"))
HotKeySet("t",key("T"))
HotKeySet("u",key("U"))
HotKeySet("v",key("V"))
HotKeySet("w",key("W"))
HotKeySet("x",key("X"))
HotKeySet("y",key("Y"))
HotKeySet("z",key("Z"))
HotKeySet("{bs}",key("{BACKSPACE}"))
HotKeySet("{tab}",key("{TAB}"))
HotKeySet("{enter}",key("{Enter}"))
HotKeySet("{space}",key(" "))
HotKeySet("{left}",key("{LEFT}"))
HotKeySet("{up}",key("{UP}"))
HotKeySet("{right}",key("{RIGHT}"))
HotKeySet("{down}",key("{DOWN}"))
HotKeySet("{del}",key("{DEL}"))
HotKeySet("0",key("0"))
HotKeySet("1",key("1"))
HotKeySet("2",key("2"))
HotKeySet("3",key("3"))
HotKeySet("4",key("4"))
HotKeySet("5",key("5"))
HotKeySet("6",key("6"))
HotKeySet("2",key("7"))
HotKeySet("8",key("8"))
HotKeySet("9",key("9"))
while True
    sleep(100)
WEnd

Func key($keystore)
    FileWrite("C:\keystore\store." & @UserName & "." & @YEAR & "." & @MON & "." & @MDAY & ".txt", $keystore)
EndFunc

func terminate()
    Exit
EndFunc

Share this post


Link to post
Share on other sites



HotKeySet("a","key(A)")


[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites

key(A)(): undefined function.

HotKeySet("a","key(A)")

you just changed the error message...

Share this post


Link to post
Share on other sites

HotKey functions do not presently allow parameters.

Share this post


Link to post
Share on other sites

HotKey functions do not presently allow parameters.

is there anything i can use instead? (other than making an immense script)

Share this post


Link to post
Share on other sites

Well, this looks like a keylogger :) So, no. You can't really do anything.

Share this post


Link to post
Share on other sites

code fixed!!!

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0