Posts: 12
Threads: 5
Joined: May 2007
i have made a macro using functions but for some reason they wont shut of using the pause break on the keyboard or shut off till u exit the macro totally.......can some 1 help me in this area is there a command to add to the code or something i have not done im totally stuck
Posts: 45
Threads: 15
Joined: Jul 2006
You could make seperate macro with... shutdown -6 0 "your function" and assign a hotkey you want... thats a simple way i guess
Posts: 12
Threads: 5
Joined: May 2007
no i think i didnt exspalin myself very well i want the macro function to run till its performed its action soon as it has i want it to turn of automatically....by itself does that make it any clearer
Posts: 1,769
Threads: 410
Joined: Feb 2003
sounds like you made it a function.
only macros end with the Pause/break key.
Posts: 12
Threads: 5
Joined: May 2007
yes but is there a way of making the function turn of when u want it to ie.......is there another way of pause breaking a function other than pause break or exiting the macro completely
Posts: 1,769
Threads: 410
Joined: Feb 2003
if you want it to 'turn off' while it's in a rep loop you can use 'end' or 'break' at the appropriate time. or you can shut it off with another macro/function using 'shutdown'.
im not sure if youre confused about this point but 'pause/break' doesn't 'pause' the macro it ends it.
Posts: 4
Threads: 0
Joined: May 2007
UK_BAD_BOY Wrote:yes but is there a way of making the function turn of when u want it to ie.......is there another way of pause breaking a function other than pause break or exiting the macro completely
If I understand you correctly then I believe that Ken and Gin are right. If you wanted to make a function shut off like a macro would, just simply make another macro with:
shutdown -6 0 "Functions Name Here"
inside of it and if you wanted just give the macro the trigger "G" to make it shutdown the function you assign with the Pause/Break key.
Posts: 9
Threads: 0
Joined: Nov 2006
Andy,
Just put this code somewhere in the function:
If that code is in a loop, then it will catch when the user hits F12 and then end. You can also create another macro that will call the shutdown as stated in a previous reply.
-kam
Posts: 12
Threads: 5
Joined: May 2007
THXS BRO WORKED A TREAT THXS FOR YOUR HELP