abcomp01 Posted December 15, 2011 Share Posted December 15, 2011 (edited) i can't do this Send('Ton_21_') that output Ton21?? windows 7 notebook hp I sent to ms-dos , i tested to send notepad but still have ploblem i try to read this data and I not strip the _ from string Ton_27 sunset49 JJKing T_Tawan noidum boy__1234 boll17534 korn_001 fanta_000 bam_bam roxy001 jajunum in text but i tested using #MsgBox(4096, $line, "This box will time out in 10 seconds", 10) function that output have its but use Send function cannot Edited December 15, 2011 by abcomp01 Link to comment Share on other sites More sharing options...
Xenobiologist Posted December 15, 2011 Share Posted December 15, 2011 Where do you send your text to? The output should be with the underscore or do you want to strip the _ from your string before sending? Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
abcomp01 Posted December 15, 2011 Author Share Posted December 15, 2011 (edited) Where do you send your text to?The output should be with the underscore or do you want to strip the _ from your string before sending?I sent to ms-dos , i tested to send notepad but still have ploblem i try to read this data and I not strip the _ from stringTon_27sunset49JJKingT_Tawannoidumboy__1234boll17534korn_001fanta_000bam_bamroxy001jajunumin text but i tested using #MsgBox(4096, $line, "This box will time out in 10 seconds", 10) function that output have its but use Send function cannot Edited December 15, 2011 by abcomp01 Link to comment Share on other sites More sharing options...
Xenobiologist Posted December 15, 2011 Share Posted December 15, 2011 I don't get it. Something like this shows me there is no problem. $str_A = StringSplit('Ton_27,sunset49,JJKing,T_Tawan,noidum,boy__1234,boll17534,korn_001,fanta_000,bam_bam,roxy001,jajunum', ',', 2) Opt('WinTiTleMatchMode', 2) Run('C:WINNTsystem32cmd.exe') Sleep(50) If WinActivate('C:WINNTsystem32cmd.exe') Then For $i = 0 To UBound($str_A) - 1 Send($str_A[$i] & @CRLF) Next Else ConsoleWrite('Damn' & @CRLF) EndIf Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
abcomp01 Posted December 15, 2011 Author Share Posted December 15, 2011 I don't get it. Something like this shows me there is no problem. $str_A = StringSplit('Ton_27,sunset49,JJKing,T_Tawan,noidum,boy__1234,boll17534,korn_001,fanta_000,bam_bam,roxy001,jajunum', ',', 2) Opt('WinTiTleMatchMode', 2) Run('C:WINNTsystem32cmd.exe') Sleep(50) If WinActivate('C:WINNTsystem32cmd.exe') Then For $i = 0 To UBound($str_A) - 1 Send($str_A[$i] & @CRLF) Next Else ConsoleWrite('Damn' & @CRLF) EndIf Hello, thank above but i can not canyou fixing my code that i using win7 home edit #Run("cmd") Sleep(1000) $file = FileOpen("C://test.txt", 0) ; Check if file opened for reading OK If $file = -1 Then MsgBox(0, "Error", "Unable to open file.") Exit EndIf While 1 $line = FileReadLine($file) If @error = -1 Then ExitLoop #MsgBox(4096, $line, "This box will time out in 10 seconds", 10) ; woking Send($line,1) Sleep(500) Send("{ENTER}") Sleep(100) Send("!{F4}") Sleep(100) WEnd FileClose($file) Link to comment Share on other sites More sharing options...
Xenobiologist Posted December 15, 2011 Share Posted December 15, 2011 #include <file.au3> Run("cmd") Sleep(1000) Global $lines_A If Not _FileReadToArray("C://test.txt", $lines_A) Then MsgBox(4096, "Error", " Error reading log to Array error:" & @error) Exit EndIf If WinActivate('C:WINNTsystem32cmd.exe') Then For $i = 1 To UBound($lines_A) - 1 MsgBox(4096, $lines_A[$i], "This box will time out in 10 seconds", 10) Send($lines_A[$i], 1) Sleep(500) Send("{ENTER}") Sleep(100) Send("!{F4}") Sleep(100) Next Else ConsoleWrite('Damn' & @CRLF) EndIf Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
abcomp01 Posted December 15, 2011 Author Share Posted December 15, 2011 now i am sloved when i will used underscore should use {ASC 0x5F} replace "_" 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