Autohotkey Call Total Commander Internal command

Source: Internet
Author: User

#NoEnv #NoTrayIcon #SingleInstance Force;~Send {Alt};~ Sleep, 20#IfWinActive ahk_class ttotal_cmd#0::sendtcusercommand ("Em_to7zip") return;~winwait, Ahk_class AutoIt v3 GUI;~Send {Alt up} sendtcusercommand (command); string {If Command<>{varsetcapacity (copydatastruct,3*a_ptrsize, 0); Set up the structure' s memory area. Dwdata: = ASC ("E") + * * ASC ("M") numput (dwdata, copydatastruct, 0) Cbdata: = Strputvar (Command, command, "C P0 ") Numput (cbdata, Copydatastruct, a_ptrsize);       OS requires that this is done. Numput (&command, Copydatastruct, 2*a_ptrsize);       Set lpdata to the string itself. SendMessage, 0x4a, 0, &copydatastruct, Ahk_class ttotal_cmd; 0X4A is wm_copydata.     Must use Send not Post. }} strputvar (String, ByRef var, encoding) {;     ensure capacity. Varsetcapacity (Var, strput (String, encoding) * (encoding= "utf-16" | | encoding= "cp1200")? 2:1));     Copy or convert the string. Return Strput (String, &var, encoding)}

From:http://ahk8.com/thread-3677.html (This does not support the Unicode version of AHK)

Http://forum.ru-board.com/topic.cgi?forum=5&topic=45288&start=1030&limit=1&m=1 (Unicode supported)

Autohotkey calls the total Commander Internal command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.