Sign in to follow this  
Followers 0
Scorekeeper

Program Shortcut Problem.

5 posts in this topic

#1 ·  Posted (edited)

I am creating a program that will give me shortcuts to bots that i have made.

But when the bot loads up.. its fine. But it freezes and will not go anything when i press any button.

Can anyone help.

Hers is the code:

code has been romoved

Thanks in advance.

This is the first time it has happened to me and i do not understand why.

If you found the source of error could you please let me know.

Edited by Scorekeeper

Fou-Lu - Bof4 "...Wouldst thou fight a god?"

Share this post


Link to post
Share on other sites



I am creating a program that will give me shortcuts to bots that i have made.

But when the bot loads up.. its fine. But it freezes and will not go anything when i press any button.

...

This is the first time it has happened to me and i do not understand why.

If you found the source of error could you please let me know.

here are some ideas.

  • If you want to use GUI event mode, you'll have to tell AutoIT. See: AutoITSetOption() and "GUIOnEventMode".
  • Your idle loop sets "$exitFlag = 1", but then it is not used anywhre
  • In your functions you call "Run("Log Bot 5.0.exe",....", without specifying the full path to the executable. You will need the full path if the *.exe are in a different path that your AutoIT script. See help file: Run(). You should also check the error codes of Run()! Also help file.
  • have a look at your pause() function! Probaly search the forum for some ideas here.
Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

even before i implimented the pause it still froze up.

I also have tried to use the full path in the run but it still froze.

Also i have $exitFlag = 1 there for a reoson but have not implimented that part of the script yet.

ill try some things and post back.

Thanks Anyway.

ScoreKeeper


Fou-Lu - Bof4 "...Wouldst thou fight a god?"

Share this post


Link to post
Share on other sites

even before i implimented the pause it still froze up.

AutoITSetOption() and "GUIOnEventMode". !!!

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

Turns out i was missing opt("GUIOnEventMode", 1) .

Thanks Kurt. much apreciated.

ScoreKeeper.


Fou-Lu - Bof4 "...Wouldst thou fight a god?"

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