taultunleashed logodeclaring lib functions in VB script? GetAsyncKeyS : Developer's Corner
newtopic  postreply
 [ 8 posts ] 
blue large dot

declaring lib functions in VB script? GetAsyncKeyS : Developer's Corner

Posted: September 30th, 2003, 11:01 am
 
Sulfuric
Sulfuric's Reps:
User avatar
I found a whole bunch of keyboard reading things, most of them either need direct X or this user32.dll file which I get a script error when I try to put in, this is what I have:

Option Explicit

Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer

Everyone says thats what you put in visual basic to declare the function and start using GetAsyncKeyState but when I try to run it I get an error at the word Function and it says "Expected end of statement".

I'm so close to having a macro run by a keyboard command only thing stopping me is getting this libary to join. Do you have to do something different for VBS? there isnt a lot of help out there i've been on google all day looking for the correct way to declare it but it all turns up showing what I already have, am I missing something before or after it? or is it my script runner?

Thanks


Reply with quote
Posted: September 30th, 2003, 2:11 pm
 
Admin
Admin's Reps:
User avatar
You cannot declare functions in your script. I will add a function to the script plugin for GetAsyncKeyState. Will update the script plugin tonight with it.


Reply with quote
Posted: September 30th, 2003, 5:53 pm
 
Admin
Admin's Reps:
User avatar
See the Script forum for details on how to use the XUGetAsyncKeyState function without an ocx.


Reply with quote
Posted: October 5th, 2004, 12:39 pm
 
cyberlogi
cyberlogi's Reps:
User avatar
Man, i've spent hours looking on the web for something like this. Should have just stayed on Xunleashed. Thanks a lot!


Reply with quote
Posted: October 5th, 2004, 1:42 pm
 
wyvernx

Total Posts: 6718
Joined: May 1st, 2004, 4:00 am
wyvernx's Reps: 21
User avatar
administrator
premium
Yes, these are already implemeted in the script host!

Just read the docs in the scripting docs forum. GetKeyState is already there and more.

_________________
Use Search first, ask questions later!


Reply with quote
Posted: October 5th, 2004, 1:55 pm
 
cyberlogi
cyberlogi's Reps:
User avatar
I am trying to learn how to do these calls without using xunleashed. I believe having a firmer understanding of how to do simple keyboard/mouse commands will allow programming a working postmessage easier.


Reply with quote
Posted: October 5th, 2004, 2:55 pm
 
wyvernx

Total Posts: 6718
Joined: May 1st, 2004, 4:00 am
wyvernx's Reps: 21
User avatar
administrator
premium
Then I think you are in the wrong forums.

Cuz all scripts here use XU.


Reply with quote
Posted: October 5th, 2004, 3:48 pm
 
cyberlogi
cyberlogi's Reps:
User avatar
(!empty($user->lang['QUOTE'])) ? $user->lang['QUOTE'] : ucwords(strtolower(str_replace('_', ' ', 'QUOTE'))):
Then I think you are in the wrong forums.

Cuz all scripts here use XU.


OMFG. Duh.


Reply with quote
Want Advertisements After The Last Post Removed? Create A Free Account!

blue large dot Who is online
Users browsing this forum: No registered users and 4 guests

Popular Sections
SWTOR Cheats
Guild Wars 2 Cheats
Guild Wars 2 Hacks
Guild Wars 2 Bots
Diablo 3 Cheats
Guild Wars 2 Mods

Popular Sections
WoW Cataclysm Cheats & Exploits
WoW Cataclysm Hacks & Bots
Star Wars The Old Republic Cheats
SWTOR Mods
Torchlight 2 Cheats
SWTOR Space Mission Bots
Site Nav and RSS
RSS Feed of Developer's Corner RSS Feed 

SitemapIndex SitemapIndex
RSS Feed RSS Feed
Channel list Channel list
left bottom corner Site and Contents Copyright 2001-2012 All Rights Reserved TaultUnleashed.com bottom corner
top left
top right
createaccount
Username:   Password:   Remember Me?