RazerM 0 Report post Posted April 11, 2006 If my program is currently sending many characters to a window. Could i stop it using End as a hot key(becasue hot keys interrupt scripts) and then have some code that stops the send whilst the program still runs? My Programs:AInstall - Create a standalone installer for your programUnit Converter - Converts Length, Area, Volume, Weight, Temperature and Pressure to different unitsBinary Clock - Hours, minutes and seconds have 10 columns each to display timeAutoIt Editor - Code Editor with Syntax Highlighting.Laserix Editor & Player - Create, Edit and Play Laserix LevelsLyric Syncer - Create and use Synchronised Lyrics.Connect 4 - 2 Player Connect 4 Game (Local or Online!, Formatted Chat!!)MD5, SHA-1, SHA-256, Tiger and Whirlpool Hash Finder - Dictionary and Brute Force FindCool Text Client - Create Rendered ImageMy UDF's:GUI Enhance - Enhance your GUIs visually.IDEA File Encryption - Encrypt and decrypt files easily! File Rename - Rename files easilyRC4 Text Encryption - Encrypt text using the RC4 AlgorithmPrime Number - Check if a number is primeString Remove - remove lots of strings at onceProgress Bar - made easySound UDF - Play, Pause, Resume, Seek and Stop. Share this post Link to post Share on other sites
SmOke_N 199 Report post Posted April 11, 2006 If my program is currently sending many characters to a window. Could i stop it using End as a hot key(becasue hot keys interrupt scripts) and then have some code that stops the send whilst the program still runs?Yes if you make it conditional... Ie.. Hotkeyset('{end}', 'StopSend') HotKeySet('{Home}', 'StartSend') Global $Blah = 0 While 1 If $Blah = 0 Then Do Send('Some Chars') Until $Blah = 1 EndIf WEnd Func StopSend() $Blah = 1 EndFunc Func StartSend() $Blah = 0 EndFuncMaybe something like that... 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. Share this post Link to post Share on other sites
RazerM 0 Report post Posted April 11, 2006 i was talking about a certain string. I want it to be sent once My Programs:AInstall - Create a standalone installer for your programUnit Converter - Converts Length, Area, Volume, Weight, Temperature and Pressure to different unitsBinary Clock - Hours, minutes and seconds have 10 columns each to display timeAutoIt Editor - Code Editor with Syntax Highlighting.Laserix Editor & Player - Create, Edit and Play Laserix LevelsLyric Syncer - Create and use Synchronised Lyrics.Connect 4 - 2 Player Connect 4 Game (Local or Online!, Formatted Chat!!)MD5, SHA-1, SHA-256, Tiger and Whirlpool Hash Finder - Dictionary and Brute Force FindCool Text Client - Create Rendered ImageMy UDF's:GUI Enhance - Enhance your GUIs visually.IDEA File Encryption - Encrypt and decrypt files easily! File Rename - Rename files easilyRC4 Text Encryption - Encrypt text using the RC4 AlgorithmPrime Number - Check if a number is primeString Remove - remove lots of strings at onceProgress Bar - made easySound UDF - Play, Pause, Resume, Seek and Stop. Share this post Link to post Share on other sites
greenmachine 4 Report post Posted April 11, 2006 A long Send() command can't be interrupted by hotkeys. HotKeySet ("{END}", "stopsend") Opt ("SendKeyDelay", 20) Send ("abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz" & _ "abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz") Func stopsend() MsgBox (0, "no more sending", "i don't know what to do when the func ends...") EndFunc It sends the whole string, even if you press end. If you press end while it's going, it will show the MsgBox at the end after the string is sent. Share this post Link to post Share on other sites
RazerM 0 Report post Posted April 11, 2006 (edited) this is what i have. it works well $message = StringSplit(GUICtrlRead($tab0EditText), "") For $i = 1 To $message[0] Send($message[$i], 1) If _IsPressed("23") = 1 Then ExitLoop Next Edited April 11, 2006 by RazerM My Programs:AInstall - Create a standalone installer for your programUnit Converter - Converts Length, Area, Volume, Weight, Temperature and Pressure to different unitsBinary Clock - Hours, minutes and seconds have 10 columns each to display timeAutoIt Editor - Code Editor with Syntax Highlighting.Laserix Editor & Player - Create, Edit and Play Laserix LevelsLyric Syncer - Create and use Synchronised Lyrics.Connect 4 - 2 Player Connect 4 Game (Local or Online!, Formatted Chat!!)MD5, SHA-1, SHA-256, Tiger and Whirlpool Hash Finder - Dictionary and Brute Force FindCool Text Client - Create Rendered ImageMy UDF's:GUI Enhance - Enhance your GUIs visually.IDEA File Encryption - Encrypt and decrypt files easily! File Rename - Rename files easilyRC4 Text Encryption - Encrypt text using the RC4 AlgorithmPrime Number - Check if a number is primeString Remove - remove lots of strings at onceProgress Bar - made easySound UDF - Play, Pause, Resume, Seek and Stop. Share this post Link to post Share on other sites
greenmachine 4 Report post Posted April 11, 2006 Indeed that works because you're sending the string in segments. Good job finding a fix. Share this post Link to post Share on other sites