Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 10:25

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



AutoIt Problem

Discussion on AutoIt Problem within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
CantShutMyMouth's Avatar
 
elite*gold: 0
Join Date: Apr 2012
Posts: 380
Received Thanks: 163
AutoIt Problem

I have an autoIt problem. I'm running in a main file more autoit files :Run('"' & @AutoItExe & '" /AutoIt3ExecuteScript "1.au3"')


I run more of them . But i get no ideea on how to stop them with a hotkeyset and a function. If i'm trying to stop them by closing the "autoit3.exe" process, the first closed is the main one , so it won't execute the rest anymore. So the executed first are still there. Any ideea on how to solve this???
CantShutMyMouth is offline  
Old 07/13/2013, 00:38   #2
 
Cpt.Cock's Avatar
 
elite*gold: 1
Join Date: Dec 2012
Posts: 315
Received Thanks: 28
You can set Hotkeys:
PHP Code:
HotKeySet("{F5}","_stop" 
Then you just create the function _stop
PHP Code:
Func _stop()
 Exit
EndFunc 
If you now press F5 once for every Window it should close
Cpt.Cock is offline  
Old 07/13/2013, 01:09   #3
 
CantShutMyMouth's Avatar
 
elite*gold: 0
Join Date: Apr 2012
Posts: 380
Received Thanks: 163
Come on, i tried it already, i'm not so noob )
CantShutMyMouth is offline  
Old 07/13/2013, 10:04   #4
 
FacePalmMan's Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 426
Received Thanks: 129
Code:
#include <Misc.au3>
if not _ispressed("1B") then Run('"' & @AutoItExe & '" /AutoIt3ExecuteScript "1.au3"')
hotkeyset sets a function that should be run if that button was pressed. _ispressed asks if a button is pressed and returns a value to the variable where you wrote the _ispressed in.
FacePalmMan is offline  
Reply




All times are GMT +1. The time now is 10:26.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.