Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

AutoHotkey_L v1.1.08


  • Please log in to reply
51 replies to this topic
Lexikos
  • Administrators
  • 9844 posts
  • AutoHotkey Foundation
  • Last active:
  • Joined: 17 Oct 2006
Yes, that works. Thanks.

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005

Yes, that works.


Thanks for the confirmation. :)

Leef_me
  • Moderators
  • 8510 posts
  • Last active: Sep 10 2015 05:50 AM
  • Joined: 08 Apr 2009
AHK_L version 1.1.07.03
Problem is still present in version 1.1.08.00

Using Pixelsearch, the 'fast' parameter gives errorlevel=2 (instead of expected 1) if no match is found

PixelSearch, OutputVarX, OutputVarY, x,y,x,y, DesiredColor, 5, Fast


Below is a script & results that display the problem.
<!-- l --><a class="postlink-local" href="http://www.autohotkey.com/community/viewtopic.php?p=557239#p557239">viewtopic.php?p=557239#p557239</a><!-- l -->


I use both AHK-basic and AHK_L. I use AHL suffix for AHK_L scripts and AHK for AHK_basic scripts.

It appears that the err= 2 is caused by 'fast' using AHK_L, when the colors don't match.
If I run this same exact script with ahk_basic, the '2' become '1'
It would seem to be a bug in AHK_L
DesiredColor = 0x707070
OtherColor = 0xB07070

CoordMode, ToolTip, screen
CoordMode, Pixel, screen
CoordMode, Mouse, screen

x = 100
y = 100

result := A_ScriptName "  version " A_AhkVersion "`r`r" 

backgroundcolor := DesiredColor

gui, destroy
gui, color, %backgroundcolor%

result .= "background is " backgroundcolor "`r"
result .= "DesiredColor " DesiredColor  

gui, -Caption
gui, show, w%A_ScreenWidth% h%A_ScreenHeight%

 

 PixelGetColor, color, X, Y 

 PixelSearch, OutputVarX, OutputVarY, x,y,x,y, DesiredColor, 5, Fast
 err_5_fast := errorlevel

 PixelSearch, OutputVarX, OutputVarY, x,y,x,y, DesiredColor, 0, Fast
 err_0_fast := errorlevel

 PixelSearch, OutputVarX, OutputVarY, x,y,x,y, DesiredColor, 5, 
 err_5____ := errorlevel

 PixelSearch, OutputVarX, OutputVarY, x,y,x,y, DesiredColor, 
 err_0___ := errorlevel

 result .= "`rPixelGetColor " color "`rerr_5_fast= " err_5_fast "`rerr_0___= " err_0___
 result .= "`rerr_5____= " err_5____ "`rerr_0_fast= " err_0_fast

;==============================================================
 result .= "`r`r"
sleep, 1000
;==============================================================
backgroundcolor := OtherColor

gui, destroy
gui, color, %backgroundcolor%

result .= "background is " backgroundcolor "`r"
result .= "DesiredColor " DesiredColor  

gui, -Caption
gui, show, w%A_ScreenWidth% h%A_ScreenHeight%

 PixelGetColor, color, X, Y 

 PixelSearch, OutputVarX, OutputVarY, x,y,x,y, DesiredColor, 5, Fast
 err_5_fast := errorlevel

 PixelSearch, OutputVarX, OutputVarY, x,y,x,y, DesiredColor, 0, Fast
 err_0_fast := errorlevel

 PixelSearch, OutputVarX, OutputVarY, x,y,x,y, DesiredColor, 5, 
 err_5____ := errorlevel

 PixelSearch, OutputVarX, OutputVarY, x,y,x,y, DesiredColor, 
 err_0___ := errorlevel

 result .= "`rPixelGetColor " color "`rerr_5_fast= " err_5_fast "`rerr_0___= " err_0___
 result .= "`rerr_5____= " err_5____ "`rerr_0_fast= " err_0_fast

sleep, 1000
gui, destroy

msgbox % result

Return



Return
junk2681a.ahl  version 1.1.07.03

background is 0x707070
DesiredColor 0x707070
PixelGetColor 0x707070
err_5_fast= 0
err_0___= 0
err_5____= 0
err_0_fast= 0

background is 0xB07070
DesiredColor 0x707070
PixelGetColor 0x7070B0
err_5_fast= 2
err_0___= 1
err_5____= 1
err_0_fast= 2


Lexikos
  • Administrators
  • 9844 posts
  • AutoHotkey Foundation
  • Last active:
  • Joined: 17 Oct 2006
If I have made an error in the v1.1.08 release, such as uploading the wrong files (or no files) or breaking the installer, it is appropriate to post in this thread. Bug reports, especially those which also relate to earlier versions, should not be posted here.

nskipper1
  • Members
  • 2 posts
  • Last active: Aug 29 2012 08:26 PM
  • Joined: 29 Aug 2012
Any idea why I get the following error when I run AutoHotkey_L_Install.exe on Windows XP sp3 32-bit?

Setup.exe

Error: 0x80020006 - Unknown name.

Specifically: initOptions

Line#
---> 174: w.initOptions(CurrentName, CurrentVersion, CurrentType, ProductVersion, DefaultPath, DefaultStartMenu, DefaultType, A_Is64bitOS)

Continue running the script?

Lexikos
  • Administrators
  • 9844 posts
  • AutoHotkey Foundation
  • Last active:
  • Joined: 17 Oct 2006
nskipper1, please see Re: AutoHotkey_L v1.1.08 [GUI fails].

nskipper1
  • Members
  • 2 posts
  • Last active: Aug 29 2012 08:26 PM
  • Joined: 29 Aug 2012

nskipper1, please see Re: AutoHotkey_L v1.1.08 [GUI fails].


Sorry I didn't see that thread - the title and location are not indicative of my problem.

I restored IE8 advanced settings (Control Panel > Internet Options > Advanced > Restore advanced settings > OK), rebooted, and tried install. Same error.

I reset IE8 settings (Control Panel > Internet Options > Advanced > Reset... > Reset - Delete personal settings left unchecked), rebooted, and install worked flawlessly.

Would never have guessed that IE8 settings would affect the install and have no idea which setting(s) did the trick. All I can say is that I have IE8 locked down really tight as I only use it to get Windows updates (use Firefox and don't trust auto updates). I exported the IE8 settings from the registry before resetting if that would do anyone any good in addressing this issue.