Jump to content

giovanigonzales

Members
  • Posts

    11
  • Joined

  • Last visited

giovanigonzales's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I know this one can be a very dumb question, but: It's possible to use AutoIt3 for macros? Like: writing "brb" to call Send("be right back")
  2. damn! I should have read the help carefully! "@HotKeyPressed macro can be used inside the function to handle several keys in the same function." Thanks to all for response, you are all very kind
  3. HotKeySet ( "key" [, "function"] ) No way I can send a parameter to the function? I am setting a dozen of hotkeys, and all I need is to call the same function with diferent parameters so at this moment my script, looks dumb, like this: HotKeySet("^!u", "Func1") HotKeySet("^!o", "Func2") HotKeySet("^!i", "Func3") ... While 1 Sleep(100) WEnd Func SendUnicode($text) $SaveClip = ClipGet() ClipPut($text) Send("^v") ClipPut($SaveClip) EndFunc Func Func1() SendUnicode("ü") EndFunc Func Func2() SendUnicode("ö") EndFunc Func Func3() SendUnicode("ï") EndFunc ... would be much better to define keys this way: HotKeySet("^!u", "SendUnicode(1)") HotKeySet("^!u", "SendUnicode(2)") HotKeySet("^!u", "SendUnicode(3)") .... and then In the SendUnicode function i will implement a "case" to send the desired text depending on the code. That would erase the dumb copy-paste functions Func1, Func2, Func3 ... etc
  4. Thanks, but I found a way that I find more simple, using Clipboard functions: HotKeySet("^!u", "MyFunc") Func MyFunc() ClipPut("Ц") Send("^v") EndFunc
  5. It works, many thanks! anyways, seems there is a bug using send asc when using Control key, shall I report it?
  6. Thanks I have way too little experience in Autoit3, can you show me how to send an Unicode char using ControlSetText please?
  7. Can not send unicode characters. For example I tried to send this Cyrillic character - Ц (unicode D0A6) Seems Send ASC completely ignores the first byte, and simply sends only the second - A6 HotKeySet("!t", "MyFunc") While 1 Sleep(100) WEnd Func MyFunc() Send("{ASC 0xD0A6}") Send("{ASC 0xA6}") Send("{ASC 0x1A6}") Send("{ASC 0x2A6}") Send("{ASC 0x3A6}") Send("{ASC 0x4A6}") EndFunc All Sends the same character 0xA6 - "¦"
  8. Thanks, it works however, the weird thing is, when I replace "Exit 0" with "Send("{ASC 0066}")", it doesnt work! or HotKeySet("^y", "Terminate") Func Terminate() Send("{ASC 0066}") EndFunc but.... HotKeySet("!y", "Terminate") - works I just installed beta - 3.2.11.0, and its the same thing @whim: I checked that, also tried with another keys (^j, ^k etc) - its the same I am sorry for this, its either a very weird thing here or.... maybe i'm veeery wrong somewhere
  9. well, Send("{ASC - it works, thanks the problem is with the Control key. I can assign hotkeys that include Alt, Shift and Windows key, but not with Control key so HotKeySet("!y", "MyFunc") - works HotKeySet("+y", "MyFunc") - works HotKeySet("#y", "MyFunc") - works HotKeySet("^y", "MyFunc") - doesnt work ! any idea why?
  10. Send("{ASC 0065}") Send("{ASC 0066}") dosent work either...
  11. hello all, tried a very basic script, but seems I cant even send a simple ASCII character, when I push the hotkey, nothing hapens notice I tried the very example from here: http://www.autoitscript.com/autoit3/docs/functions/Send.htm - Send("{ASC 065}") any sugestion please? thanks AutoIt version: 3.2.10.0 OS: Win XP SP2 this is the script: HotKeySet("!^y", "MyFunc") While 1 Sleep(100) WEnd Func MyFunc() Send("{ASC 065}") Send("{ASC 066}") Send("{ASC 65}") Send("{ASC 66}") EndFunc
×
×
  • Create New...