Sign in to follow this  
Followers 0
redndahead

Au3gui

5 posts in this topic

Alright here is the section of my gui and I can't get the OK button to run anything? I think I have it right any suggestions?

;Basic function
    Func Basic()  
  $Type = "Basic"
    
    ;set window paramaters
  EnvSet("Gui.title","Connect To Remote Athena")
  EnvSet("Gui.w","230")
  EnvSet("Gui.h","95")
  EnvSet("Gui.action","4")
    
    ;Sets the label parameters
  EnvSet("Obj1.type","label")
  EnvSet("Obj1.text","Choose a site:")
  EnvSet("Obj1.x","65")
  EnvSet("Obj1.y","10")
  EnvSet("Obj1.w","80")
  EnvSet("Obj1.h","20")
  
    ;Set combobox paramaters
  EnvSet("Obj2.type","combo")
  EnvSet("Obj2.x","65")
  EnvSet("Obj2.y","25")
  EnvSet("Obj2.w","100")
  EnvSet("Obj2.h","120")

    ;Set the OK button parameters
  EnvSet("Obj3.type","Button")
  EnvSet("Obj3.text","OK")
  EnvSet("Obj3.run",'"' & @ScriptFullPath & '" RunProg SEARCH')
  EnvSet("Obj3.x","55")
  EnvSet("Obj3.y","60")
  EnvSet("Obj3.w","50")
  EnvSet("Obj3.h","25")
  
    ;Set the Exit button parameters
  EnvSet("Obj4.type","Button")
  EnvSet("Obj4.text","Exit")
  EnvSet("Obj4.close","1")
  EnvSet("Obj4.x","125")
  EnvSet("Obj4.y","60")
  EnvSet("Obj4.w","50")
  EnvSet("Obj4.h","25")

    ;Check for ath.exe already running
  If ProcessExists("ath.exe") Then
     EnvSet("Obj3.type","label")
     EnvSet("Obj3.text","Close Athena")
     EnvSet("Obj3.x","50")
     EnvSet("Obj3.y","65")
     EnvSet("Obj3.w","70")
     EnvSet("Obj3.h","15")
  EndIf

Help!! Thanks

red

Share this post


Link to post
Share on other sites



EnvSet("Obj3.run",'"' & @ScriptFullPath & '" RunProg SEARCH')

I *Think* should be

EnvSet("Obj3.run",'"' & @ScriptFullPath & ' RunProg SEARCH'&'"')

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I am such a freakin' idiot!!! :whistle: Moving to au3 has just made me do all the stupid mistakes over again.

red

:iamstupid:

Edited by redndahead

Share this post


Link to post
Share on other sites

You are compiling the script.... right?  :whistle:

You wouldn't be expecting the uncompiled script to rerun would you?  B)

Don't make me scold you Red...  :angry:

:evil:

Nice catch Larry :iamstupid:

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

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