Autohotkey & cm_copy parameters to set copy options
Moderators: Hacker, petermad, Stefan2, white
Autohotkey & cm_copy parameters to set copy options
Hi, i'm trying to assign parameters to cm_copy using Autohotkey
but it doesn't work, what am i doing wrong?. Thanks.
cm_copy overwriting all
PostMessage 1075, 905, /O2, , ahk_class TTOTAL_CMD
cm_copy verifying after copy
PostMessage 1075, 905, /V1, , ahk_class TTOTAL_CMD
Tc 11.00 Beta 2 32Bits / Windows 10 22H2 32Bits
Re: Autohotkey & cm_copy parameters to set copy options
Code: Select all
#NoEnv
#NoTrayIcon
#KeyHistory, 0
ListLines, Off
SetBatchLines,-1
TC_SendData("cm_Copy /B1SO5HGV0")
ExitApp
TC_SendData(cmd) {
VarSetCapacity(CopyDataStruct, A_PtrSize * 3)
If( A_IsUnicode ) {
VarSetCapacity( cmdA, StrPut(cmd, "cp0"))
Loop, % StrLen(cmd)
NumPut( Asc(SubStr(cmd, A_Index, 1)), cmdA, A_Index - 1, "Char")
}
NumPut(19781, CopyDataStruct, 0)
NumPut(StrLen(cmd), CopyDataStruct, A_PtrSize)
NumPut((A_IsUnicode ? &cmdA : &cmd), CopyDataStruct, A_PtrSize * 2)
SendMessage, 0x4A, %A_ScriptHwnd%, &CopyDataStruct,, A
}
Overquoting is evil! 👎
Re: Autohotkey & cm_copy parameters to set copy options
2Fla$her
I'll try your solution, thanks.
I'll try your solution, thanks.