Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to send Alt+Numpad keys in AutoIt or VBScript

221 views
Skip to first unread message

Larry

unread,
Oct 30, 2006, 7:45:51 PM10/30/06
to
An answer for this for either VBscript or AutoIt would be fine.

How do I do Send key in AutoIt for Alt+NumXXXX?

For example, using AutoIt, I want to send the keystrokes Alt+Num0146 (the
smart apostrophe) and I try this, but it's not working:

Send ("!{NUMPAD0}{NUMPAD1}{NUMPAD4}{NUMPAD6}")


Fosco

unread,
Oct 30, 2006, 11:19:07 PM10/30/06
to
Larry:

> How do I do Send key in AutoIt for Alt+NumXXXX?
> For example, using AutoIt, I want to send the keystrokes Alt+Num0146

; change "Senza nome - Blocco note" with your notepad caption

Run("notepad.exe")
;Run("notepad.exe","", 3)
sleep(500)
AutoItSetOption("WinTitleMatchMode", 4)
WinWaitActive( "Senza nome - Blocco note", "", 5 )
ControlFocus ( "Senza nome - Blocco note","" , "Edit1" )
ControlSend("Senza nome - Blocco note","" ,"Edit1","{ASC 0126}")
send("{ASC 0146}")

; >>> C:\PROGRA~1\AUTOIT3\AUTOIT.CHM >> send
;To send UNICODE characters enter the character
;code (decimal or hex), for example this sends a Chinese character
; Send("{ASC 2709}") or Send("{ASC 0xA95}")


--
Fosco

Larry

unread,
Oct 31, 2006, 3:07:28 AM10/31/06
to
Thank you.

Larry


"Fosco" <fa...@fake.invalid> wrote in message
news:ei6irm$uoo$1...@web.aioe.org...

nock...@gmail.com

unread,
Dec 12, 2012, 11:07:01 AM12/12/12
to
Vào 07:45:51 UTC+7 Thứ ba, ngày 31 tháng mười năm 2006, Larry đã viết:
thank Larry !! s2
0 new messages