Sign in to follow this  
Followers 0
boyhanghieu

AutoIt problem

22 posts in this topic

Hi guys, I have used AutoIt to create a bot for other games and it worked for those game. But then I made another one for this game called Martial Heroes but then when I run the script with the game on, the game could not detect it, but then the script doesnt work in game. It's only work if i have another window on ( like Notepad). Any advice to fix this problem? Thanks in advance!

Share this post


Link to post
Share on other sites



Hi guys, I have used AutoIt to create a bot for other games and it worked for those game. But then I made another one for this game called Martial Heroes but then when I run the script with the game on, the game could not detect it, but then the script doesnt work in game. It's only work if i have another window on ( like Notepad). Any advice to fix this problem? Thanks in advance!

Fix line 18 and you should be fine.

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Hi, sorry, but i somewhat don't know how to fix it. Could you post an example for me. That would be a great help! Thanks in advance!

Share this post


Link to post
Share on other sites

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Fix line 18 and you should be fine.

you need an extra goto

 

Spoiler

shoot_zpsfd329d66.png
dontbelieveeverythingyouthink_zps0e1e900

Madness is the first step to understanding...

Share this post


Link to post
Share on other sites

Smoke are you sure it was line 18? Line 17 looked like the problem to me.

Doh!! ... Maybe we should just delete line 17 on...

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

I'm lost, lol. Maybe my script is different. How do you convert a compiled file (.exe) back to au3 ?

Share this post


Link to post
Share on other sites

well you file a form with the people of the forum, and wait 3 weeks for shipping and handling. goto startmenu goto autoit and goto extras goto decompile exe to script... :whistle:


 

Spoiler

shoot_zpsfd329d66.png
dontbelieveeverythingyouthink_zps0e1e900

Madness is the first step to understanding...

Share this post


Link to post
Share on other sites

5tahihihi1 thank yo1u2 im h1aving t1he bot ru1n2ning her1e lol11

Hihihi thank you, im having the bot running here lol.

Share this post


Link to post
Share on other sites

Hi guys, this is my code and it's not running in game. Should i delete the line 17 which is " Send("2") "

AutoItSetOption("SendKeyDelay", 100)
While 1
  Send("ta")
  Sleep(1000)
  $i = 1
  While $i < 36
    $i = $i+1
    $j = 1
    Send("1")
    If mod($i,3) = 0 then
       Send("2")
       $j = $j + 1
    Endif
    $k = round($i / 2)
    If mod($i,6) = 0 then
       $j = $j + 1
       If  mod($k,2) = 0 then
          Send("3")
       else
          Send("4")
       Endif
    Endif
    $j = (10 - $j) * 100
    Sleep($j)
  Wend
  Send("555")
Wend

Share this post


Link to post
Share on other sites

5tahihihi1 thank yo1u2 im h1aving t1he bot ru1n2ning her1e lol11

Hihihi thank you, im having the bot running here lol.

OMG... Who made this poor soul and epileptic bot!!??

Hi guys, this is my code and it's not running in game. Should i delete the line 17 which is " Send("2") "

AutoItSetOption("SendKeyDelay", 100)
While 1
  Send("ta")
  Sleep(1000)
  $i = 1
  While $i < 36
    $i = $i+1
    $j = 1
    Send("1")
    If mod($i,3) = 0 then
       Send("2")
       $j = $j + 1
    Endif
    $k = round($i / 2)
    If mod($i,6) = 0 then
       $j = $j + 1
       If  mod($k,2) = 0 then
          Send("3")
       else
          Send("4")
       Endif
    Endif
    $j = (10 - $j) * 100
    Sleep($j)
  Wend
  Send("555")
Wend
Replace Send() with ControlSend('WindowName or Handle', '', '', 'text that send has') and see if that works.

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

bites tongue mouth froathing. not me....


 

Spoiler

shoot_zpsfd329d66.png
dontbelieveeverythingyouthink_zps0e1e900

Madness is the first step to understanding...

Share this post


Link to post
Share on other sites

Sorry but that did not work for me...

AutoItSetOption("SendKeyDelay", 100)
While 1
  ControlSend('Do',",",'t')
  Sleep(1000)
  $i = 1
  While $i < 36
    $i = $i+1
    $j = 1
    Send("1")
    If mod($i,3) = 0 then
       ControlSend('Do',",",'2')
       $j = $j + 1
    Endif
    $k = round($i / 2)
    If mod($i,6) = 0 then
       $j = $j + 1
       If  mod($k,2) = 0 then
          ControlSend('Do',",",'3')
       else
          ControlSend('Do',"4")
       Endif
    Endif
    $j = (10 - $j) * 100
    Sleep($j)
  Wend
  ControlSend('Do',",",'5t')
Wend

Share this post


Link to post
Share on other sites

Your ControlSend line is all wrong there...and why not just get the control ID and make it easier? t? Look in the help file at how ControlSend works...

ControlSend ( "title", "text", controlID, "string" [, flag] )


Pink Floyd - The Wall

Share this post


Link to post
Share on other sites

Been laughing for over 10 minutes at that aspect of this thread myself. I'm having trouble believing he thought you meant his code... :whistle:


Pink Floyd - The Wall

Share this post


Link to post
Share on other sites

you guys are rude

Share this post


Link to post
Share on other sites

you guys are rude

Well... that's one way to perceive it, another is to look at it as a playful way of telling you... We had no idea wtf you were talking about, until you posted some code :whistle:

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

you guys are rude

If you think any of this was rude you better not read other posts on this forum ... :P

Now tell us what you were thinking when the comments about line 17-18 were made ?

Options:

1. Wow...these guys are goooooood, they didn't see my script and still know what line is the problem .

2. Huh ...It can't be line 17

3. anything else ?

:whistle:


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

didn't you see I'm new in this thing. And didnt you see my post asking how to decompile the file?. Didnt you see me said thank to the other guy for showing me how to decompile? as soon as i got it decompiled, didn't you see me posting the code on here? All that happened in about 40 min max. No one ever asked me for the code in the first place. So you guys just sit there and laugh as i post my questions up. That's what called RUDE. If one of you were polite enough to put up something like "could you show us the code" or whatever that is. Then i would have tried my best to edit the damn post so you guys can see the code. I'm not smart or anything, and I never considered myself as a Pro. So you guys should be less cocky and be more friendly to people around. That's what forums are made for. We're helping people in forums, if they dont know, show them how! don't just sit there and laugh.

Share this post


Link to post
Share on other sites

didn't you see I'm new in this thing. And didnt you see my post asking how to decompile the file?. Didnt you see me said thank to the other guy for showing me how to decompile? as soon as i got it decompiled, didn't you see me posting the code on here? All that happened in about 40 min max. No one ever asked me for the code in the first place. So you guys just sit there and laugh as i post my questions up. That's what called RUDE. If one of you were polite enough to put up something like "could you show us the code" or whatever that is. Then i would have tried my best to edit the damn post so you guys can see the code. I'm not smart or anything, and I never considered myself as a Pro. So you guys should be less cocky and be more friendly to people around. That's what forums are made for. We're helping people in forums, if they dont know, show them how! don't just sit there and laugh.

geeeez man you are to serious here ....... Lighten up ...

You have been helped once it was clear what you really wanted ....

anyways ... not going to argue about this any further since you don't seem to understand the difference between Rude and Playful ......

Happy scripting :whistle:


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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