Jump to content

ashbeast

Members
  • Posts

    7
  • Joined

  • Last visited

ashbeast's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thanks but how to Bold only sundays of every month ?
  2. Hello , I need help in GuiMonthCal control, I want user to select any date expect sunday so every sunday in the calender should be disabled or something so that user cant select it Is it possible to do so ?
  3. What rules did i violated now ? I am not making any scripts for automation in google chrome I am just testing image search whether it works on seperate window or not google chrome is just an example this script posted above is made only for testing image search while testing i encountered this problem I am not DOING any EULA violation with this script
  4. Hi , I was trying to use image search function on specific window in this case it is google chrome but image search area isnt working it still searches the image with respect to desktop screen not with respect to google chrome window here is my code #include <ImageSearch.au3> #include <MsgBoxConstants.au3> Opt("CaretCoordMode", 2) Opt("MouseCoordMode", 2) HotKeySet("p", "checkForImage") HotKeySet("q", "closei") global $y = 0, $x = 0 Func checkForImage() WinActivate("[CLASS:Chrome_WidgetWin_1]","") Sleep(500) local $search = _ImageSearchArea('D:\autoit progs\on1.bmp',1,490,177,610,227,$x,$y ,80) If $search = 1 Then MouseMove(537, 197, 10) MsgBox($MB_SYSTEMMODAL ,"Image", "Found") Else MsgBox($MB_SYSTEMMODAL , "Image" ,"Not Found") EndIf EndFunc Func closei() Exit EndFunc while 1 sleep(200) WEnd Help is appreciated
  5. yes you are right
  6. this is my full code AutoItSetOption("MouseCoordMode", 0) AutoItSetOption("PixelCoordMode" ,0) Sleep(1000) Local $hWhnd = WinGetHandle("[CLASS:FIFAKC]") WinActivate($hWhnd) $aCoord = PixelSearch(274,94 , 291, 118,0xFDCE29,$hWhnd) If Not @error Then MouseMove(324, 199,5) Sleep(1000) MouseDown($MOUSE_CLICK_LEFT) ; Set the left mouse button state as down. Sleep(100) MouseUp($MOUSE_CLICK_LEFT) ; Set the left mouse button state as up. Sleep(500) MouseMove(866, 286,5) Sleep(500) MouseDown($MOUSE_CLICK_LEFT) ; Set the left mouse button state as down. Sleep(100) MouseUp($MOUSE_CLICK_LEFT) ; Set the left mouse button state as up. $E = True ;ExitLoop Else Sleep(3000) EndIfPixel search should be done respective to the active window not the screen so that even if i move the window it should search according to window if i remove $hWhnd in pixel search everything works fine but it searches according to screen pixels not window pixels
  7. Hello , Im doing a pixel color search and if color found do some actions else do some acions here is my code $aCoord = PixelSearch(214,93 , 226, 109,0xFDCE29 ,$hWhnd) If Not @error Then MouseMove(252, 201,5) Sleep(1000) MouseDown($MOUSE_CLICK_LEFT) ; Set the left mouse button state as down. Sleep(100) MouseUp($MOUSE_CLICK_LEFT) ; Set the left mouse button state as up. Sleep(500) MouseMove(866, 286,5) Sleep(500) MouseDown($MOUSE_CLICK_LEFT) ; Set the left mouse button state as down. Sleep(100) MouseUp($MOUSE_CLICK_LEFT) ; Set the left mouse button state as up. $E = True ;ExitLoop Else Sleep(3000) EndIfProblem is its not searching for the pixel whether the color is matched or not matched its exicuting the if part only why ?
×
×
  • Create New...