Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/01/2023 in all areas

  1. For those of us on the forum that simply don't have the ability or the time to thoroughly learn programming processes required to implement the current solutions such as selenium, webdriver or the old chrome.au3 (no longer functional), I invite you to try the Automa Extension. It is a free and open-source project on GitHub. https://github.com/AutomaApp/automa With the use of this extension and Autoit, I've managed to do things I could only imagine of doing in the past. I wanted to share this incredible find with the Autoit community especially those who have been frustrated and have failed in their attempts to automate their browser activities.
    1 point
  2. This is a workaround: #include <GUIConstantsEx.au3> $hMain = GUICreate('Example') $cButton = GUICtrlCreateButton('Click me', 100, 100, 150, 30) GUISetState(@SW_SHOW, $hMain) While True $aMsg = GUIGetMsg(1) Switch $aMsg[0] Case -3 Exit Case $cButton MsgBox(0, 'Yayyy', 'You left clicked me!') Case $GUI_EVENT_SECONDARYDOWN If ButtonClicked($hMain, $cButton, $aMsg) Then MsgBox(0, 'Yayyy', 'You right clicked me!') EndSwitch WEnd Func ButtonClicked($hWin, $cButton, $aMsg) Local $aPos = ControlGetPos($hWin, '', $cButton) If $aMsg[3] > $aPos[0] And $aMsg[3] < $aPos[0] + $aPos[2] Then If $aMsg[4] > $aPos[1] And $aMsg[4] < $aPos[1] + $aPos[3] Then Return True EndIf EndIf Return False EndFunc
    1 point
  3. ..I can relate, I don't like reading nor thinking myself
    1 point
  4. HotKeySet('a', 'Test') ConsoleWrite(IsHotkeyRegistered(0x41) & @CRLF) ; vKey for letter A ConsoleWrite(IsHotkeyRegistered(0x42) & @CRLF) ; vKey for letter B Func IsHotkeyRegistered($vkCode) Local $aCall = DllCall('user32.dll', 'bool', 'RegisterHotKey', 'hwnd', Null, 'int', 1, 'uint', 0x4000, 'uint', $vkCode) If $aCall[0] = 0 Then Return True Else DllCall('user32.dll', 'bool', 'UnregisterHotKey', 'hwnd', Null, 'int', 1) Return False EndIf EndFunc Func Test() ConsoleWrite('Yayyy!' & @CRLF) EndFunc
    1 point
×
×
  • Create New...