dinzing Posted January 16, 2012 Share Posted January 16, 2012 hi there i was wondering if anyone can point me in the right direction for some info on how to use ImageSearch with autoit 3 ive been searching all over for it and never find anything i did manage to find someones project on sourceforge that is using ImageSearch but has no info as to how to use it or make my own script using it thanks kindly inadvance for and help/info "Time Is God" Link to comment Share on other sites More sharing options...
JohnOne Posted January 16, 2012 Share Posted January 16, 2012 hi there i was wondering if anyone can point me in the right direction for some info on how to use ImageSearch with autoit 3 ive been searching all over for it and never find anything i did manage to find someones project on sourceforge that is using ImageSearch but has no info as to how to use it or make my own script using itthanks kindly inadvance for and help/infoWhat, everything except put the word onto the search field and click? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
dinzing Posted January 16, 2012 Author Share Posted January 16, 2012 im kinda new (can you tell) and was hoping for some better info as to haw to use it the only example i found used SerachClick.au3 as well do i need this or can i just use imageserch ? is there a better discription of use other then the comments in imageserch.au3 ¿ "Time Is God" Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted January 16, 2012 Moderators Share Posted January 16, 2012 Hi, Dinzing. A search of this forum reveals 146 topics, many with examples. I would suggest reading through these to find just what you're looking for.Some examples I found in just a few moments of searching: "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! Link to comment Share on other sites More sharing options...
dinzing Posted January 17, 2012 Author Share Posted January 17, 2012 i guess i realy am that new and was fogeting to switch the serch to Forum instead of "this Topic" sry for that tho i still cant find anything for SearchClick im guessing it was made by the owner of the post i found on SourceForge my next question is how would i get imageserch to loop looking for something on screen while the rest of the script continues to run and if the loop finds what its looking for it should pause or restart the main script ?? "Time Is God" Link to comment Share on other sites More sharing options...
dinzing Posted January 25, 2012 Author Share Posted January 25, 2012 ok so i think i got this all figured out except i cant seam to get it to click the image $result = _ImageSearch("imgs/test.png", 1, $x1, $y1, 80) If $result = 1 Then MouseClick("left", $x1, $y1, 3) Sleep(100) EndIf "Time Is God" Link to comment Share on other sites More sharing options...
JohnOne Posted January 25, 2012 Share Posted January 25, 2012 (edited) What does imagesearch return? What is imagesearch supposed to return? Edited January 25, 2012 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Belini Posted January 26, 2012 Share Posted January 26, 2012 Move the mouse pointer to image found. #include <ImageSearch.au3> $x1=0 ;inicia variáveis de posição $y1=0 HotKeySet("{ESC}", "_Exit") ;Define Hotkey pra finalizar o script if FileExists("affe.bmp") == 0 then ;verifica se a imagem de referência existe MsgBox(0,"Error","The sample was not found.") exit EndIf While 1 Sleep(200) ;intervalo do loop $result = _ImageSearch("test.bmp",1,$x1,$y1,0);((caminho)imagem de referência,tolerância, ;$x e $y variáveis que serão atribuidas a posição da imagem ;se a posição a ser retornadada é o meio ou o topo esquerdo da imagem ;0 pra centro e 1 pra topo esquerdo) função retorna 1 se encontrar, 0 se não encontra if $result=1 Then ;faz a condição MouseMove($x1,$y1,3) ;move o ponteiro do mouse para as posições geradas na função MsgBox(0,"Found","picture found.") EndIf Wend Func _Exit();função para finalizar o script Exit 0 EndFunc My Codes: Virtual Key Code UDF: http://www.autoitscript.com/forum/topic/138246-virtual-key-code-udf/ GuiSplashTextOn.au3: http://www.autoitscript.com/forum/topic/143542-guisplashtexton-udf/ Menu versions of Autoit: http://www.autoitscript.com/forum/topic/137435-menu-versions-of-autoit/#entry962011 Selects first folder of letters: ]http://www.autoitscript.com/forum/topic/144780-select-folders-by-letter/#entry1021708/spoiler] List files and folders with long addresses.: http://www.autoitscript.com/forum/topic/144910-list-files-and-folders-with-long-addresses/#entry102 2926 Program JUKEBOX made in Autoit:some functions:http://www.youtube.com/watch?v=WJ2tC2fD5Qs Navigation to search:http://www.youtube.com/watch?v=lblwOFIbgtQ Link to comment Share on other sites More sharing options...
dinzing Posted February 2, 2012 Author Share Posted February 2, 2012 ok so i got it all working now the only thing left is to have image search loop looking for a image to pop up while the rest of the script continues to run if it finds the image then pause do somethign adn contnue most of it i can figue out now im just not sure how to get part of a script to loop and let the rest of it still run ? i could make a second script but would like to learn how to do it all in one if theres a way "Time Is God" Link to comment Share on other sites More sharing options...
Belini Posted February 8, 2012 Share Posted February 8, 2012 Look for help in the autoit AdlibRegister My Codes: Virtual Key Code UDF: http://www.autoitscript.com/forum/topic/138246-virtual-key-code-udf/ GuiSplashTextOn.au3: http://www.autoitscript.com/forum/topic/143542-guisplashtexton-udf/ Menu versions of Autoit: http://www.autoitscript.com/forum/topic/137435-menu-versions-of-autoit/#entry962011 Selects first folder of letters: ]http://www.autoitscript.com/forum/topic/144780-select-folders-by-letter/#entry1021708/spoiler] List files and folders with long addresses.: http://www.autoitscript.com/forum/topic/144910-list-files-and-folders-with-long-addresses/#entry102 2926 Program JUKEBOX made in Autoit:some functions:http://www.youtube.com/watch?v=WJ2tC2fD5Qs Navigation to search:http://www.youtube.com/watch?v=lblwOFIbgtQ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now