Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/02/2021 in all areas

  1. A quickly thrown together example: #include <GuiButton.au3> Global $g_hWnd1, $g_hWnd2 Global $g_hCheckBox Run('MSTSC.exe "C:\Users\Public\Desktop\RDP Consoles\administrator@windows-1.rdp"') ; There's two warning windows that appear $g_hWnd1 = WinWait('Remote Desktop Connection', '', 5) ; Wait for the first warning window If IsHWnd($g_hWnd1) = 1 Then ; Check if the first warning window handle was obtained Sleep(2500) ; Wait 2.5 seconds - without a wait, the buttons aren't clicked $g_hCheckBox = ControlGetHandle($g_hWnd1, '', '[CLASS:Button; INSTANCE:1]') ; Get the control handle for the checkbox _GUICtrlButton_SetCheck($g_hCheckBox, True) ; Check the checkbox ControlClick($g_hWnd1, '', '[CLASS:Button; INSTANCE:11]') ; Click the Yes button EndIf Sleep(1000) $g_hWnd1 = WinWait('Remote Desktop Connection', '', 5) ; Wait for the second warning window If IsHWnd($g_hWnd1) = 1 Then ; Check if the second warning window handle was obtained Sleep(2500) ; Wait 2.5 seconds - without a wait, the buttons aren't clicked $g_hCheckBox = ControlGetHandle($g_hWnd1, '', '[CLASS:Button; INSTANCE:3]') ; Get the control handle for the checkbox _GUICtrlButton_SetCheck($g_hCheckBox, True) ; Check the checkbox ControlClick($g_hWnd1, '', '[CLASS:Button; INSTANCE:5]') ; Click the Yes button EndIf Sleep(1000) $g_hWnd1 = WinWait('administrator - windows-1', '', 5) ; Wait for the Remote Desktop Connection to appear If IsHWnd($g_hWnd1) = 1 Then ; Check if the Remote Desktop Connection window handle was obtained WinClose($g_hWnd1) ; Close the window $g_hWnd2 = WinWait('Remote Desktop Connection', '', 5) ; Wait for the close confirmation window If IsHWnd($g_hWnd2) = 1 Then ; Check that we found the above window ControlClick($g_hWnd2, '', '[CLASS:Button; INSTANCE:1]') ; Click Yes EndIf WinWaitClose($g_hWnd1, '', 5) ; Wait for the RDP to close EndIf
    1 point
  2. JockoDundee

    Using BinarytoString

    Much like removable drawers in an IKEA wardrobe
    1 point
  3. "Find" and "Next" buttons are for searching a character string in the playlist. You should enter some characters in the input box in front of them to do a search. Again this behaviour is beyond my comprehension. I'm also curious to know the reason behind this. It may have something to do with your AutoIt and/or SciTE versions. Can you please try the compiled version which you can download HERE?
    1 point
  4. I have had a simple Autoit script running for a few years now on my Win 7 laptop. Once started it just runs until the machine is restarted, usually when Windows Update requires this, otherwise the machine runs 24/7. I just upgraded the laptop to Win 10. Everything works still, except... I was puzzled that my script did not run at the set time, so I looked around, and clicked the desktop icon for the autoit file which starts it up. "The file this link relates to has been deleted or moved", or words to that effect. It took me ages using an unfamiliar system to track the file down (whatever was so wrong with My Computer that they had to change it ? Why can I no longer just click on a column header to sort files like the rest of the world does ? (did) - grumble, grumble, grumble). When I found it, I clicked on it and was told that "Windows 10 can not run this file" (or words to that effect). No hint as to why not. With the best will in the world, all I can do now is shout "PLEASE HELP!". Is there any point in rewriting the script, possibly installing AutoIt and compiling it on the machine the script is going to run on ? The original script was written on a Vista machine, and only the compiled exe file was on the Win7 (now Win10) machine. Of course, it does not help that I am not yet familiar with the Win10 way of doing things, and I avoided Win 8, so some aspects of the new O/S are baffling. All the script does is shut down a program and start it again, in order to break the data the program produces into usable 24 hour sessions. It operates at an unsociable hour, well after bedtime, because that's when the data flow is slowest, so very little is lost during the process. Thanks Michael Hooker
    1 point
  5. Version 1.2

    492 downloads

    Hi, this is a Nonogram Game. It is compiled for windows in 32bit (64bit does not work as intended!), sourcecode in v3.3.14.5, icon and the required ini file with more than 100 puzzles. The Game has an built-in Editor, and can generate random playfields.
    1 point
  6. vulcan4d

    Image Search UDF

    Same issue with error but only on a fresh Win10 machine. ! Dll not found or Call Dll error ! The script works just fine on an existing Win10 computer but if you run this on a fresh installed Win10 machine 32 or 64bit this is the error you get. Same script, same files, same locations. There is clearly some kind of pre-requisite to use the DLL Call. If there is any debug method I can provide this information.
    1 point
×
×
  • Create New...