Jump to content

All Activity

This stream auto-updates     

  1. Past hour
  2. Hello, I'm just starting with autoit. I have a question. I wrote a short script. How do you add to it to check if the given coordinate is in a given color, if so, then click the right mouse button? It's my script:
  3. Uia and control functionality should not be mixed as that will not work. Study examples from uia thread or try simplespy that will give some direction.
  4. The version that you are looking for is now called _DebugArrayDisplay.
  5. Today
  6. Hi, I used older version of AutoIt and ArrayDisplay had these buttons of Copy data, copy data and rows/columns number, Exit script. I am on latest version and these buttons are gone. It was very convenient. Is it possible to get it back?
  7. Oh so I'm basically not allowed to get help if it's for a game. Sounds fair enough. Thank you,
  8. Yesterday
  9. Hi everyone, I just found out that I can create a script to click for me (I'm using it for a game to get some bonuses and stuff while sleeping), not really sure how I got in the cave I was in. I did some additional research and found out I could make it non-intrusive, so I could watch a movie, or do anything else while the clicks still go. I did found the controlsend[raw] and controlclick pages, but I can't make them work for some reason, I'm pretty sure I'm terrible. I'll paste below my script that I use that is doing everything I want it to do: WinActivate("WindowNameExample") while 1 Sleep(25) MouseClick ("left", 255, 250) Sleep(25) MouseClick ("left", 105, 250) Sleep(25) MouseClick ("left", 180, 250) Sleep(500) MouseClick ("left", 1040, 600) Sleep(33000) MouseClick ("left", 965, 806) Sleep(500) MouseClick ("left", 1040, 600) Sleep(33000) MouseCLick ("left", 1095, 309) Sleep(25) MouseCLick ("left", 1155, 395) Sleep(25) Wend Could anyone provide me some guidance on how to use controlsend[raw] and controlclick please? Thank you in advance.
  10. Define pulse, and wrists. Is a pulse a send? I'm not understanding if it's a programmatic send, or user based send. There is no way a human can send quicker than the 10 ms sleeps....that's 100 individual presses a second. You can remove all sleeps, but watch one of your cpu cores go up to 100% #include <Misc.au3> HotKeySet("{ESC}", "_Exit") $sendCount = 0 While 1 If _IsPressed("70") Then $sendCount += 1 While _IsPressed ("70") WEnd ContinueLoop EndIf Sleep(10) WEnd Func _Exit() MsgBox(1,1,$sendCount) Exit EndFunc if that's not fast enough, then AutoIT is not the solution you are looking for...slightly modified to include sleeps when the current loop did not have _ispressed. Proof of concept...I compiled and started the above, and then ran: AutoItSetOption("SendKeyDelay",5) For $i = 1 To 40 AutoItSetOption("SendKeyDownDelay",Random(10,100,1)) Send("{F1}") Next Send("{ESC}") The message box displayed 40 Just for fun, I did this one to see how fast I can send '0' repeatedly: HotKeySet("{ESC}", "_Exit") $j = TimerInit() $sendCount = 0 While 1 If _IsPressed("30") Then $i = TimerInit() $j = TimerDiff($j) While _IsPressed ("30") WEnd ConsoleWrite(TimerDiff($i) & @TAB & $j & @CRLF) $j = TimerInit() ContinueLoop EndIf Sleep(10) WEnd Func _Exit() Exit EndFunc output: TimeKeyIsDown|TimeWaitForNextSend 38.5811 1433.9669 60.3951 75.5055 57.3372 63.8362 19.618 96.3084 35.7309 85.2414 10.7798 85.2756 38.7877 51.8923 42.2014 73.8966 41.3293 64.4828 29.7217 86.5125 37.8254 64.5799 55.5981 63.7196 52.7291 64.0097 52.5025 62.7217 38.963 77.1272 58.137 62.738 49.7552 76.4725 68.762 63.2584 55.5568 64.6286 36.5252 84.6798 75.4104 75.4531 53.4436 52.8638 44.8142 86.4005 61.8499 84.044 57.119 74.213 40.9023 95.4116 67.0561 84.0198 59.6137 61.6889 30.9173 95.3387 51.887 94.1365 42.998 63.1183 9.6173 116.8636 30.0914 85.7146 22.4921 93.7678 47.7521 84.4666 43.1216 61.6884 29.9012 86.1493 36.3007 84.6724 25.0176 86.1363 40.8244 84.9485 35.4981 85.6375 26.3855 84.7178 27.4497 73.2501 5.444 95.4684 humans are pretty slow...I was able to see 2 sends less than 10 MS , but that is an like in the 3 sigma range. I'd be lucky if I got 11 sends a second.
  11. I'm baffled at something - For what purpose you need this functionality? I've never heard the need for such a thing.
  12. English is not my first language, but that seems to me like Egyptian. And I know nothing about it. Take a look at a global callback, I hardly can think of a faster method.
  13. Thanks for this 2nd chance 🙂. Also, I have studied the forum rules well. 😀
  14. add the control class and it's instanse .. You can get them from ( Au3info.exe tool) .. Just move the (finder tool) to the control of the window.. Then, double click on the (class and instanse) in the (advanced mode) to copy it
  15. Ah ... the victim role. I am not shedding any tears as you know that you were not banned because nobody helped you. You will be on a very short leece so 1 single "mistake" will get you banned. Jos
  16. I dont have any code to share here, but an opinion about the services udf, which is that it will randomly cause your service to crash/stop. I had to create a service to run on 500 pcs, and be very reliable, and that was not it. In the end, I created a script with a while loop that just never exited, and used nssm to register the service with windows. Now, two years later, the numbers of times I've known this service to crash is in single digits.
  17. Also, I have suffered from his problem.. And that took many time and effort of search.. Because no one helped me 😒💔
  18. I am just helping him, which is not against forum rules!.
  19. Correct me if I'm wrong. The first script create a directory either in C:\Program Files (x86)\teste or C:\Program Files\teste. Then create a service called Agente - Teste and finally give you a message box to show you if there were any errors creating the services. What I don't see is the part of the first script copying Agente.Teste.exe into C:\Program Files\teste? That could be the reason for error 1053 "not respond in a timely fashion.
  20. *** Detailed properties of the highlighted element *** UIA_title:= <Weiter> UIA_text:= <Weiter> UIA_regexptitle:= <Weiter> UIA_class:= <Button> UIA_regexpclass:= <Button> UIA_iaccessiblechildId:= <0> UIA_id:= <btnWeiter> UIA_handle:= <0> UIA_RuntimeId:= <7;4480;42202994> UIA_BoundingRectangle:= <1203;614;100;25> UIA_ProcessId:= <4480> UIA_ControlType:= <50000> UIA_LocalizedControlType:= <Schaltfläche> UIA_Name:= <Weiter> UIA_AccessKey:= <W> UIA_HasKeyboardFocus:= <True> UIA_IsKeyboardFocusable:= <True> UIA_IsEnabled:= <True> UIA_AutomationId:= <btnWeiter> UIA_ClassName:= <Button> UIA_ClickablePoint:= <1253;626> UIA_Culture:= <0> UIA_IsControlElement:= <True> UIA_IsContentElement:= <True> UIA_IsPassword:= <False> UIA_NativeWindowHandle:= <0> UIA_IsOffscreen:= <False> UIA_Orientation:= <0> UIA_FrameworkId:= <WPF> UIA_IsRequiredForForm:= <False> UIA_IsDockPatternAvailable:= <False> UIA_IsExpandCollapsePatternAvailable:= <False> UIA_IsGridItemPatternAvailable:= <False> UIA_IsGridPatternAvailable:= <False> UIA_IsInvokePatternAvailable:= <True> UIA_IsMultipleViewPatternAvailable:= <False> UIA_IsRangeValuePatternAvailable:= <False> UIA_IsScrollPatternAvailable:= <False> UIA_IsScrollItemPatternAvailable:= <False> UIA_IsSelectionItemPatternAvailable:= <False> UIA_IsSelectionPatternAvailable:= <False> UIA_IsTablePatternAvailable:= <False> UIA_IsTableItemPatternAvailable:= <False> UIA_IsTextPatternAvailable:= <False> UIA_IsTogglePatternAvailable:= <False> UIA_IsTransformPatternAvailable:= <False> UIA_IsValuePatternAvailable:= <False> UIA_IsWindowPatternAvailable:= <False> UIA_ValueIsReadOnly:= <True> UIA_RangeValueValue:= <0> UIA_RangeValueIsReadOnly:= <True> UIA_RangeValueMinimum:= <0> UIA_RangeValueMaximum:= <0> UIA_RangeValueLargeChange:= <0> UIA_RangeValueSmallChange:= <0> UIA_ScrollHorizontalScrollPercent:= <0> UIA_ScrollHorizontalViewSize:= <100> UIA_ScrollVerticalScrollPercent:= <0> UIA_ScrollVerticalViewSize:= <100> UIA_ScrollHorizontallyScrollable:= <False> UIA_ScrollVerticallyScrollable:= <False> UIA_SelectionCanSelectMultiple:= <False> UIA_SelectionIsSelectionRequired:= <False> UIA_GridRowCount:= <0> UIA_GridColumnCount:= <0> UIA_GridItemRow:= <0> UIA_GridItemColumn:= <0> UIA_GridItemRowSpan:= <1> UIA_GridItemColumnSpan:= <1> UIA_DockDockPosition:= <5> UIA_ExpandCollapseExpandCollapseState:= <3> UIA_MultipleViewCurrentView:= <0> UIA_WindowCanMaximize:= <False> UIA_WindowCanMinimize:= <False> UIA_WindowWindowVisualState:= <0> UIA_WindowWindowInteractionState:= <0> UIA_WindowIsModal:= <False> UIA_WindowIsTopmost:= <False> UIA_SelectionItemIsSelected:= <False> UIA_TableRowOrColumnMajor:= <2> UIA_ToggleToggleState:= <2> UIA_TransformCanMove:= <False> UIA_TransformCanResize:= <False> UIA_TransformCanRotate:= <False> UIA_IsLegacyIAccessiblePatternAvailable:= <True> UIA_LegacyIAccessibleChildId:= <0> UIA_LegacyIAccessibleName:= <Weiter> UIA_LegacyIAccessibleRole:= <43> UIA_LegacyIAccessibleState:= <1048580> UIA_LegacyIAccessibleKeyboardShortcut:= <W> UIA_LegacyIAccessibleDefaultAction:= <Drücken> UIA_IsDataValidForForm:= <False> UIA_ProviderDescription:= <[pid:4480,providerId:0x0 Main(parent link):Unidentified Provider (managed:MS.Internal.Automation.ElementProxy, PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)]> UIA_IsItemContainerPatternAvailable:= <False> UIA_IsVirtualizedItemPatternAvailable:= <False> UIA_IsSynchronizedInputPatternAvailable:= <True>
  21. #include<array.au3> Local $array = [["name 0", "Peter"], ["name 1", "Paul"], ["name 2", "Mary"], ["name 3", "Mary"], ["name 4", "Charles"], _ ["name 5", "Elizabeth"], ["name 6", "Victoria"], ["name 7", "Mary"], ["name 8", "Tom"], ["name 9", "Paul"]] For $i = ubound($array) - 1 to 0 step -1 $aFnd = _ArrayFindAll($array , $array[$i][1] , 0 , $i - 1 , 0 ,0 , 1) If @error Then ContinueLoop _ArrayDelete($array , _ArrayAdd($aFnd , ubound($aFnd) , 0)) $i -= ubound($aFnd) - 1 Next _ArrayDisplay($array) For the edge case where you want the last entry for each.
  22. Hey guys, sorry if Im asking a noob question but I was try to find out myself and cant get it. Im using autoit for a long time to use packaging software installations for a software deployment solution, but just in case that the setup doesnt understand any parameters. Now Ive a very hard case. Im always trying to use controlclick, but in this case the controls will not recognized from the autoit info window and not from control viewer. so I was thinking to use coordmode, but the setup needs some time for initial loading and in this time it shows a loading screen which has the same title like the window where ive to click the next button. So I think its better to get controlclick to work, for a better reliabe way. I was starting to use UIA spy and get some window information and tried to it for clicking, but it just clicks nothing. Here are more detailed informations: My script looks currently like this: #RequireAdmin ;BlockInput(1) ConsoleWrite("blubb3") WinWaitActive("NEVARIS 2019 Setup") ConsoleWrite("blubb1") ;While Not ControlCommand("NEVARIS 2019 Setup","","[CLASS:TextBlock; _Weiterr]","IsEnabled","") ; Sleep(500) ;WEnd Sleep(2000) ControlClick("NEVARIS 2019 Setup","","[CLASS:Button; Title:Weiter]") ConsoleWrite("blubb2") Sleep(2000) Can someone assist and has an idea what ive to use for Controlclick? thanks in advanced! regards
  23. the "Allow the service to interact with the desktop" feature has been deprecated since Windows Server 2008 (and Windows Vista for desktop systems). here is a nicely-written blog post describing the issues it caused. the official approach is not to have the service interact with the desktop, but to communicate with a client application that runs under the user context. search the forum and wiki for "IPC" (Inter-Process Communication) for details on how to implement this.
  24. Hey, I found a better website that allows game automation. It also allows donald duck to mix meth with viagra.
  1. Load more activity
×
×
  • Create New...