All Activity

This stream auto-updates   

  1. Past hour
  2. and without, because why not. I think this can be further reduced sans regex Local $File_String = "9899673;PROD NAME AAAAAA123456 " & @CRLF & _ " ,213540 ;" & @CRLF & _ "9899680;PROD NAME BBBBBB123456 " & @CRLF & _ " ,213540 ;" & @CRLF & _ "9899687;PROD NAME CCCCCC 123456 " & @CRLF & _ " ,213540 ;" & @CRLF & _ "9899694;PROD NAME AAAAAA 789 " & @CRLF & _ " ,213540 ;" & @CRLF & _ "9899757;PROD NAME BBBBBB 789 " & @CRLF & _ " ,213540 ;" ConsoleWrite(stringreplace(stringreplace(stringreplace(StringStripWS($File_String , 4) , " ," , ";") , "NAME " , "NAME " , 0 , 1) , " ;" , ";"))
  3. a way by using WMI. #include <array.au3> _ArrayDisplay(_GetTaskList()) ; Pass the target computer name for remote clients Func _GetTaskList($strComputer = @ComputerName) If Not Ping($strComputer) Then Return SetError(1, 0, "") Local $usr = "", $pass = ""; set this only if different from current user ; Local $objWMILocator = ObjCreate("WbemScripting.SWbemLocator") Local $objWMIService = $objWMILocator.ConnectServer($strComputer, "\root\cimv2", $usr, $pass, "", "", "&H80") Local $colProcesses = $objWMIService.ExecQuery("SELECT * FROM Win32_Process") If Not IsObj($colProcesses) Then Return SetError(2, 0, "") Local $aProcesses[$colProcesses.count + 1][2] = [[$colProcesses.count, 0]] Local $i = 0 For $objProces In $colProcesses $i += 1 $aProcesses[$i][0] = $ $aProcesses[$i][1] = $objProces.ProcessID Next Return SetError(0, 0, $aProcesses) EndFunc ;==>_GetTaskList
  4. Hello. as soon I can understand You could probably do something like Building your own file format and using FIlelisttoarrayRec and File write/read. Basically You create a File Header base in FileListToArrayRec use some indexs(for easy find your files data in your file) and write files append to your own format. Saludos
  5. MyEarth, So you want a container which holds a folder tree structure - the OS already gives you that, it is called a folder! Or are you really asking for a way to hide the structure inside a folder? If so, how do you expect to be able to access it yourself? And why do you need to do this in the first place? M23
  6. This seems to cover the whole story ? Part II : Consuming .NET Components from COM aware Clients
  7. You can use _BASS_ChannelSetDevice to set the output device you want to. You can use _BASS_GetDeviceInfo to get all the listed audio devices.
  8. Jess, Please post the output SciTE gives you when you run the script. The error cannot be exactly the same as the scripts use different variable names. M23
  9. metkam_42, Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. And hi-jacking a pinned thread in the "Technical Discussion" section to make your first post just makes it worse - whatever made you think that was a sensible thing to do? M23
  10. Today
  11. I was thinking a bit along these lines.... if you look at the IsObj Type result. The return Type of the PSDATACOLLECTION is a .NET System.Base The Return Type is a .NET COM visible Object, correct ? If you read this content here : COM object can be accessed using their CLSID - {81C5FE01-027C-3E1C-98D5-DA9C9862AA21} See here : Using the GetTypeFromCLSID and next use the Activator.CreateInstance(T) Class to access it ? But I am not a COM Guru so I can't tell if this makes sense ? ADDED : this might be related but is Chinese to me :-( ADDED : Passing the Right Type of Object .NET Object types can be used to represent COM VARIANT, IUnknown, or IDispatch types, and .NET integers can be used to represent COM SCODE or HRESULT types DispatchWrapper Used to make an Object look like an IDispatch interface pointer when passed inside a VARIANT. Decimal d = 123.456M; int i = 10; Object o = ... // Pass a VARIANT with type VT_DECIMAL (Decimal) comObj.GiveMeAnything(d); // Pass a VARIANT with type VT_CY (Currency) comObj.GiveMeAnything(new CurrencyWrapper(d)); // Pass a VARIANT with type VT_UNKNOWN comObj.GiveMeAnything(new UnknownWrapper(o)); // Pass a VARIANT with type VT_DISPATCH comObj.GiveMeAnything(new DispatchWrapper(o)); // Pass a VARIANT with whatever the type of the object is. // For example, a String results in type VT_BSTR, and an object like // System.Collections.Hashtable results in type VT_DISPATCH. comObj.GiveMeAnything(o); // Pass a VARIANT with type VT_I4 (long in IDL, Short in VB6) comObj.GiveMeAnything(i); // Pass a VARIANT with type VT_ERROR (SCODE) comObj.GiveMeAnything(new ErrorWrapper(i)); // Pass a VARIANT with type VT_ERROR (SCODE) // using the value of the exception's internal HRESULT. comObj.GiveMeAnything(new ErrorWrapper(new StackOverflowException
  12. For group chats, look at Subscriptions. Example here: - Chat with subscriptions Client to client still have to go through the server, look at post #9. I will add an example for a future release
  13. Thanks a lot Lars, it is one of my goals, associated to these variables to be at a shared mem area. I just did a quick look at your Accessing AutoIt Variables, as I´m at job now. It seems very promising. I will go for it later, by sure! Maybe I can change the pointer of an array variant created on AU3 to the shared area or vice versa, I mean, create an area that mimics an array and make AU3 to think that´s a plain AU3 array? Who knows... I need to read more your post and the UDF... It´s a class in AU3 internals...
  14. Larj, Thanks, ....Good to know we don't have to be shy working with AU3 rather than AHK It's a pitty you don't use PowerShell because it has a lot to offer ! As mentiioned before it can access all .NET classes and much more. But then again if you don't have a use case for it, it makes sense. Junkew, Yes I still hope someone can break this open how to access the PSOBJECT Members which is derived a .NET BASE Object. AutoIt returns these values from IsObj () COM Object Type: $objPsCollection = $pObjectPS.EndInvoke($objAsync) ConsoleWrite("$objPsCollection: " & IsObj($objPsCollection) & @TAB & "$objPsCollection: " & ObjName($objPsCollection) & " - " & ObjName($objPsCollection,6) & " - " & ObjName($objPsCollection,3) & @CRLF)
  15. Is it possible to use bass.dll with several USB-Soundcards? If yes, how can I choose the right one? Thanks. Great dll
  16. It's a good start. You don't need to include WinAPIFiles.au3, so you can delete line #13.
  17. I think u are using a local variable , globaly......
  18. Hi! First let me explain what I'm trying to do. There's an app that I want to use everytime a user logs in windows (I'm using windows 7 by the way). The thing about this app (let's call it app A) is that I can't find any documentation for it therefore I can't use it in command line which complicates the task of automatizing its launch. In order to avoid that problem I've installed on my computer another app (app which allows to modify the keyboard shortcuts and do many cool stuff like moving the mouse to a specified position, clicking, starting programs, etc. Finally, with autoit I've written a small script which calls the right shortcuts I've modified using app B which themselves launch app A with the right parameters. I put the generated .exe in windows' start folder but the problem is that it launchs automatically only when I log in with an admin account, if I use another account nothing happens, I only see a small icon near the clock saying that my "script is paused" and I can't do anything about it. Does anybody know how to make that script work for all types of acounts ? Please help me.
  19. Hi, I have a sroll area and a scroll bar. At PC everything works fine: If I scroll the bar or if I use the mousewheel. But on a WIN 10 tablet it is working only correct, if I use the scroll bar with the finger. Using the finger at the scroll area, everything is asynchronous. Any idea? -> attached Regards Thomas #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <StructureConstants.au3> #include <GUIScrollBars.au3> #include <ScrollBarConstants.au3> #include <ListViewConstants.au3> #include <SendMessage.au3> #include "GuiScroll.au3" ; -> startGui() Func startGui() $Gui = GUICreate("", 700, 600, -1, -1, $WS_POPUP) $up = GUICtrlCreateButton("UP", 10, 10, 80, 40) $down = GUICtrlCreateButton("DOWN", 100, 10, 80, 40) GUICtrlCreateLabel("Schliessen mit ESC", 550, 10, 120, 40) GUIRegisterMsg($WM_MOUSEWHEEL, "_Scrollbars_WM_MOUSEWHEEL") $hScrollPl = GUICreate("$hScrollPl", 500, 400, 10, 100, BitOR($WS_POPUP, $WS_GROUP, $WM_VSCROLL, $WS_CLIPSIBLINGS), $WS_EX_MDICHILD, $Gui) GUISetBkColor(0xffffff) Scrollbar_Create($hScrollPl, $SB_VERT, 400) Scrollbar_Step(10, $hScrollPl, $SB_VERT) _GUIScrollBars_SetScrollInfoMax($hScrollPl, $SB_VERT, 500) $art = GUICtrlCreateLabel("", 1, 1) ; Label für folgenden Focus... $hListV = GUICtrlCreateListView("1|2", 100, 100, 300, 200, BitOR($LVS_REPORT, $LVS_NOCOLUMNHEADER, $LVS_SHOWSELALWAYS)) GUISetState(@SW_SHOW, $Gui) GUISetState(@SW_SHOW, $hScrollPl) GUICtrlSetState($art, $GUI_FOCUS); Focus auf Label von $hScrollPl GUISwitch($Gui) ;GUISetState(@SW_SHOW, $Gui) While 1 $iMsg3 = GUIGetMsg() Switch $iMsg3 Case $GUI_EVENT_CLOSE Exit Case $up MsgBox(0, "Info", "Button up gedrückt") GUICtrlSetState($art, $GUI_FOCUS); Focus auf Label von $hScrollPl Case $down MsgBox(0, "Info", "Button down gedrückt") GUICtrlSetState($art, $GUI_FOCUS); Focus auf Label von $hScrollPl EndSwitch WEnd EndFunc ;==>startGui Func _Scrollbars_WM_MOUSEWHEEL($hWnd, $iMsg, $wParam, $lParam) #forceref $hWnd, $iMsg, $lParam Local $i, $iDirn, $iDelta = BitShift($wParam, 16) ; Mouse wheel movement If BitAND($wParam, 0x0000FFFF) Then ; If Ctrl or Shft pressed move Horz scrollbar $iDirn = $SB_LINERIGHT If $iDelta > 0 Then $iDirn = $SB_LINELEFT For $i = 1 To 7 _SendMessage($hWnd, $WM_HSCROLL, $iDirn) Next Else ; Move Vert scrollbar $iDirn = $SB_LINEDOWN If $iDelta > 0 Then $iDirn = $SB_LINEUP For $i = 1 To 7 ; Schleife regelt die Scroll Geschwindigkeit, je mehr Durchläufe desto schneller _SendMessage($hWnd, $WM_VSCROLL, $iDirn) Next EndIf Return $GUI_RUNDEFMSG EndFunc ;==>_Scrollbars_WM_MOUSEWHEEL
  20. JLogan3o13 - Thanks for the help and the quick response. I ran the example file you suggested and studied the script. I then wrote the attached simple script to do what I wanted to accomplish and ran it. It works. Is the script too simple, too amateurish ? What recommendations would you suggest? Thanks! file read2.au3 message
  21. With ProcessList ( ["name"] ) we are able to get the running process list from the local machine. Is there anyway to get the list from Remote machine, more precisely to get to know the status whether a particular application is running or not on remote machine using AutoIT? We can implement through PSList.exe, but again we need to parse the text of it to read the output. Is there any direct UDF in AutoIT?
  22. Hi. I need a mouse move and click code for a game. This is my example code from visual basic; Imports AutoItX3Lib Public Class Form1 Dim au As New AutoItX3 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click au.Sleep(500) au.MouseClick("right", 400, 150, 1) au.Sleep(500) au.MouseClick("right", 400, 200, 1) End Sub End Class This code works on windows except game screen. How can i work this code on game screen? Thank you.
  23. Sorry if I seem annoying but it use compression...but many thanks for the effort, i'l really apprecciate it
  24. This ZIP UDF seems to use a DLL that is part of the Windows System.
  25. No Melba23.. I am just trying to run that script as it is.
  26. Run("D:\ABS\Install.exe") WinWaitActive("ABS installation setup", "&Next", 100) ; Send("!n") if i run this code directly from autoit , It is working fine. But when i am trying to execute from jenkins , it is getting failed due to the "ABS installation setup" is getting minimized by jenkins.
  27. Very cool! But there are a couple of big problems. 1) It works on file so i lost the folder structure, and that's the main problem 2) Don't move but copy the file inside the container, i need a "cut" operation Is very similar to my goal but i need the folder tree structure...
  1. Load more activity