Jump to content
Sign in to follow this  
Garrett19212

Reading Txt

Recommended Posts

Garrett19212

How would i find if

If FileReadLine("Delay.txt",1) = 4000 Than

Im trying to make if it that the first line in delay.txt is 400 than do an action.

Share this post


Link to post
Share on other sites
SlimShady

If you only want to do one action:

If FileReadLine("Delay.txt",1) = 4000 Then  ;Do action

for multiple actions:

If FileReadLine("Delay.txt",1) = 4000 Then
  ;actions
EndIf

Share this post


Link to post
Share on other sites
Garrett19212

thx so im understanding it right i would do

If FileReadLine("Delay.txt",1) = 4000 Then

;actions

send ("test")

sleep(1000)

send("test")

EndIf

That would work right?

Share this post


Link to post
Share on other sites
SlimShady

"most definitely" :)

Good luck.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.