Zeusking

Script run in background

7 posts in this topic

#1 ·  Posted

Hello guys, can autoit do clicks only in the background window?

Ex: When activate the macro just click on the minimized window, causing me can to use the PC normally when the script rolls

Share this post


Link to post
Share on other sites



#2 ·  Posted

Yes, look at the Control* commands in the help file (ControlClick, ControlSend, etc.). These will allow you to interact with a minimized or hidden window. As for "using PC normally" while your script runs, it really depends on exactly what you are doing. If you could give us an idea of what you're trying to accomplish we will do our best to assist.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

@JLogan3o13

I need a script to click when a message appear, but you only can see the message if you have the window openned, and i need the PC free to use.

Edited by Zeusking

Share this post


Link to post
Share on other sites

#4 ·  Posted

Again, "a message" is pretty broad, is this a pop up message in a desktop app, a message on a web page, etc.? The more detail you provide the better we can assist. If it is a pop up message on a desktop app, use the AutoIt Window Info Tool (in the same directory where you installed AutoIt) to get the information about the window, then use either WinClose or ControlClick to close it.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#5 ·  Posted

Just now, JLogan3o13 said:

Again, "a message" is pretty broad, is this a pop up message in a desktop app, a message on a web page, etc.? The more detail you provide the better we can assist. If it is a pop up message on a desktop app, use the AutoIt Window Info Tool (in the same directory where you installed AutoIt) to get the information about the window, then use either WinClose or ControlClick to close it.

Yes is it, i already made the script to click on it, its working well, but now i need to run it in background,

 

this is my script

 

Quote

#include <ImageSearch2015.au3>

$x1=0
$y1=0


$picture = "Sim.bmp"
Do
 $result = _ImageSearch($picture,1,$x1,y1,0,0)

   
Until $result = 1;
if $result=1 Then
   MouseClick("left", $x1, $y1,1,1)
Else
   MsgBox(0,"MSG","End")
   EndIf

 

Share this post


Link to post
Share on other sites

#6 ·  Posted

You basically quoted the message, but didn't really reply to any of the points made.

I think imagesearch only works with visible stuff.

WinExists with winclose as was already suggested could work.

 


Spoiler

Paster - Main function is to paste text, but has more functions.

OpenW - Open With... alternative, Open any file with any application, set it's icon, set application as default.

Renamer - Rename files and folders, remove portions of text from the filename etc.

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Firefox Profile Backup - Backup/restore previously saved profile.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Share this post


Link to post
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