View previous topic :: View next topic |
Author |
Message |
cnodnarb Professional Member
Joined: 11 Sep 2002 Posts: 762 Location: Rockeledge, GA
|
Posted: Tue Aug 28, 2012 2:33 pm Post subject: AutoIt DLL |
|
|
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 |
|
|
cnodnarb Professional Member
Joined: 11 Sep 2002 Posts: 762 Location: Rockeledge, GA
|
Posted: Tue Aug 28, 2012 11:28 pm Post subject: |
|
|
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 |
|
|
cnodnarb Professional Member
Joined: 11 Sep 2002 Posts: 762 Location: Rockeledge, GA
|
Posted: Tue Aug 28, 2012 11:32 pm Post subject: |
|
|
What the heck is ~UTF-16LE (returned by COM)?? |
|
Back to top |
|
|
cnodnarb Professional Member
Joined: 11 Sep 2002 Posts: 762 Location: Rockeledge, GA
|
Posted: Wed Aug 29, 2012 12:13 am Post subject: |
|
|
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 |
|
|
cnodnarb Professional Member
Joined: 11 Sep 2002 Posts: 762 Location: Rockeledge, GA
|
Posted: Wed Aug 29, 2012 12:24 am Post subject: |
|
|
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 |
|
|
cnodnarb Professional Member
Joined: 11 Sep 2002 Posts: 762 Location: Rockeledge, GA
|
Posted: Thu Oct 25, 2012 10:00 pm Post subject: |
|
|
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 |
|
|
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1751 Location: Space and Time
|
Posted: Fri Oct 26, 2012 12:34 am Post subject: |
|
|
If I would have looked at the forum sooner I could have saved you the trouble... _________________ Chris
Http://theblindhouse.com |
|
Back to top |
|
|
|
|
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
|
|