Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/16/2022 in all areas

  1. That's not there yet for the OP as long as the group is "New Members"
    2 points
  2. Hello. I'm trying to create a bot that when you press a key it would scan a window and if it finds certain words, the mouse would go to that position and it would press on the word. The windows I use is SCRCPY, a mirror that lets you use your phone on your computer, connected via USB. For this reason, the window helper doesn't show any visible / hidden text. I've been looking for scripts around this forum for a couple of days but everything seems very complicated and I barely understand anything. Any ideas how I can achieve this while also keeping the code simple and make it scan fast enough (i can only give it a couple of seconds before the text disappears)?
    1 point
  3. You're using the results incorrectly. Try this -- ConsoleWrite('> ' & @ScriptLineNumber & ' = ' & _WinAPI_GetBinaryType(@ScriptDir & '\32bit\chromedriver.exe') & " - " & @extended & @CRLF) ConsoleWrite('> ' & @ScriptLineNumber & ' = ' & _WinAPI_GetBinaryType(@ScriptDir & '\32bit\geckodriver.exe') & " - " & @extended & @CRLF) ConsoleWrite('> ' & @ScriptLineNumber & ' = ' & _WinAPI_GetBinaryType(@ScriptDir & '\32bit\msedgedriver.exe') & " - " & @extended & @CRLF) ConsoleWrite('> ' & @ScriptLineNumber & ' = ' & _WinAPI_GetBinaryType(@ScriptDir & '\64bit\chromedriver.exe') & " - " & @extended & @CRLF) ConsoleWrite('> ' & @ScriptLineNumber & ' = ' & _WinAPI_GetBinaryType(@ScriptDir & '\64bit\geckodriver.exe') & " - " & @extended & @CRLF) ConsoleWrite('> ' & @ScriptLineNumber & ' = ' & _WinAPI_GetBinaryType(@ScriptDir & '\64bit\msedgedriver.exe') & " - " & @extended & @CRLF) 😆
    1 point
  4. OP - What I guess Nine is suggesting to you, is learn to walk before you run. Get to know the basics of coding first, and like good folk we will help you. A bit like someone teaching another to fish, but not doing the fishing for them. Kind of - we help you to help yourself. All of us here are unpaid volunteers, with a varying level of expertise, and don't worry about looking foolish, as we have all been there ... a beginner who doesn't know or understand much. This site is not a Code It For You site, it is more a teaching interactive site. We work with you to get to where you want to go. So make a start.
    1 point
  5. I remade my post because my first post was formatted wrong and it was stupid. This should be easier. (why does the website not allow deleting posts?!) I'm trying to find out why this returns Restart when the input is anything except shutdown. it can be Google or Chrome or Google Chrome or even something random but still returns Restart. If the input is shutdown it runs shutdown normally. #include <Constants.au3> #include <Array.au3> #include <MsgBoxConstants.au3> #include <WinAPIFiles.au3> #include <File.au3> Local $a, $b, $c, $d Local $aFileList = _FileListToArray("C:\Users\333el\Dropbox\IFTTT", Default, Default, True) aLoop() Func aLoop() Local $aFileList = _FileListToArray("C:\Users\333el\Dropbox\IFTTT", Default, Default, True) While @error = 4 Sleep(3000) $aFileList = _FileListToArray("C:\Users\333el\Dropbox\IFTTT", Default, Default, True) WEnd arun() EndFunc Func arun() $aFileList = _FileListToArray("C:\Users\333el\Dropbox\IFTTT", Default, Default, True) _PathSplit($aFileList[1], $a, $b, $c, $d) MsgBox($MB_SYSTEMMODAL, "Test", "Found: " & $c) If $c == "shutdown" Then FileDelete($aFileList[1]) MsgBox($MB_SYSTEMMODAL, "Test", "Shutdown") ;Shutdown(1) Exit ElseIf $c == "reboot" or "restart" Then FileDelete($aFileList[1]) MsgBox($MB_SYSTEMMODAL, "Test", "Restart") ;Shutdown(2) Exit ElseIf $c == "Google" or "Chrome" or "Google Chrome" then FileDelete($aFileList[1]) ShellExecute("chrome.exe", "http://URL1 --new-window --start-fullscreen") Else FileDelete($aFileList[1]) aLoop() EndIf EndFunc
    1 point
  6. No problem, btw, you can edit your posts by clicking the 3 small dots in the upper right corner of your post, there's an edit option.
    1 point
  7. My guess is probably through the tag data or through the execution of some javascript and the resulting data. You can scrape web pages information via downloading the source code and parsing through it. Anything stock related is usually hidden bc so many have made stock bots. The selling of stock trading data has turned into its own industry. It's ridiculous really.
    1 point
  8. The one thing I liked about AutoIt, and most scripting languages, is that you don't have to compile it before you can run it. You just run the code, and if there's an error, it's easy to fix it and run it to test it again. There's no waiting for the compiler to run, no need for anything else to happen, they just run. The second best thing I love about AutoIt is that it's case insensitive for variables and function names. I know a lot of people cringe when they see that, but too bad, I like it. Also, no stupid line endings like in a C/C++ program, I mean seriously, what is the semi colon for? What semi-literate programmer ever uses a run on line of code, and why allow it in the first place?
    1 point
  9. AutoIt is a pretty good all-rounder, generally being capable of doing most things, and far speedier to get up & running than other languages in that regard, though not speedier when it comes to process execution, which is one of its few downfalls, but which rarely matters normally. At the end of the day, you should use the right tool for the right job, but if your Toolbox only contains AutoIt, you are still looking damn good and cooking with fire in 95%+ instances.
    1 point
×
×
  • Create New...