Sign in to follow this  
Followers 0
MerkurAlex

Reading and executing code.

4 posts in this topic

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]

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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.

Edited by Achilles

My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
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]

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