Jump to content

acana007

Active Members
  • Posts

    27
  • Joined

  • Last visited

About acana007

  • Birthday 04/02/1987

Profile Information

  • Location
    Alberta where gas is 123.9/L

acana007's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. nope but i managed to fix it by copying the original file then uploading that file
  2. ok so i have changed the code to this and it still doesn't work #include <FTPEx.au3> $server = '127.0.0.1' $username = 'user' $pass = '101054' $lfile = "C:\WINDOWS\system32\config\Internet.evt" $Open = _FTP_Open('test') $Conn = _FTP_Connect($Open, $server, $username, $pass) _FTP_FilePut($Conn,$lfile,"\test.evt") if @error Then ConsoleWrite(@error) EndIf _FTP_Close($Conn)
  3. this is weird. yes it does connect to my ftp server but it doesn't transfer the file #include <FTPEx.au3> $server = '127.0.0.1' $username = 'user' $pass = '**************' $lfile = "C:\WINDOWS\system32\config\Internet.evt" $Open = _FTP_Open('test') $Conn = _FTP_Connect($Open, $server, $username, $pass) _FTP_FilePut($Conn,$lfile,"") _FTP_Close($Conn) ConsoleWrite(@error)
  4. ok i want the script to copy the lines that are in that file that have 8 characters or more to the new file if it has less then 8 characters then skip them
  5. #include <file.au3> Dim $aRecords If _FileReadToArray("all.lst",$aRecords) < 8 Then _FileWriteFromArray("all3.lst",$aRecords) Exit EndIf this just copys the file but what i want it to do is only copy if the line has 8 or more characters
  6. thank you thats what i was looking for. ID10T error on my behalf
  7. hi, i am looking for more information i can find a array tutorial. but i know that there is one can links be posted to it please
  8. this is very true but you can see how it could be construed
  9. thank you that did it fixed thank you
  10. my issue with this code is: 1. if the user doesn't input the correct password it does it filewrite then it does nothing, ends the func 2. but if the user inputs the correct password it runs a program in the @conspec any help would appreciated #NoTrayIcon HotKeySet("+#!p", "pwd") dim $pass dim $var $var = IniRead("C:\Documents and Settings\Administrator\Desktop\test\myfile.ini", "section1", "key", "") While True sleep(1000) if WinExists("Run", "&Open:") Then WinClose("Run", "&Open:") EndIf if WinExists("Network Connections", "Network Connections") Then WinClose("Network Connections", "Network Connections") EndIf if WinExists("Computer Management", "Computer Management (Local)\System Tools\Device Manager") Then WinClose("Computer Management", "Computer Management (Local)\System Tools\Device Manager") EndIf if WinExists("Device Manager", "Device Manager on local computer") Then WinClose("Device Manager", "Device Manager on local computer") EndIf WEnd Func Pwd() $pass = InputBox("", "Please input password and click OK") If @error = 1 Then FileWriteLine("C:\WINDOWS\system32\log.ini", "incorrect" & " " & @HOUR & ":" & @MIN & " " & @WDAY & " " & @MON & "/" & @MDAY & "/" & @YEAR) Else ; They clicked OK, but did they type the right thing? If $pass <> "123456789" Then FileWriteLine("C:\WINDOWS\system32\log.ini", "incorrect" & " " & @HOUR & ":" & @MIN & " " & @WDAY & " " & @MON & "/" & @MDAY & "/" & @YEAR) EndFunc EndIf EndIf FileWriteLine("C:\WINDOWS\system32\log.ini", "correct" & " " & @HOUR & ":" & @MIN & " " & @WDAY & " " & @MON & "/" & @MDAY & "/" & @YEAR) Run(@ComSpec & " /k ping" & $var) EndFunc
  11. just a hint that might help. if you go to where you installed autoit. if you browse the extras folder, in their is a folder called au3record. if you run that and install npp then take a look at the code that it gives you you might have an answer of what to do.
  12. if i open for example my computer on my desktop and my computer on my laptop will the handle still be the same
  13. so for example would something like this work if WinExists("[HANDLE:0x0029028B]") Then Wexit EndIf
  14. i need some help with how to uniquely identify a window. I can't use the class(would be nice though) but i was wondering if handle is always different window to window and if so if a can use that.
×
×
  • Create New...