Jump to content

Recommended Posts

I have the script and if I hit ESC it stops running.
 

HotKeySet("{ESC}", "Terminate")
Func Terminate()
    Exit
 EndFunc

 

But that stops the whole script, I would like to just stop that working function and that is not possible on this way.
Maybe you know how to do it, but I can't find the way. Because once in the function and script is working,
but it doesn't stop the function that the is running. But the whole script.
So what I taught: exit the script but start executable again on Exit.

Is this possible?
 

Link to post
Share on other sites

Maybe you should change the way you are thinking on that function. But if you need to restart your script you can use that function 

 

My UDF: NetInfo UDF Play with your network, check your download/upload speed and much more! YTAPI Easy to use YouTube API, now you can easy retrive all needed info from a video. NavInfo Check if a specific browser is installed and retrive other usefull information. YWeather Easy to use Yahoo Weather API, now you can easily retrive details about the weather in a specific region. No-IP UDF Easily update your no-ip hostname(s).

My Script: Wallpaper Changer Change you wallpaper dinamically, you can also download your wallpaper from your website and share it with all!   My Snippet: _ImageSaveToBMPConvert an image to bmp format. _SciteGOTO Open a file in SciTE at specific fileline. _FileToHex Show the hex code of a specified file

Link to post
Share on other sites
#NoTrayIcon

#Include <Misc.au3>
#Include <Restart.au3>

HotKeySet("{ESC}", "Terminate")

_Singleton('MyProgram')

Func Terminate()
    ;Do what you want
    _ScriptRestart()
EndFunc

Something like that.

Edited by Nessie

My UDF: NetInfo UDF Play with your network, check your download/upload speed and much more! YTAPI Easy to use YouTube API, now you can easy retrive all needed info from a video. NavInfo Check if a specific browser is installed and retrive other usefull information. YWeather Easy to use Yahoo Weather API, now you can easily retrive details about the weather in a specific region. No-IP UDF Easily update your no-ip hostname(s).

My Script: Wallpaper Changer Change you wallpaper dinamically, you can also download your wallpaper from your website and share it with all!   My Snippet: _ImageSaveToBMPConvert an image to bmp format. _SciteGOTO Open a file in SciTE at specific fileline. _FileToHex Show the hex code of a specified file

Link to post
Share on other sites
  • Developers

@Daka,

Please post a working/runable script that shows what you have and where you want this Stop-Function  or restart-script implemented.

Jos 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...