Jump to content
Sign in to follow this  
Guest sjhlax89

Function to Terminate/Exit

Recommended Posts

Guest sjhlax89

What is the Function to use in v3 in a hotkey if i wanted to to Terminate or exit the program?

Share this post


Link to post
Share on other sites
Matt @ MPCS

What is the Function to use in v3 in a hotkey if i wanted to to Terminate or exit the program?

<{POST_SNAPBACK}>

You have to create a custom function that contains exit... and look up HotKeySet in the help file. Also refer to the topic in the help section called "How to recieve help".

*** Matt @ MPCS

Share this post


Link to post
Share on other sites
Def

HotKeySet("^!x", "capExit")

Func capExit()

Exit

EndFunc

------

This will exit when CTRL-ALT-x is pressed.

Def

Share this post


Link to post
Share on other sites
DaLiMan

Keep in mind that {ESC} is not a good option for this HotKey if you are using Auto-It GUI from which you start different Scripts.

It terminates your GUI script but not the Script of your choice.

I use {SPACE} very often. Easy access and very usefull.

Greetings,

DaLiMan

Share this post


Link to post
Share on other sites
friends

Keep in mind that {ESC} is not a good option for this HotKey if you are using Auto-It GUI from which you start different Scripts.

It terminates your GUI script but not the Script of your choice.

I use {SPACE} very often. Easy access and very usefull.

Greetings,

DaLiMan

<{POST_SNAPBACK}>

well... thanks for the tip ! I just knew it.....

Share this post


Link to post
Share on other sites
DaLiMan

well... thanks for the tip ! I just knew it.....

<{POST_SNAPBACK}>

But some people [like me] aren't that good programmers. :">

And if you like the idea that the [ESC] button exit's your program 'cause this feels so proffesional and works great for a while until you start using Auto-It GUI and then wondering why it doesn't work like it used to....

Well...I thought I just safe somebody some time...... :)

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
Sign in to follow this  

×