Sign in to follow this  
Followers 0
Maxisking

Need help with a autotalker :O

3 posts in this topic

So i have the base code sorted, i just need to know how can i make it read from a .txt file, read the first line and then input it into a window?

I have looked round on the docs but i couldnt find anything to help me, maybe someone could make a method or point me to something to actually help me :P

Share this post


Link to post
Share on other sites



Hi there

Check this out :P

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <array.au3>
#include <file.au3>


dim $aArray, $result

$result = ""
$path = "c:\example.txt";change the file path

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 481, 321, 193, 125)
$Edit1 = GUICtrlCreateEdit("", 8, 8, 377, 297)
GUICtrlSetData(-1, "")
$Button1 = GUICtrlCreateButton("Read file", 400, 32, 65, 41, 0)
$Button2 = GUICtrlCreateButton("Exit", 400, 80, 65, 41, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Select
        case $nMsg = $gui_event_close
            Exit
        case $nMsg = $Button1
            read()
        case $nMsg = $Button2
            Exit
    EndSelect
    Sleep(10)
WEnd

func read()
    _FileReadToArray($path, $aArray)
    $limit = ubound($aArray)-1
        for $x = 1 to $limit
            $result = $result & $aArray[$x] & @CRLF
        ;MsgBox(0, "teste", $result)
        Next
        GUICtrlSetData($Edit1, $result)
EndFunc

Cheers


Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

Share this post


Link to post
Share on other sites

Hmm, i actually found what i wanted, here it is :

$User = FileReadLine($UsernamePath , $UsernameLine)

If @error = -1 Then

Mm it was bruteforcer instead of Autotalker idc why i said autotalker :P

Share this post


Link to post
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
Sign in to follow this  
Followers 0