Jump to content

Hello, a little help please...


 Share

Recommended Posts

Hello,

I could use some help please... Anyway, here is the script, and i'll write at the bottom what i want to achieve:

#include <ftp.au3>
Sleep(3600000)
Send("^!g")
Sleep(10000)
$server = 'www.mywebsite.com'
$username = 'myusername'
$pass = 'mypassword'
$dllhandle = DllOpen('wininet.dll')
$Open = _FTPOpen('MyFTP Control')
$Conn = _FTPConnect($Open, $server, $username, $pass)
$Ftpp = _FtpPutFile($Conn, 'C:\AutoIt3\some.file', 'MYDIR/some.file')
$Ftpc = _FTPClose($Open)
Run("C:\systemcheck.exe")

I want this script to stay in memory all the time the PC is opened and after each hour the script will send the keys Ctrl+Alt+G, then the script will pause another 10 seconds, then it will upload a file from my computer to my FTP server and then basicaly it will loop, i mean it will wait another hour and repeat the process. Or in other words put, when all the lines of the script are read, i want the script not to close but to jump to the first line again. Please help me out a little. Thanks.

[font="Tahoma"]pr0tected by smith & wesson[/font]
Link to comment
Share on other sites

Hello,

I could use some help please... Anyway, here is the script, and i'll write at the bottom what i want to achieve:

#include <ftp.au3>
 Sleep(3600000)
 Send("^!g")
 Sleep(10000)
 $server = 'www.mywebsite.com'
 $username = 'myusername'
 $pass = 'mypassword'
 $dllhandle = DllOpen('wininet.dll')
 $Open = _FTPOpen('MyFTP Control')
 $Conn = _FTPConnect($Open, $server, $username, $pass)
 $Ftpp = _FtpPutFile($Conn, 'C:\AutoIt3\some.file', 'MYDIR/some.file')
 $Ftpc = _FTPClose($Open)
 Run("C:\systemcheck.exe")

I want this script to stay in memory all the time the PC is opened and after each hour the script will send the keys Ctrl+Alt+G, then the script will pause another 10 seconds, then it will upload a file from my computer to my FTP server and then basicaly it will loop, i mean it will wait another hour and repeat the process. Or in other words put, when all the lines of the script are read, i want the script not to close but to jump to the first line again. Please help me out a little. Thanks.

Put:

While 1

"YourScriptHere

Wend

My little company: Evotec (PL version: Evotec)

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...