juanamo Posted February 8, 2019 Share Posted February 8, 2019 Hello. I am using Autoit to control a web page that is in FlashPlayer and I need to search some images with ImageSearch. The au3 file is on a server and the image search works well when I connect to a remote desktop and start the script. Also when I run it using psexec and I have the remote desktop open, it also works well for me. The problem I have when I run the script using psexec and I'm not connected by remote desktop. In that case ImageSeach does not find any image. My final idea is to start the script on the server from a web page that will be hosted on that same server. Is it possible to use ImageSearch in background? Thank you. Link to comment Share on other sites More sharing options...
juanamo Posted February 8, 2019 Author Share Posted February 8, 2019 28 minutes ago, juanamo said: Hello. I am using Autoit to control a web page (not a game) that is in FlashPlayer and I need to search some images with ImageSearch. The au3 file is on a server and the image search works well when I connect to a remote desktop and start the script. Also when I run it using psexec and I have the remote desktop open, it also works well for me. The problem I have when I run the script using psexec and I'm not connected by remote desktop. In that case ImageSeach does not find any image. My final idea is to start the script on the server from a web page that will be hosted on that same server. Is it possible to use ImageSearch in background? Thank you. Link to comment Share on other sites More sharing options...
BigDaddyO Posted February 8, 2019 Share Posted February 8, 2019 I'm pretty sure your problem is that without an active connection to the server (RDP), there is no "Active Desktop" to display the image on. This has been discussed many times here and there is no easy solution. Link to comment Share on other sites More sharing options...
juanamo Posted February 9, 2019 Author Share Posted February 9, 2019 Thanks for your quick response. How could I do it? Is it possible to activate the connection to the server (RDP) from the Autoit script? Sorry, but I can not find any solution in the forum. I'm new to this topic ... Thank you. Link to comment Share on other sites More sharing options...
juanamo Posted February 11, 2019 Author Share Posted February 11, 2019 I only have the problem in ImageSearch. The rest, (ControlClick, ControlSend) works well in background ... I hope someone can help me. Link to comment Share on other sites More sharing options...
vane747 Posted February 8, 2021 Share Posted February 8, 2021 @juanamo where you able to solve this problem? I am facing the same issue. Link to comment Share on other sites More sharing options...
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