Jump to content

Reading and executing code.


Recommended Posts

Ok so im reading this code from a file:

guisetstate(@sw_hide,$gui)
guisetstate(@sw_hide,$dform)
do
    sleep(3)
    tooltip("Click on the window with the title to activate.")
until _ispressed(01)
tooltip("")
sleep(200)
addcode($extra&"WinActivate("&chr(34)&wingettitle("")&chr(34)&")",$edit)
guisetstate(@sw_show,$gui)
guisetstate(@SW_show,$dform)

ok so that executes correctly except for the do until part.

[quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote]

Link to comment
Share on other sites

Run(@AutoItExe & ' /AutoIt3ExecuteScript "' & @ScriptDir & '\Test.txt' & '" ')
That should do the trick...

I don't think you can use Execute for loops... It's just for one statement operations.

Well i would have done that but it wouldnt be able to add text to my edit control.

[quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote]

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