
jvetter713
Active Members-
Posts
30 -
Joined
-
Last visited
Everything posted by jvetter713
-
Fantastic. Thanks.
-
If you were to iterate thru all of the controls within the window would you be able to pick the correct control that way? If so then you can get at its id. Otherwise Im not aware of any way to get at a control unless you have its id
-
Perhaps this could turn into a cooperative project. Let me know what you think. UIUC.Win32.rar
-
There appear to be a relatively small number of .NET developers that make use of the ActiveX DLL. I spent quite a bit of time writing a wrapper project in VB.NET 2.0 and would be happy to post it if anyone is interested. It is a work in progress and is not finished by any means but does have a pretty large amount of functionality that is nicely organized. Let me know if interested and I'll post it!
-
Okay, thanks Jon.
-
How can I highlight a control on an external app? I cant seem to find any method to do it. Is it a matter of having to manually paint it on?
-
I figured it out. $btn1 is actually an array and thats why I couldnt get the info i wanted. How can I code button click events and other messages after I have dropped a control onto an external app? Here is my code: #include <ANYGUI.au3> #include <guiconstants.au3> $Targetwindow = _GuiTarget ("Form2", 1); mode 1 set so all '_Targetadd(s) go to this window $btn1 = _TargetaddButton ( "Button1", 30, 100, 100, 50); GUISetState(@SW_SHOW); While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $btn1 msgBox(4096, "", "Preparing") ;Button1_Click() EndSelect Sleep(50) WEnd ;Func Button1_Click() ;MsgBox(4096, "", "Button1 Clicked") ;EndFunc I am never getting into Case $msg = $btn1
-
How can I code button click events and other messages after I have dropped a control onto an external app? Here is my code: #include <ANYGUI.au3> #include <guiconstants.au3> $Targetwindow = _GuiTarget ("Form2", 1); mode 1 set so all '_Targetadd(s) go to this window $btn1 = _TargetaddButton ( "Button1", 30, 100, 100, 50); GUISetState(@SW_SHOW); While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $btn1 msgBox(4096, "", "Preparing") ;Button1_Click() EndSelect Sleep(50) WEnd ;Func Button1_Click() ;MsgBox(4096, "", "Button1 Clicked") ;EndFunc I am never getting into Case $msg = $btn1
-
I figured it out and will share what I did if anyone is interested.
-
autoitx + vb.net 2003 = 'System.NullReferenceException' ?
jvetter713 replied to v3n0m's topic in AutoItX Help and Support
Dim cAutoit As New AutoItX3Lib.AutoItX3 -
Is there anyway I can retrieve the ouput of a function from a compiled script? For example, if I have the following script that I compile: func Test() Return "Hello" EndFunc Is there anyway I can run this (Like from the Command Prompt) and have it return to me the text? The reason I want this ability is because I use the ActiveX version and there are many functions that just arent in there....GUICreate being one of them. I thought I might be able to compile something like: Func CreateAutoItxGui($WindowTitle, $parent = "", $width = 0, $height = 0, $left = -1, $top = -1, $style = -1, $exStyle = -1) Return GUICreate($WindowTitle, $width, $height, $left, $top, $style, $exStyle, $parent) EndFunc And then be able to execute that from a .NET program....something like: Dim objProcess As New Process objProcess.StartInfo.UseShellExecute = False objProcess.StartInfo.RedirectStandardOutput = True objProcess.StartInfo.RedirectStandardInput = True objProcess.StartInfo.FileName = "C:\CommandLineTest.exe" objProcess.Start() Dim strOutPut As String = objProcess.StandardOutput.ReadToEnd MsgBox(strOutPut) Any ideas?
-
Wow, very nice. Thanks guys!
-
Using one of the GUICtrlCreate functions to create a control and *place* it on an external application form? Im looking for a way to add a button to an external app.
-
WinGetClassList is Truncating the class names
jvetter713 replied to jvetter713's topic in AutoItX Help and Support
I suppose I could do this: For Each Class that WinGetClassList returns, iterate thru looking for classname + '1', + '2', etc.. -
WinGetClassList is Truncating the class names
jvetter713 replied to jvetter713's topic in AutoItX Help and Support
Is there a different method I can call to get all classNames from a window? -
Below is the results from calling: TextBox2.Text = mobjWinManager.AutoItx.WinGetClassList("Form1", "") WindowsForms10.EDIT.app4 WindowsForms10.BUTTON.app4 WindowsForms10.EDIT.app4 WindowsForms10.BUTTON.app4 WindowsForms10.SysListView32.app4 However, the correct name of these classes according to to the AutoIt v3 Active Window Info tool is: WindowsForms10.EDIT.app42 WindowsForms10.BUTTON.app42 WindowsForms10.EDIT.app41 WindowsForms10.BUTTON.app41 WindowsForms10.SysListView32.app41 Does the last number in app42 and app41 indicate a numbering system perhaps? That the class name is actually WindowsForms10.EDIT.app4 and the 1 or 2 at the end simply indicates which one? I have a controls class that populates himself with every control from a given window. If WinGetClassList will not indicate the exact class name that I will be using to interact with that control, how am I supposed to accomplish this? Thanks in advance Jason
-
Reading ListView32 and SysTreeView32 controls
jvetter713 replied to Fur's topic in AutoIt Technical Discussion
Any chance at all at exporting the functions so I can access them via COM? -
Any idea how long until the next ActiveX Dll will be released? The beta has nice new functionality that would be great to utilize. Thanks
-
May I also suggest this: Public oAutoIt as New AutoItX3Lib.AutoItX3 Wouldnt you prefer early binding and the intellisense support!?!?!
-
Im trying to figure out how to both remove an item from a listview and also how to change the text for a listview item's subitem. Im using VB.NET and am accessing the listview just fine. I can loop thru it and read its values but I cannot figure out how to remove or alter items/subitems. Thanks! Jason
-
Thank you
-
I am using Version 3. Or do you mean since Im not programming directly in AutoIT and rather in VB.NET using AutoIT im posting in the wrong area?
-
Yes, my app works 100% on all computers that have done a full AutoIT install. But for computers that have not done the full AutoIT install, my app crashes immediately.
-
Im programming in VB.NET and im using the COM dll. Simply including the Interop.AutoItX3Lib.dll that Visual Studio creates is not enough when I deploy this project to another computer. In order for my app to work I have to do a full install of AutoIT as well. Is there a way around this? How can I successfully deploy a project that references the AutoIT dll? Thanks