Jump to content

Recommended Posts

Posted

hi,

I have problem with send

It reapeats message

send("[Welcome to FBI-Root's " & $gamenumber & "game] [And simple rules: 1.Don't create my games 2.Dont hostle me] -- Enjoy the game !1")

And it dont stop (infinite times)

#include <GUIConstants.au3>
HotKeySet("n","ng")
GUICreate("ng",200,20)
$askname = GUICtrlCreateInput("",3,1,196,18)
GUISetState (@SW_SHOW)   

opt("SendKeyDelay",0)

$gamenumber = 1

While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend
    
Func ng ()
    $namebase = GUICtrlRead ($askname)
    $gamenumber = $gamenumber + 1
    send('{enter}')
    Sleep(200)
    send("Next Game !1" & $gamenumber)
    send('{enter}') 
    send('{esc}')
    MouseClick ("left",421,257,1)
    sleep(3000)
    MouseClick ("left",601,463,1)
    sleep(300)
    MouseClick ("left",450,153,1)
    sleep(500)
    send($namebase & $gamenumber)
    send('{enter}') 
    Sleep (10000)
    send('{enter}')
    sleep(200)
    send("[Welcome to FBI-Root's " & $gamenumber & "game] [And simple rules: 1.Don't create my games 2.Dont hostle me] -- Enjoy the game !1")
    send('{enter}')
EndFunc
Posted

Your hotkey is too simplistic. IT is being sent into an infinite loop by Send("[Welcome to FBI-Root's " & $gamenumber & "game]......

I bolded the "n" in your text. The HotKey will pick this up. Require Alt or Ctrl with your hotkey.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...