gehenna Posted February 21, 2010 Posted February 21, 2010 (edited) a while ago I was making a program which used this lovely function a lot. I made arrays with pixel values of something on the screen. an icon or a letter. then I saved these arrays in a String. and then, once I had a database of saved arrays, I could look around the screen by comparing arrays from the screen and arrays from my database and therefore find whatever I wanted on the screen. a primitive form of OCR I guess. the only thing is now...the PixelGetColor() function is a lot slower. I used to be able to take 100x100 arrays (100x100 pixel pictures) but now it takes ages. anybody else had a similar problem? I know I am now on another PC so that could be the cause, but the hardware is much better. I am also using windows 7 whereas before I used xp. I guess people here have made some form of OCR. if yes, how did you solve this issue? if you have to look through the entire screen for one letter for example, there is no way you will get done in time. even in a low resolution like 800x600. calling the PixelGetColor() 800*600 times just wont work so I am guessing there is a way around this to get an array of your screen? Edited February 21, 2010 by gehenna
Moderators Melba23 Posted February 21, 2010 Moderators Posted February 21, 2010 gehenna, You might get some more information here - it seems it is a Win 7 problem. I do not use the function much, so I cannot offer anything more than that, sorry. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
MHz Posted February 21, 2010 Posted February 21, 2010 (edited) I know I am now on another PC so that could be the cause, but the hardware is much better. I am also using windows 7 whereas before I used xp.Windows 7 and the lovely compositing of the graphics. You may need to turn off the fancy compositing effects to get good performance. XP does not do that compositing so has better performance with graphical functions.Edit:Ooh, the quote is not quoting correct. Hmm, title ] was missing. Edited February 21, 2010 by MHz
JohnOne Posted February 21, 2010 Posted February 21, 2010 Something to do with aero ? There was a function about somewhere to turn that off and on, so you could turn it off in script and back on, on exit. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
gehenna Posted February 21, 2010 Author Posted February 21, 2010 hmm, ill try and turn of Aero and the other fancy windows 7 stuff and see how it goes. thanks for the advice
AdmiralAlkex Posted February 21, 2010 Posted February 21, 2010 Please take a look at THIS thread, I talked a bit about why it happens, and posted code to fix it in a user-friendly way.Please note that Windows Vista seems to not respond correctly to that function, as noted in the 2 last posts. I don't know why that happens. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
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