Jump to content

text input


 Share

Recommended Posts

ok here is what i have sofar but you have to hit enter befor you can put in text to the chat area so after that is done you can typ your message in then have to hit enter again to send message.. am i on the right track or way off on this one

;;;; Global Pause Start ;;;;
Global $Paused
;;;; Global Pause End ;;;;


;;;; Hotkey Settings Start ;;;;
HotKeySet("{HOME}", "TogglePause")
HotKeySet("{END}", "Terminate")
;;;; Hotkey Settings End ;;;;


;;;; Script Global Sleep Start ;;;;
While 1
    Sleep(1000)
WEnd
;;;; Script Global Sleep End ;;;;


;;;; Toggle Pause and Splash On/Off Start ;;;;
Func TogglePause()
    $Paused = Not $Paused
    While $Paused
        Sleep(1000)
        Send("{enter down}")
        Sleep(1000)
        Send("{enter up}")
        Sleep(1000)
        Send("{text content for area chat}")
        Sleep(1000)
    Send("enter down}")
    Sleep(1000)
        Send("{enter up}")
    WEnd
EndFunc
;;;; Toggle Pause and Splash On/Off End ;;;;


;;;; End/Close/Terminate Function Start ;;;;
Func Terminate()
    Exit
EndFunc
;;;; End/Close/Terminate Function End ;;;;
Link to comment
Share on other sites

On line 40 i dont believe you need {} unless u wish to include them on in your messege and on line 42 u missed out a open bracket, If the game is something like WoW then something just like this would work:

; Script Start - Add your code below here

;;;; Global Pause Start;;;;
Global $Paused
;;;; Global Pause End;;;;


;;;; Hotkey Settings Start;;;;
HotKeySet("{HOME}", "TogglePause")
HotKeySet("{END}", "Terminate")
;;;; Hotkey Settings End;;;;


;;;; Script Global Sleep Start;;;;
While 1
    Sleep(1000)
WEnd
;;;; Script Global Sleep End;;;;


;;;; Toggle Pause and Splash On/Off Start;;;;
Func TogglePause()
    $Paused = Not $Paused
    While $Paused
        Send("{ENTER}")
        Send("text content for area chat")
        Sleep(500)
        Send("{ENTER}")
        Sleep(4500)
    WEnd
EndFunc
;;;; Toggle Pause and Splash On/Off End;;;;


;;;; End/Close/Terminate Function Start;;;;
Func Terminate()
    Exit
EndFunc
;;;; End/Close/Terminate Function End;;;;
Link to comment
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
 Share

  • Recently Browsing   0 members

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