Jump to content

Recommended Posts

This is my current code

Global $a
Global $b
Global $c
Global $d
Global $e
Global $f
Global $g
Global $h
Global $i
Global $j
Global $k
Global $l
Global $m
Global $n
Global $o
Global $p
Global $q
Global $r
Global $s
Global $t
Global $u
Global $v
Global $w
Global $x
Global $y
Global $z

HotKeySet("a", "a")
HotKeySet("b", "b")
HotKeySet("c", "c")
HotKeySet("d", "d")
HotKeySet("e", "e")
HotKeySet("f", "f")
HotKeySet("g", "g")
HotKeySet("h", "h")
HotKeySet("i", "i")
HotKeySet("j", "j")
HotKeySet("k", "k")
HotKeySet("l", "l")
HotKeySet("m", "m")
HotKeySet("n", "n")
HotKeySet("o", "o")
HotKeySet("p", "p")
HotKeySet("q", "q")
HotKeySet("r", "r")
HotKeySet("s", "s")
HotKeySet("t", "t")
HotKeySet("u", "u")
HotKeySet("v", "v")
HotKeySet("w", "w")
HotKeySet("x", "x")
HotKeySet("y", "y")
HotKeySet("z", "z")

While 1
   MouseGetPos()
   sleep(10)
WEnd


Func a()
   MsgBox(32, "l", "a")
EndFunc

Func b()
   MsgBox(32, "l", "b")
EndFunc

Func c()
   MsgBox(32, "l", "c")
EndFunc

Func d()
   MsgBox(32, "l", "d")
EndFunc

Func e()
   MsgBox(32, "l", "e")
EndFunc

Func f()
   MsgBox(32, "l", "f")
EndFunc

Func g()
   MsgBox(32, "l", "g")
EndFunc

Func h()
   MsgBox(32, "l", "h")
EndFunc

Func i()
   MsgBox(32, "l", "i")
EndFunc

Func j()
   MsgBox(32, "l", "j")
EndFunc

Func k()
   MsgBox(32, "l", "k")
EndFunc

Func l()
   MsgBox(32, "l", "l")
EndFunc

Func m()
   MsgBox(32, "l", "m")
EndFunc

Func n()
   MsgBox(32, "l", "n")
EndFunc

Func o()
   MsgBox(32, "l", "o")
EndFunc

Func p()
   MsgBox(32, "l", "p")
EndFunc

Func q()
   MsgBox(32, "l", "q")
EndFunc

Func r()
   MsgBox(32, "l", "r")
EndFunc

Func s()
   MsgBox(32, "l", "s")
EndFunc

Func t()
   MsgBox(32, "l", "t")
EndFunc

Func u()
   MsgBox(32, "l", "u")
EndFunc

Func v()
   MsgBox(32, "l", "v")
EndFunc

Func w()
   MsgBox(32, "l", "w")
EndFunc

Func x()
   MsgBox(32, "l", "x")
EndFunc

Func y()
   MsgBox(32, "l", "y")
EndFunc

Func z()
   MsgBox(32, "l", "z")
EndFunc

When I press A for example, a messagbox saying A appears, but autoit won't let me actually type A anywhere.

Is there a way to fix that?

Link to post
Share on other sites

You'll need to add a SendKey to every function. But your code is somewhat ... freaky. what do you want to achieve with this?

Lol thanks

I just want to see if I can make something that will be able to record the keys I press just for funzies :) Better way of doing what I'm trying to achieve?

Link to post
Share on other sites
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...