Jump to content

ShawnJ007

Members
  • Posts

    8
  • Joined

  • Last visited

ShawnJ007's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. This looks so promising! I've been trying to interface with a comvisible=false .NET DLL for quite some time now with no luck. I've tried reading through the MSDN resources on the topic, but I'm a little confused as where to get started... Any advice on how to create the manifest and required files for this technique from a DLL? Is there an easy way to view/browse the methods within the DLL that have become ready for use? PTrex your work is really impressive! Thanks!~
  2. Edit: I meant "combobox" in the title, not combobar lol. Hey guys, I created a GUI using the RibbonsBar UDF from the German AutoIT site (http://www.autoit.de/index.php?page=Thread&threadID=12698), and I placed a combobox in the middle of one of the ribbon sections. When i try to open the combobox, it does not respond because the ribbonbar is in front of it... i'm guessing. The combobox is still displayed. When i move the combobox down a few pixels, below the ribbonbar, it functions correctly. I was wondering if anyone could help me figure out how to properly place the combobox on top of the ribbonbar (or within it), thus making it functional. If you add a combobox in to the UDF's sample, you'll experience what i'm facing. Thanks
  3. Thanks Richard, I'll reach out to the developers to try and get a comvisible-enabled build of the DLL.
  4. Hi there, I'm trying to interface with a software program that has an API via .NET DLL. I'm used to creating programs with COM objects (ObjCreate), but i'm not able to register the .NET DLL because comvisible is set to false. I have registered DLLs before, but this one gives the following error: C:\Windows\Microsoft.NET\Framework\v2.0.50727\Regasm.exe wrote: RegAsm : warning RA0000 : No registry script will be produced since there are no types to register. Can someone help get me started with access the methods within the DLL without registering it? Thanks
  5. Hey JDelaney, I usually create a small utility to indicate the mouse x/y, and I take pseudo-code notes while hovering over the areas i want to click on. While 1 ToolTip( MouseGetPos(0) & " : " & MouseGetPos(1) ) sleep(100) WEnd When creating the pseudo-code, I often follow a system that allows me to easily replace text afterwards with actual autoit code. For example, I'd start hovering over the target areas and then write ; Click at 400, 900 - ;Click on text field ; Type "Hello" - ;Type in hello in the field ; Click at 450, 1200 - ;Click on ok button Once i'm done, i can then use the replace function to replace "; Click at" with "Mouseclick("left", " and "; Type " with "Send(" and then " - ;" with ")". Hope this helps
  6. Try adding in a sleep(500) or sleep(1000) before WEND.
  7. Ah Ha! I figured it out. I was able to have all of the data stored in the $response variable by changing: $response = $responseMsgSet.ResponseList.GetAt(0) to $response = $responseMsgSet.ToXMLString() All of this was outlined deeper in the documentation for the SDK.
  8. Hi there, This is my first time working with COM and SDKs, so I'm learning as I go. I need some help and clarification... I'm working on converting a sample script for a SDK from VB to Au3. I'm getting an error message when trying to store data received from the SDK in to a variable. Please have a read below and let me know what you think I'm doing wrong. I really need to understand how VBs "Dim response As Object 'IResponse" initialization statement is reflected in the Au3 language. I've been playing around with another sample, and it stored the data from the SDK in to the response variable without any issue, and I was able to view the data. This sample however, halts and presents the error in the code snip below. Correct me if I'm wrong; the "triggers" in the COM are called Interfaces right? Under that assumption, "ISessionManager", "ICustomerQuery", "IMsgSetResponse", and "IResponse" are some of the many interfaces listed in the SDK. ...wait a sec is ' similar to ; and used for commenting? lol how do I initialize a new object type variable in au3? Related parts of the VB Sample Code: Dim sessionManager As Object 'Q7B.ISessionManager Set sessionManager = New Q7BLib.ISessionManager Dim requestMsgSet As Object 'IMsgSetRequest Set requestMsgSet = sessionManager.CreateMsgSetRequest("", 6, 0) 'Add the request to the message set request object. Dim customerQuery As Object 'ICustomerQuery Set customerQuery = requestMsgSet.AppendCustomerQueryRq 'Set the elements of ICustomerQuery. customerQuery.ORCustomerListQuery.CustomerListFilter.MaxReturned.SetValue 1 ' Uncomment the following to see the response XML for debugging MsgBox requestMsgSet.ToXMLString, vbOKOnly, "RequestXML" ' Perform the request Dim responseMsgSet As Object 'IMsgSetResponse Set responseMsgSet = sessionManager.DoRequests(requestMsgSet) ' Uncomment the following to see the response XML for debugging MsgBox responseMsgSet.ToXMLString, vbOKOnly, "ResponseXML" ' Interpret the response Dim response As Object 'IResponse Dim statusCode, statusMessage, statusSeverity ' The response list contains only one response, ' which corresponds to our single request Set response = responseMsgSet.ResponseList.GetAt(0) statusCode = response.statusCode statusMessage = response.statusMessage statusSeverity = response.statusSeverity MsgBox "Status: Code = " & CStr(statusCode) & _ ", Message = " & statusMessage & _ ", Severity = " & statusSeverity & vbCrLf My Au3 Code: dim $MySessionManager = ObjCreate("Q7BLib.ISessionManager") If @error Or Not IsObj($MySessionManager) Then MsgBox(16, "My First App", "Unable to create COM Session: Session Manager") Exit EndIf $MyDBResponse = $MySessionManager.CreateMsgSetRequest("CA", 6, 0) If @error Then MsgBox(16, "My First App", "Unable to Create MsgSetRequest") Exit EndIf $requestMsgSet = $MySessionManager.CreateMsgSetRequest("", 6, 0) $customerQuery = $MyDBResponse.AppendCustomerQueryRq $customerQuery.ORCustomerListQuery.CustomerListFilter.MaxReturned.SetValue(1) $responseMsgSet = $MySessionManager.DoRequests($requestMsgSet) ;How can I view the response XML here similar to the VB code? $response = $responseMsgSet.ResponseList.GetAt(0) ;I want to then view the data in $response.statusCode, $response.statusMessage, and $response.statusSeverity in a msgbox. AutoIT Console Error: : ==> Variable must be of type "Object".: $response = $responseMsgSet.ResponseList.GetAt(0) $response = $responseMsgSet.ResponseList^ ERROR >Exit code: 1 Time: 0.509 Thanks Guys
×
×
  • Create New...