Jump to content

My program and windows 8


Carter
 Share

Recommended Posts

Hey Autoit community! been using this program for some time now, and i've stumbled across a problem.. and just wondering if someone is able to help me out with that,

Alright so i coded my program to detect a specific color then send a command, this program worked for all OS, but windows 8, I've tried every color just to see if i can get my program running on w8 os. was unable to.

Am i able to modify my script to make such program work with w8 or is there something i could download for Autoit overall?.

Thanks for reading and hope you can help :).

Link to comment
Share on other sites

program i created isn't responding with windows 8

WHILE TRUE
$COLOR=PIXELGETCOLOR(@DESKTOPWIDTH/2,@DESKTOPHEIGHT/2)
IF $COLOR=16711680 OR $COLOR=16646144 OR $COLOR=255 OR $COLOR=990033 OR $COLOR=961635 OR $COLOR=2037680 OR $COLOR=238 OR $COLOR=205 OR $COLOR=2500301 OR $COLOR=2895086 OR $COLOR=3158271 OR $COLOR=3881966 OR $COLOR=4210943 OR $COLOR=6513646 OR $COLOR=6974207 THEN
SEND("{LCTRL}")
ENDIF
WEND

works on all oc's, but windows 8

Link to comment
Share on other sites

You should probably check what the PixelGetColor returns for a value when you run it, then go from there. Because right now, all you know is that the color isn't one that you're checking for, but you don't show what it IS returning.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

Well, this works on win7/everything else i dont' think its my program, i think when i compile my script there is a problem for windows 8 again im not to sure.

Either it's your program or it's Windows 8, without checking the return value, you will never know. Also, are you trying to read a color while the Windows 8 start screen is up, or when the Desktop is visible, or are you trying to read the color from a specific program in the middle of the screen?

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...