Sign in to follow this  
Followers 0
WannaLearnPls

Solved!!

7 posts in this topic

#1 ·  Posted (edited)

argh... wrong section :/

Edited by WannaLearnPls

Share this post


Link to post
Share on other sites



So.. I want to stop running my script when I press a hotkey (lets say f5) WHENEVER I want.. I know how to detect what key is pressed and such BUT since my script has a bunch of loops, I'd have to press f5 when that loop is over, or hold it, so the keystroke can be detected at the right IF statement...

...I was wondering if there was such thing to make a hotkey that no matter where the algorythm is at, it can help me exit the script or redirect it to a different function..

Hope you guys can get what I mean :(

Thanks in advance >_<

Are you running in OnEvent mode?

If so, when you are executing one of these long functions has the function been called directly by an event? Ie did you register the function as a handler for an event?


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

i was using _IsPressed function between if statements, but i already got the answer from the other forum, thanks though >_<

however, its odd that you were able to quote me a while later after i edited my 1st post.. unless you took a lot of trouble to reply and took you all that time.. either way, thanks again!

Share this post


Link to post
Share on other sites

i was using _IsPressed function between if statements, but i already got the answer from the other forum, thanks though >_<

however, its odd that you were able to quote me a while later after i edited my 1st post.. unless you took a lot of trouble to reply and took you all that time.. either way, thanks again!

What I was trying to point out was that if you have two threads for the same problem then someone will reply to one thread and another person might reply to the other not knowing there is already a similar solution offered in the other thjread. So people waste their time. I answered this thread then found you were dealing with another. If you make a mistake with where you post then fine, but at least you could say so in the abandoned thread and tell people they should look somewhere else because this thread is dead and give a link. You can change the title of your thread to help in this situation. It's just about helping the people who are trying to help.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

ehh i did... i did edit this thread O_o

what do you see on the 1st post of this thread??

cause i see "argh... wrong section :/ "

about the title yah, my bad.. i was in a hurry when i noticed this and had no time to change it

Share this post


Link to post
Share on other sites

ehh i did... i did edit this thread O_o

what do you see on the 1st post of this thread??

cause i see "argh... wrong section :/ "

about the title yah, my bad.. i was in a hurry when i noticed this and had no time to change it

You can see what I replied to because it is quoted in my reply, and it isn't "arg.." anything, so obviously you hadn't changed it at that time.

Let's just leave it I'm not upset or anything, I was just trying to explain what I meant.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

Hehe I know.. but.. the weird thing, as I said, was the timing..

For instance..

let's say I opened this thread at 5:00 pm.. then at 5:15 pm when i realised of my mistake, I edited it.. and at 5:25pm you somehow quotted me what I previously had written.. and if that happened I can only think that you hit the Quote button before 5:15pm, but you finished your reply at 5:25 pm..

Anyhow, nevermind >_<

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  
Followers 0