au3scr Posted January 3, 2008 Share Posted January 3, 2008 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) expandcollapse popup#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 Link to comment Share on other sites More sharing options...
weaponx Posted January 3, 2008 Share Posted January 3, 2008 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. Link to comment Share on other sites More sharing options...
au3scr Posted January 3, 2008 Author Share Posted January 3, 2008 thanks, Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now