Jump to content

After #include "Forms\SnipIt.isf" GUI not showing on F5


ingosa
 Share

Recommended Posts

Good Morning you all.
I have started using autoid studio to code in.
I had made a form in it in ISN Form Studio 2 and check t that form studio would include the form it self, And make a func in the isf file.
But when i go back to the au3 file i see the #include "Forms\SnipIt.isf" line, but when i hit F5 it dos not show up.
It dos not give any error.
I hope some one can again point me in the right direction :)

Best regards

P.S. I only uploaded The isf file, the au3 only holds the "Forms\SnipIt.isf" file

SnipIt.isf

Link to comment
Share on other sites

You need to call _SnipIt () in you main script.  But the generated code contains errors in it...

Here what your main script should look like :

#include "SnipIt.isf"

Opt("GUIOnEventMode", 1)

_SnipIt ()
GUISetState()

While True
  Sleep (100)
WEnd

Func _Exit()
  Exit
EndFunc

And you need to modify your isf file to replace "Exit" by "_Exit"

Edited by Nine
Link to comment
Share on other sites

Thanks fore the reply.
I now get the following error:

\SnipIt.isf" (14) : ==> Unknown function name.: $SnipIt = GUICreate(SnipIt,442,315,-1,-1,-1,-1)
$SnipIt = GUICreate(^ ERROR

Snipit1.au3 -> Exit Code: 1    (Runtime: 2.18 sec)

I starting to guess i have to re install the editor..
Its trowing those errors constantly Like there is no while loop fore the WEnd while there is one.
I do not get it at all :(

 

Link to comment
Share on other sites

  • Developers
7 minutes ago, ingosa said:

I starting to guess i have to re install the editor..

No need for that, just post all current files/scripts required to replicate your issue and we can help in stead of guess. ;) 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

No you don't need to reinstall anything.  The files you provided with the solution I gave works perfectly well for me.  The line in error is different from the file you upload !

Edited by Nine
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...