Jump to content
gurrenm3

How to do image searching with multi-threading

Recommended Posts

Posted (edited)

I’m not sure this is even the right forum to post in for this

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites
12 minutes ago, Earthshine said:

I’m not sure this is even the right forum to post in for this

Neither do I !!

Spoiler

Quote from the video 1 : "... take our bot to the next level, that you have never seen before" 🙄


Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

Share this post


Link to post
Share on other sites
Posted (edited)


----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

In this video we'll cover one way to multi-thread image searches. While its technically not true multi-threading, but it works the same as if it were true multithreading. I don't explain how to do image searching or how to do multi-threading in this video, to find them you'll have to check my playlist on how to use autoit

Edited by gurrenm3

Share this post


Link to post
Share on other sites

If by bot stuff you mean using autoit at all then yeah, bot stuff. No where in this video is any reference to or even remotely hinting at game botting. Just wanted to point that out. All I'm trying to do is help people learn cool stuff they can do in autoit. If you or anyone else has any suggestions on where I should move this post and any future posts like it, I'm all ears and happy to accommodate.

Share this post


Link to post
Share on other sites

Lol believe me I am terrified I'll be even remotely close to that in my videos lol. Scared straight for sure

Share this post


Link to post
Share on other sites
Posted (edited)

Is using the word bot one time to refer to the program that controls my pc and automates tasks all messed up? I thought thats what these programs are called. Is using that adjective once to describe by program, not even in a game related way at all, against the rules? I'm still new to the community but I wasn't aware that I couldn't even refer to my program as a bot, because I thought thats what they were. You could have the allowed bots, like one that imports and exports data to excel spread sheets. There could also be the bad bots that are not allowed. Please explain to me where the line in word choice is, because I'm genuinely trying to help the community, and I'm not trying to get banned because I used a word thats not even specific as to what I mean.

If my response doesn't seem coherent, its because I've messed up twice on this forum already, and if I mess up again I won't be able to post on it. I am genuinely trying to help teach people autoit, and I am not trying to promote anything against the ToS.

Edited by gurrenm3

Share this post


Link to post
Share on other sites
Posted (edited)

You might be right. I'm still new to all of this, I just want to share what I have learned. Maybe there's people out there who can be helped by this. Thanks for your encouragement. Have a happy new year :)

Edited by gurrenm3

Share this post


Link to post
Share on other sites
1 hour ago, gurrenm3 said:

I am genuinely trying to help teach people autoit, and I am not trying to promote anything against the ToS.

I am convinced, that your intentions are honorable.
By definition, a bot (robot) is a computer program that executes repetitive tasks largely automatically without the need for interaction with a human user. 

You are right when you say, that there should be a separation between good and malicious bots. The problem is, that the whole subject is ambivalent and therefore often a damn grey zone. For example, some substances can be both, a drug (prohibited) and a medicine (beneficial).

Fortunately, we have moderators who are making the right decisions (mostly ;)).

I am sure no one here is naive enough to believe, that we can prevent malicious bots in general. We can only try to keep our own house clean. Any idiot can type some obvious search terms into Google and find the relevant sources.


Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

Share this post


Link to post
Share on other sites

Merged topics, please stop posting in multiple spots.

For those that continue to click Report, a Mod has already deemed this content okay to continue. Continued reports, especially those that begin with "This may not break the rules, but personally I don't like..." are really unnecessary.


"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites

Thanks for your support Musashi! I appreciate it. Yeah, it certainly is difficult, especially like how you pointed out, any idiot can do a google search. It's good to know there are people willing to help keep the place clean :D
 

Also I appreciate your input junkew. That is something I didnt think about. I'll have to think about it and come up with a solution.

And thanks JLogan for merging the posts. I was confused where I should be posting them. I know that I'm no expert at autoit, but i figure if I can at least get people in the door, we can maybe improve the community. I'll work harder to make content that the community accepts. 

Happy new years everyone!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By nacerbaaziz
      goodmorning; autoit team
      please their are any youtube search way working?
      because i was using the get source and split it to get the result but know it does not working any way.
      is the youtube disabled that? and is their any other simple way to do that?
      i tested all examples found in this post but also it don't work
      https://www.autoitscript.com/forum/topic/123945-youtube-search/
      and here is the example that i use to and it don't work any more
      local $hSearchOpenHNDL, $hSearchConnect, $sSearchGet local $a_UrlsArray[1][5] local $b_ButtonsDisabled = false, $b_SearchBTNFocus = false, $b_SearchListFocus, $h_SearchFocusHND local $Return = "0" local $s_OpenStringY = "/feed/trending" local $ChannelUrl = "", $channelName = "" if Not ($a_YoutubeSearchArray[0][0] = 0) then GUICtrlSetData($searchInp, $s_youtubeSearchLastSearch) $s_OpenStringY = "/results?search_query=" & StringReplace(GUICtrlRead($searchInp), " ", "+") $a_UrlsArray = $a_YoutubeSearchArray for $i = 1 to $a_UrlsArray[0][0] _GUICtrlListBox_AddString($SearchList, $a_UrlsArray[$i][0] & $a_UrlsArray[$i][2] & $a_UrlsArray[$i][3]) next _GUICtrlListBox_SetCurSel($SearchList, $I_youtubeSearchLastIndex-1) GUICtrlSetState($SearchList, $GUI_focus) else if Ping("youtube.com", 1000) > 1 then $hSearchOpenHNDL = _WinHttpOpen('') if not (@Error) then $hSearchConnect = _WinHttpConnect($hSearchOpenHNDL, "youtube.com") if Not (@Error) then $sSearchGet = _WinHttpSimpleRequest($hSearchConnect, "get", $s_OpenStringY) if not (@Error) then local $a_strings = _StringBetween($sSearchGet, '<a href="/watch', "<ul") local $title = "" local $url = "" local $length = "" local $result = "" GUICtrlSetData($SearchList, "") ReDim $a_UrlsArray[1][5] for $i = 0 to UBound($a_strings)-1 $url = _StringBetween($a_strings[$i], "?", '"') if @error then ContinueLoop $url = "https://www.youtube.com/watch?" & $url[0] $title = _StringBetween($a_strings[$i], 'dir="', '</a>') if @error then ContinueLoop $title = $title[0] $title = StringRegExpReplace($title, '(.*\"\>)', "") if StringRegExp($a_strings[$i], '[0-9]{1,2}\:[0-9]{1,2}\:[0-9]{1,2}', 0) = 1 then $length = StringRegExp($a_strings[$i], '[0-9]{1,2}\:[0-9]{1,2}\:[0-9]{1,2}', 2) elseIf StringRegExp($a_strings[$i], '[0-9]{1,2}\:[0-9]{1,2}', 0) = 1 then $length = StringRegExp($a_strings[$i], '[0-9]{1,2}\:[0-9]{1,2}', 2) else $length = "" endIf if IsArray($length) then $length = ": (" & $length[0] & ")" else $length = "" endIf $ChannelUrl = stringRegexpReplace($a_strings[$i], '(^.*?<a.*?\"(\/user|\/channel))+', "$2") $channelName = stringRegexpReplace($ChannelUrl, '(.*?\".*?>)(.*</a>)+', "$2") $ChannelUrl = stringRegexpReplace($ChannelUrl, '(\".*)+', "") $channelName = stringRegexpReplace($channelName, '(</a>.*)+', "") $result &= $title & @crlf & $url & @crlf ReDim $a_UrlsArray[UBound($a_UrlsArray)+1][5] $a_UrlsArray[UBound($a_UrlsArray)-1][0] = $title $a_UrlsArray[UBound($a_UrlsArray)-1][1] = $url $a_UrlsArray[UBound($a_UrlsArray)-1][2] = $length if not ($channelName = "") then $a_UrlsArray[UBound($a_UrlsArray)-1][3] = ", (" & $channelName & ")" if not ($channelUrl = "") then $a_UrlsArray[UBound($a_UrlsArray)-1][4] = "https://www.youtube.com" & $channelUrl $a_UrlsArray[0][0] = UBound($a_UrlsArray)-1 _GUICtrlListBox_AddString($SearchList, $a_UrlsArray[UBound($a_UrlsArray)-1][0] & $length & $a_UrlsArray[UBound($a_UrlsArray)-1][3]) next endIf endIf endIf endIf endIf  
      i hope any one can help me
      thanks in advance
    • By coronatuss
      Hello everyone,
      Im developing an script to check the size of all .jpg stored in windows folder.
      The problem is that it doesn´t work properly with rotated images. 
      With _GDIPlus_ImageGetWidth() and _GDIPlus_ImageGetHeight()  I get the Width and Height of images as if they had not been rotated, and I need to know how they are rotated (orientation and grades).
      Any help is welcome! If more info is needed, please tell. 😁
    • By paradox109
      Hello, 
      I have A simple question about http request. What would be the fastest way to send mupltiple http request at the same time with autoit? The only way i figured  out was to to start multiple processes. This way works fine but its not really a good way. What user would like to see 15 processes running in the background at the same time. I know multithread is also not available in autoit.
    • By nacerbaaziz
      hello autoit team
      please i've a question for you.
      am creating a audio player
      and in this audio player i want to show the current trac info
      such as the total time and the position ... etc
      i know i can show it as label
      but the screen reader for the blind read the text every change
      because it have a screen scan
      what i want is to show this informations but such image or icon
      i mean i need to create
      GUICtrlCreatepic or GUICtrlCreateicon ....
      or some thing as that
      and show this informations as image on it
      i think that i can do that with the 
      _GDIPlus functions
      but i couldn't find the currect way to do it
      i tried the _GDIPlus_GraphicsDrawString
      but i couldn't know how it work
      what i need is a small example that create a GUI
      and add a multy line text to it as graphic or image.
      so i need a simple way because it will changed every sec
      i hope any one can help me to do that
      global $GUI = GUICreate("text", 400, 400) global $label = GUICtrlCreateLabel(GetText(), 10, 10, 380, 380) GUISetState() do sleep(100) until GUIGetMSG() = -3 exit func GetText() return StringFormat("file name is test.mp3 \r\n total time is 00:30:00 \r\n position is 00:05:50") endFunc  
    • By therks
      So I don't have any code cooked up yet as this is still in the theoretical stage. Just looking for some advice.
      My current idea is to resize the image to 1x1 pixel, probably using _GDIPlus_ImageResize, and read the color of the resulting pixel to obtain an admittedly very general sense of brightness. Does anyone think this could work?
      We have a CCTV system running at home using some home made cameras (raspberry pi) and we're trying to automate toggling settings for day/night time. We started with an AutoIt script that checked sunrise and sundown times for our location (calculations pulled from here) and toggled the settings based on that. Unfortunately our weather varies wildly, so it can get light/dark far outside normal sunrise/sundown times. Now we're hoping to periodically grab a still from the camera and toggle the light mode based on that.
×
×
  • Create New...