
comeonyoureds
Members-
Posts
16 -
Joined
-
Last visited
Everything posted by comeonyoureds
-
Hello! Came across an issue with imagesearcharea().It seems that even though I specify a search rectangle, it still looks at the whole screen, or at least at the full part of the screen that's to the right and down of the screen starting from the initial coordinates.Any ideas why? Thanks!
-
PixelChecksum and cursor
comeonyoureds replied to comeonyoureds's topic in AutoIt General Help and Support
The problem is the application has custom cursors, none are recognizable by MouseGetCursor(). -
Yes, I guess I could do that, but it would probably be too slow for my purpose.I need to look for an object in an area.And the object is dynamic, its graphic changes, so the only way to look for it in an area is move the cursor and look at its shape, because it changes shape while over that object.Capturing the image, saving it, and looking through that image for every let's say 5 pixels in a pretty large area would probably take too long...Maybe there's a different way I could look for the cursor though... Anyway, thanks for the fast answer!
-
Hello! Any idea on how this works while looking for an image? I'm experiencing difficulties while looking for a certain cursor image.Does it look at the cursor while searching or behind it only?Thanks!
-
Hello! I'm trying to detect when my application's custom cursor changes by using PixelChecksum and it is not working, for PixelChecksum returns a different value each time.Any idea why this happens? The cursor does not change at all and I've done several checks and am checking the right area. I've tried using PixelChecksum with a different area of the screen which does not change and it works fine.I'm under the suspicion that the function does not work fine for checking the cursor.Maybe it looks in the image without the cursor or something else is happening. I'd be interesting in finding out both what's going wrong here and if there are any other options to look for a cursor change or even a certain predefined cursor image.I've also tried using ImageSearch UDF and it does not find the cursor image within the window. Any help appreciated!
-
WinActivate by handle
comeonyoureds replied to comeonyoureds's topic in AutoIt General Help and Support
You're absolutely right.Shame on me for not knowing about it.I think it would be best to have it added somewhere at 'Window Titles and Text (Advanced)' in the help. Thanks! -
WinActivate by handle
comeonyoureds replied to comeonyoureds's topic in AutoIt General Help and Support
Alright, I found a way around it.I iterate through the window list and compare the handles to the values saved in the file.It works, but this does not mean the bug isn't still there. WinActivate() does not process well the parameters given if they are not obtained in the current instance of the running script.At least that's what it looks to me like. -
WinActivate by handle
comeonyoureds replied to comeonyoureds's topic in AutoIt General Help and Support
Hello! I'm keeping the application open, I know it will change everytime I run the application.The problem is that I am having several instances of the same application running and one script interfacing with each of them, some non preemptive scheduling and so on.Sometimes the scripts need to be stopped if something goes wrong and restarted from a saved state. And WinGetHandle is also not very reliable, because if there are several instances of the same application, it sorts windows by the last activated one. -
Hello! WinActivate() by handle seems to work only if you get the handle with the WinGetHandle() function in the currently running script.If you pass the handle to it manually by value, or read it even from a file in which you saved the handle you got previously by WinGetHandle(), it fails to work. Any tips on how to fix this behavior? Thanks!
-
Thank you! I already had Opt("TrayAutoPause", 0), but didn't seem to matter.I added Opt("TrayMenuMode", 1) to the code and now it does not pause. Now it seems pretty obvious that the idea is meant to fail.Even the first WinWaitActive fails in the script.I think this is something that might as some point to be considered as a feature request, though the interaction with several desktops isn't probably a simple issue. Anyway, thanks for the time.
-
Hello!I'm trying to write a script for a game.The thing is I need to use sysinternals' free desktops utility (available at http://technet.microsoft.com/en-us/sysinte...s/cc817881.aspx ) that creates 4 desktops.The problem I'm experiencing is that when I change the desktop that runs the script and the application that the script interferes with, the script autopauses to tray. I'm not even sure if is overall possible to use such a feature, but in order to make sure I'd like to know why the script behaves like this and if there is any way to change its behavior. Any help appreciated!
-
Hello! I'm working with graphical objects that don't fit well in a rectangle and noticed that all images are actually rectangles.Is there any way to make imagesearch ignore the part that is added by the image software and treat that as being transparent?Thanks!
-
Hey, there! First I wanna thank you for porting this function into a dll for usage in AutoIT. Secondly, I want to ask if it would be possible to make it support the transparency option.Working with objects that don't fit well in a rectangle I think that would be a really nice feature! From what I understand, the code placed here to support transparency can treat things on the screen as being transparent.I was looking for something that treats part of the image in the file as being transparent. Or maybe I'm just confused
-
Hehe, thanks a lot guys for the additional input, will sure look into all of these!
-
Aye,that would be a non automatic solution.However, it seems that the help file already addresses this problem and the solution seems to be described under the 'Advanced Window Descriptions'. Anyway, thanks for the fast response!
-
Hello! I must first mention that I am very new to AutoIt. The problem is I am starting to write a script and I will be working with several identical windows:several instances of the same process.Looking through the reference, it is not clear on how I could differentiate the windows.Was thinking about using the PID to do that, but could not find a function to return main window handle by PID. So, my question is: how can I differentiate several identical windows based on the PID they belong to? Thank you!