Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21266

Problem using Selftimer & getasynckeystate , VARIABLE NOT DEFINED ? -_- "

$
0
0
----You are gonna read a text wrote by someone who's english is pretty bad.****
Hello, i just switched from the Vb Timer to Selftimer Class module
its working very well, better than i expected
But i got one error, again :) !!!!!

Ok so it goes like this:

(im copying from my laptop)
Code:

Declaration :
Private declare function GetaSyncKeyState Lib "user32" (byval vkey as long) as integer
dim L as string, y as long

Code:

Timer :
For y = 1 to 255
Key = 0                                                  '
L = ""
Key = GetaSynckeyState(y)                        '
If Key = -32767 then                                  '
Select case y

case 65
 L = "a"
 blablablabla...

Ok so my problem is, This timer doesnt seems to know that i wrote that line in the declaration, he doesnt know sh*t about Key or GetaSyncKeyState
(i copyed the same exact code on an Old timer, and it works. o_o ? )

did i missed something ?????

Viewing all articles
Browse latest Browse all 21266

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>