
ericli03
Active Members-
Posts
20 -
Joined
-
Last visited
Content Type
Forums
Downloads
Forum Articles
Events
Everything posted by ericli03
-
trancexx, I would like to ask you a message on how to obtain ssl encryption. Like browser https connection Info display.(TLS 1.0 ćcipher suites : AES128....) (Autoit forum show TLS 1.2) Which way should I use it? _WinHttpQueryAuthSchemes or _WinHttpQueryOption ? or other? Information can be obtained at present are the html ... Whether well-known encryption website is it?
-
I want to use com1 to com2 at the same time in same computer. 1.com1 send string abcde to com2 (At this time will receive com2 message) 2.com2 send string abcde to com1 (At this time will receive com1 message) I try to use the code. while 1 $a = "abcdefhhijklmnopqrstuvwxyz1234567890abcdefhhijklmnopqrstuvwxyz1234567890" _CommSwitch(1) _CommSendString($a) _CommSwitch(2) _CommSendString($a) _CommSwitch(1) $test1 = _Commgetstring() _CommSwitch(2) $test2 = _Commgetstring() wend But it seems that there is a delay time. _Commgetstring() always not receive the full message.(Only received abcdefg) What do I do wrong? If want to send message with delay time.(Use $a Send message,press a then sleep (100) ) . How should I do? Or with only the following methods .. _CommSendString("a") sleep(100) _CommSendString("b") sleep(100) _CommSendString("c") Please help. Thank.
-
Remote Execution through WMI
ericli03 replied to ericli03's topic in AutoIt General Help and Support
Thank orbs! I wish there could open the remote computer as a way exe file in addition psexec outside .. Tried some methods (WMI, TCP), but it seems there is only Psexec way. There are other ways to remotely turn it? -
How to open a remote computer program through WMI. I use WMI Win32_Process remote computer can successfully open Process,But failed to open a graphical interface that only shows running in the Process. If the remote I run Notepad, how to open it? (Non-Process mode) Like manually open Notepad as open. I am looking for some articles, some say that Windows permissions problem. Code : $Username = "" $Password = "" $Computer = "" Func RemoteExecute($strProgToRun) Local $objWMIService, $objProcess, $objProgram $objSWbemLocator = ObjCreate("WbemScripting.SWbemLocator") $objWMI = $objSWbemLocator.ConnectServer($Computer, "rootcimv2", $Username, $Password) $objWMI.Security_.ImpersonationLevel = 3 $objProcess = $objWMI.Get("Win32_Process") $objProgram = $objProcess.Methods_("Create").InParameters.SpawnInstance_ $objProgram.CommandLine = $strProgToRun $objWMI.ExecMethod("Win32_Process", "Create", $objProgram) EndFunc Can be performed, but only in Process mode, can not see graphic. Another psexec can start properly, no problem.
-
Thanks again to answer! I try "HANDLE","HUUHANDLE" Look at!
-
Thanks! If UUIRTOpen return value is HUUHANDLE,then I should have to be given to what type in autoit? HUUHANDLE hHandle for each function need to be substituted. Given category, then what is it? Or just need join "HANDLE","HUUHANDLE" ? Really thank you for your answer!
-
hmm, No particular ideas,Just try ....sorry
-
Return type ,and an unsigned 32 bit integer. Function name is UUIRTTransmitIR, uuirtdrv.dll function.
-
Sorry, this is my fault. $dll = DllOpen("uuirtdrv.dll") $result = DllCall($dll,"UINT_PTR","UUIRTTransmitIR","int",$hndl,"str","0000","hwnd",0x0010,"int",1,"int",0,"int",0,"uint",0,"uint",0)
-
Thanks Trancexx !! I really try to dll long time,and i think need one key point. If can call functions and UUIRTOpen (void) substitution, it should be feasible.
-
sorry, I know i have to use UUIRTOpen(void). But I don't know how do I use. first I try $dll = dllopen("usbuirt.dll") ;load dll $result=DllCall($dll,"UINT_PTR","UUIRTTransmitIR","int",$hndl,"str","0000","hwnd",0x0010,"int",1,"int",0,"int",0,"uint",0,"uint",0) And arraydisplay($result) read value is 0. Please tell me where I need to join "UUIRTOpen(void)" " "int",$hndl " <--here use $hndl But invalid.
-
Yes, I use the dllopen("usbuirt.dll"),but read value is 0. If don't need to read "HUUHANDLE hHandle" , only use "UUIRTGetDrvInfo" $n = dllopen("usbuirt.dll) $ver = dllcall("$n","int","UUIRTGetDrvInfo","Uint","$ver) It's works! But If I don't use "HUUHANDLE hHandle" (Just like the Transmit) $result= DllCall($dll,"UINT_PTR","UUIRTTransmitIR","int",$hndl,"str","0000","hwnd",0x0010,"int",1,"int",0,"int",0,"uint",0,"uint",0) $result value is always 0.
-
Sorry , How do I know "HUUHANDLE hHandle" In Autohotkey : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;Transmit an IR code for PRONTO. ; Added the ability to define the number of times to repeat the code as multiple repeats are required ; by some items. USBUIRT_SendIRPronto(IRCode,RepeatCount=1) { hndl := DllCall("C:\Windows\System32\uuirtdrv.dllUUIRTOpen") DllCall("C:\Windows\System32\uuirtdrv.dllUUIRTTransmitIR", UInt,hndl , Str, IRCode ; Variable containing IR code to transmit , Int, 0x10 ;Codeformat (UUIRT: 0, PRONTO: 0x0010) , Int, RepeatCount ; Variable containing the number of times to repeat the code. , Int, 100 ; inactivityWaitTime ms , Int, 0 ; HANDLE hEvent to signal code sent , UInt, 0, UInt, 0) ; reserved } I don't know "HUUHANDLE hHandle" address into the hardware.....Or how can i make? How do I change from Autohotkey to Autoit ?
-
Thanks John! This theme is also previously issued,But not answered. Please help!
-
I want to use IR device with usb-uirt. I have read the USB-UIRT API documentation,and can be use UUIRTGetDrvVersion. But I don't know how to use Transmit and Receive. I try this code... $result= DllCall($dll,"UINT_PTR","UUIRTTransmitIR","int",$hndl,"str","0000","hwnd",0x0010,"int",1,"int",0,"int",0,"uint",0,"uint",0) But read array value always is 0. Found Call uuirtdrv.dll founction List: 1.Receiver : UUIRTSetReceiveCallback 2.Send : UUIRTTransmitIR USBUirt Dll API documentation http://ccnicolas.free.fr/domotique/apiuirt.htm UUIRTSetReceiveCallback UUIRTDRV_API BOOL PASCAL UUIRTSetReceiveCallback(HUUHANDLE hHandle, PUUCALLBACKPROC receiveProc, void *userData); Registers a receive callback function which the driver will call when an IR code is received from the air. receiveProc should contain the address of a PUUCALLBACKPROC function defined as : typedef void (WINAPI *PUUCALLBACKPROC) (char *IREventStr, void *userData); When the USB-UIRT receives a code from the air, it will call the callback function with a null-terminated, twelve-character (like IRMAN) ir code in IREventStr. The driver will also pass the parameter userData, which is a general-purpose 32-bit value supplied by the caller to UUIRTSetReceiveCallback. This parameter is useful for carrying context information, etc. Note that the types of codes which are passed to IREventStr are *not* the same as the type of codes passed back from a UUIRTLearnIR call (the codes from a UUIRTLearnIR are much larger and contain all the necessary data to reproduce a code, whereas the codes passed to IREventStr are simpler representations of IR codes only long enough to be unique). UUIRTTransmitIR UUIRTDRV_API BOOL PASCAL UUIRTTransmitIR(HUUHANDLE hHandle, char *IRCode, int codeFormat, int repeatCount, int inactivityWaitTime, HANDLE hEvent, void *reserved0, void *reserved1); Transmits an IR code via the USB-UIRT hardware. The IR code is a null-terminated *string*. codeFormat is a format specifier which identifies the format of the IRCode code. Currently, supported formats are Compressed_UIRT (STRUCT), RAW, and Pronto-RAW. RepeatCount indicates how many iterations of the code should be sent (in the case of a 2-piece code, the first stream is sent once followed by the second stream sent repeatCount times). InactivityWaitTime is the time in milliseconds since the last received IR activity to wait before sending an IR code -- normally pass 0 for this parameter. hEvent is an optional event handle which is obtained by a call to CreateEvent. If hEvent is NULL, the call to UUIRTTransmitIR will block and not return until the IR code has been fully transmitted to the air. If hEvent is not NULL, it must be a valid Windows event hande. In this case, UUIRTTransmitIR will return immediately and when the IR stream has completed transmission this event will be signalled by the driver. The last parameters, labelled 'reservedx' are for future expansion and should be NULL. Attached is dll file. Everybody Please help me. Thank! uuirtdrv.7z
-
UUIRTSetReceiveCallback(HUUHANDLE hHandle, PUUCALLBACKPROC receiveProc, void *userData); Code Change: $result = DllCall("uuirtdrv.dll", "UINT", "UUIRTSetReceiveCallback" ,"UINT",$vers1,"UINT",$vers2,"UINT",$vers3) _ArrayDisplay($result) In Autohotkey ,they used receiver code is USBUIRT_ReceiveIR() { hndl := DllCall("C:\Windows\System32\uuirtdrv.dllUUIRTOpen") getAirIrCodeAddress := RegisterCallback("USBUIRT_AirCode") DllCall("C:\Windows\System32\uuirtdrv.dllUUIRTSetReceiveCallback", UInt, hndl , UInt, getAirIrCodeAddress ; Address of received IR code. , Str, Userdata) ; This parameter is useful for carrying context information, etc. } USBUIRT_AirCode(IrEventStr,Userdata) { VarSetCapacity(IrCode, 12) DllCall("lstrcpy", Str, IrCode, UInt, irEventStr) ; Copy the string into the script's variable. VarSetCapacity(IrCode, -1) ; Update the variable's internally-stored length to reflect its new contents. If IsLabel(IRcode) GoSub, %IRcode% } Can be converted into Autoit ?
-
Thanks!! But I used _ArrayDisplay($result) value is always 0.
-
Thank funkey & John ! I want to use code is UUIRTSetReceiveCallback(HUUHANDLE hHandle, PUUCALLBACKPROC receiveProc, void *userData); UUIRTTransmitIR(HUUHANDLE hHandle, char *IRCode, int codeFormat, int repeatCount, int inactivityWaitTime, HANDLE hEvent, void *reserved0, void *reserved1); Or need to Transform?
-
yes. And i try to use code is : $dll = dllopen("uuirtdrv.dll") while 1 sleep(1000) $result = DllCall($dll, "str", "UUIRTSetReceiveCallback", "100", 0, "int", 0 ) consolewrite($result[0]) or MessageBox(4096,"Test",$result[0]) wend DllClose($dll) uuirtdrv.dll can see function 1.Receiver : UUIRTSetReceiveCallback 2.Send : UUIRTTransmitIR In for loop , the value read is still blank . I would like to read the IR Code.
-
Please help me!! USBUIRT. I need to use the Autoit call USBUIRT Dll. I used uuirtdrv.dll,But can't successfully. I read this article,but can't receiver data. $callR = DllCall($hdll, "UINT_PTR", "UUIRTGetDrvInfo" ,"UINT*",$vers) Use Code: $result = DllCall("uuirtdrv.dll", "str", " UUIRTSetReceiveCallback", "TimeCodeDiagram", 0, "DiagramLength", 0 ) ConsoleWrite( $result ) $result are blank,there should be IR Code. Found Call uuirtdrv.dll founction List: 1.Receiver : UUIRTSetReceiveCallback 2.Send : UUIRTTransmitIR And I Found Autohotkey USBUIRT Library,But I Just want use the Autoit! Please help. Thank!