forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


AutoIt DLL

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous
View previous topic :: View next topic  
Author Message
cnodnarb
Professional Member
Professional Member


Joined: 11 Sep 2002
Posts: 762
Location: Rockeledge, GA

PostPosted: Tue Aug 28, 2012 2:33 pm    Post subject: AutoIt DLL Reply with quote

I'm downloading autoit because I need a quick and dirty way to send numpad number keys.

Anyone look into this mention yet?

Quote:
AutoItX – DLL/COM control. Add AutoIt features to your favorite programming and scripting languages!


Marrying these two utilities would be awesome.
Back to top
View user's profile Send private message AIM Address
cnodnarb
Professional Member
Professional Member


Joined: 11 Sep 2002
Posts: 762
Location: Rockeledge, GA

PostPosted: Tue Aug 28, 2012 11:28 pm    Post subject: Reply with quote

Partial (ugh!) success !?

I need help!!!

Code:

LOADLIB AutoItX3.dll
info @ok()
wait 3
%%auto = @lib(AutoItX3,AU3_Send,BOOL:,@chr(34){NUMPAD1}@chr(34),1)
FREELIB AutoItX3.dll


Sends garbled text!

It actually sends, it just sends wrong.

Here is the tiny amount of documentation to work with. (Just for send, I bet I can get other stuff working!)

Code:

AU3_API void WINAPI AU3_Send(LPCWSTR szSendText, /*[in,defaultvalue("")]*/long nMode);


Thanks for any help!
Back to top
View user's profile Send private message AIM Address
cnodnarb
Professional Member
Professional Member


Joined: 11 Sep 2002
Posts: 762
Location: Rockeledge, GA

PostPosted: Tue Aug 28, 2012 11:32 pm    Post subject: Reply with quote

What the heck is ~UTF-16LE (returned by COM)??
Back to top
View user's profile Send private message AIM Address
cnodnarb
Professional Member
Professional Member


Joined: 11 Sep 2002
Posts: 762
Location: Rockeledge, GA

PostPosted: Wed Aug 29, 2012 12:13 am    Post subject: Reply with quote

Well,

This works... except the '0', which I actually was trying to do something else...


help please!

Code:
LOADLIB AutoItX3.dll
info @ok()
wait 3



rem %%auto = @lib(AutoItX3,AU3_Send,,007B 006E 0075 006D 0070 0061 0064 0030 007D,)

%%auto = @lib(AutoItX3,AU3_Send,,@chr(@asc({)),)
%%auto = @lib(AutoItX3,AU3_Send,,@chr(@asc(n)),)
%%auto = @lib(AutoItX3,AU3_Send,,@chr(@asc(u)),)
%%auto = @lib(AutoItX3,AU3_Send,,@chr(@asc(m)),)
%%auto = @lib(AutoItX3,AU3_Send,,@chr(@asc(p)),)
%%auto = @lib(AutoItX3,AU3_Send,,@chr(@asc(a)),)
%%auto = @lib(AutoItX3,AU3_Send,,@chr(@asc(d)),)
%%auto = @lib(AutoItX3,AU3_Send,,@chr(@asc(0)),1) rem <---DOES NOT SEND
%%auto = @lib(AutoItX3,AU3_Send,,@chr(@asc(})),)
rem info @hex(%%auto)
rem info @binary(%%auto)

FREELIB AutoItX3.dll
Back to top
View user's profile Send private message AIM Address
cnodnarb
Professional Member
Professional Member


Joined: 11 Sep 2002
Posts: 762
Location: Rockeledge, GA

PostPosted: Wed Aug 29, 2012 12:24 am    Post subject: Reply with quote

Well, I think we can get this working. But for now, I found what I need. And I'm glad I learned something new.

window send,@winactive(),@chr(49)

EDIT: Not what I need. Just sends 0, not numpad 0. *sigh*
Back to top
View user's profile Send private message AIM Address
cnodnarb
Professional Member
Professional Member


Joined: 11 Sep 2002
Posts: 762
Location: Rockeledge, GA

PostPosted: Thu Oct 25, 2012 10:00 pm    Post subject: Reply with quote

Numpad 0, achieved!

Code:

wait 5
LOADLIB user32.dll
%%knockout = @lib(user32,keybd_event,INT:,96,0,0,0)
%%knockout = @lib(user32,keybd_event,INT:,96,0,2,0)
FREELIB user32.dll
Back to top
View user's profile Send private message AIM Address
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Fri Oct 26, 2012 12:34 am    Post subject: Reply with quote

If I would have looked at the forum sooner I could have saved you the trouble... Smile
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group