Jump to content
Sign in to follow this  
10031992

[HELP] My Program not run after Login

Recommended Posts

10031992
I managed to solve my problem Edited by 10031992

-------------------------------------------------------------------------------------------------------------------------------------------- [center][/center][center]Autoit Support Forum in Portuguese | AutoitBrasil.com[/center] [sub]My Script :[/sub]Simples Login for Program

Share this post


Link to post
Share on other sites
BrettF
10031992

Sorry

Because I was excited that it had succeeded, then there has ese problem, I was desperate


-------------------------------------------------------------------------------------------------------------------------------------------- [center][/center][center]Autoit Support Forum in Portuguese | AutoitBrasil.com[/center] [sub]My Script :[/sub]Simples Login for Program

Share this post


Link to post
Share on other sites
Authenticity

You're not using Run(@AutoItExe & " /AutoIt3ExecuteLine "....) correctly and it would be far easier to use RunWait() instead of loop until the popup window doesn't exit anymore:

Local $_MsgBox_ = "MsgBox(" & $iFlag & ", '" & $sTitle & "', '" & $sText & "', " & $iTime & ")"
RunWait(@AutoItExe & ' /AutoIt3ExecuteLine "' & $_MsgBox_ & '"')

; ...

Share this post


Link to post
Share on other sites
10031992

Changed the way you speak and the error still persists

Edited by 10031992

-------------------------------------------------------------------------------------------------------------------------------------------- [center][/center][center]Autoit Support Forum in Portuguese | AutoitBrasil.com[/center] [sub]My Script :[/sub]Simples Login for Program

Share this post


Link to post
Share on other sites
Authenticity

Put a MsgBox() or ConsoleWrite() call after the Do...Until loop in the _gercheck() function and see if gets called.

Edit: By the way, nothing in your code is making the first message loop to terminate other than exiting the program. You need an ExitLoop statement somewhere in the loop to continue with the rest of the script below it.

Edited by Authenticity

Share this post


Link to post
Share on other sites
10031992
I managed to solve my problem Edited by 10031992

-------------------------------------------------------------------------------------------------------------------------------------------- [center][/center][center]Autoit Support Forum in Portuguese | AutoitBrasil.com[/center] [sub]My Script :[/sub]Simples Login for Program

Share this post


Link to post
Share on other sites
Authenticity

You forgot to insert this one too into the function:

Opt("guioneventmode", 1); allows us to use GUIsetonevent

You need to work on your logic because right now your script is a mess.

Share this post


Link to post
Share on other sites
10031992

I put this is some time, has no utility, just forgot to take

I think the problem is that after you do the login, appears the message "Login succ .."

and to open the program, I put

Runp ()oÝ÷ Ú+(-ännËh¢§¶©®+jl¨ºwvåÊËh¦+DÑnÆ墫¢jwhZZ0x-殶­sduT6WDöäWfVçBb33c²uTôUdTåEô4Äõ4RÂgV÷C¶öæWFöFWBgV÷C²oÝ÷ ÚǧvØ^wè®f­í¢Ø^jëh×6Func onautoitexit ()
      Exit
EndFunc; ==> onautoitexit

so he quit the program when pressing the button

Edited by 10031992

-------------------------------------------------------------------------------------------------------------------------------------------- [center][/center][center]Autoit Support Forum in Portuguese | AutoitBrasil.com[/center] [sub]My Script :[/sub]Simples Login for Program

Share this post


Link to post
Share on other sites
Authenticity

So you want to go back to the outer loop of the first message loop? If so, change how you handle it to something like:

Func Runp()
    Opt('GUIOnEvenMode', 1)
    ; ...
    ; ..
    ; .
    Global $fLoop = True
        ; .
    $Form1 = GUICreate("LC "" Hack Public - gOHc -" & $version, 500, 300);
    GUISetOnEvent($GUI_EVENT_CLOSE, '_TerminateLoop')
    
    ; ...
    While $fLoop
       ; Processing stuff...
    Wend
    
    Opt('GUIOnEventMode', 0)
EndFunc


Func _TerminateLoop()
    $fLoop = False
EndFunc

Share this post


Link to post
Share on other sites
10031992

someone has?

The problem still persists

I did what you said, but still not closing the program

that drug, just missing, isso pra end up finishing my script


-------------------------------------------------------------------------------------------------------------------------------------------- [center][/center][center]Autoit Support Forum in Portuguese | AutoitBrasil.com[/center] [sub]My Script :[/sub]Simples Login for Program

Share this post


Link to post
Share on other sites
10031992
I managed to solve my problem

-------------------------------------------------------------------------------------------------------------------------------------------- [center][/center][center]Autoit Support Forum in Portuguese | AutoitBrasil.com[/center] [sub]My Script :[/sub]Simples Login for Program

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  

×