Jump to content

My First Include (need Help) + Overlay Command?


Go to solution Solved by MaxMeyer123,

Recommended Posts

Posted (edited)

Hi guys, first of all sorry for my bad english.

 

Atm im coding an Include for my Pyload (Nas) really simple because i just started with coding :P

 

  Reveal hidden contents

 

I tested every Function by ~ the return under the WInHttpConnect successful and write an test()

 

But if i Include this and wanna test it i get the Error Line 15 -> "Keine Verbindung"

 

  Reveal hidden contents

 

Second Question, i have some more Function to see things like Wlan on/off how can i write an Overlay that is undraggable, in foreground of all windows, transparent. (Just Text, Pics would be possible too)

I tried to make an Overlay via a GUI but it didnt work out.

 

Ty guys

Edited by MaxMeyer123
Posted

Hallo Max,

kannst du dein gesamtes Skript posten, so dass es testbar ist?

Es gibt übrigens auch ein sehr gutes deutsches Forum www.autoit.de wenn du Problem hat, deine Probleme auf Englisch zu beschreiben.

Is it really an error? You code shows it _py_connect doesn't return 1 then show the MsgBox with "keine Verbindung".

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Posted

if the "include" connect to my server it should return 

_py_Connect() = 1

if i start the test script it dont even create a log if i just acitvate the include it does.. (if i start the script with 

 _py_Connect() i put a ;~ infront for the include now still not working)

i copyed my whole scripts

Posted (edited)

Guessing here. Try

If _Nas_Ready(1)

or maybe

_Nas_Ready($iNas)

If $iNas = 1 then

;Do something

Else

;Do something

It looks like _Py_Connect is not returning true in your second bit of code.

Edited by computergroove

Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html

  • Moderators
Posted

MaxMeyer12,

Please do not bump your own threads within 24 hours. :naughty:

Remember this is not a 24/7 support forum - those who answer are only here because they like helping others and have some time to spare. You just have to wait until someone who knows something about your particular problem, and is willing to help, comes online. Be patient and someone will answer - as indeed they already have twice so far! ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted
  On 7/29/2014 at 5:22 PM, computergroove said:

Guessing here. Try

If _Nas_Ready(1)

or maybe

_Nas_Ready($iNas)

If $iNas = 1 then

;Do something

Else

;Do something

It looks like _Py_Connect is not returning true in your second bit of code.

i  wrote

If _Nas_Ready() = 1 Then  now but still the same error

but if i just run the script without include it and run it on my test script it work and the log get created but when i include this in my test.au3 it just say "keine verbindung" (line 15)

__

Sorry M23 

  • Solution
Posted

  On 7/29/2014 at 7:11 PM, computergroove said:

Autoits Ping function returns a time in miliseconds not a Boolean value (true(1) or false(0))

Try this:

Func _Nas_Ready()

    If not @error Then

      Return 1

    Else

      Return 0

  EndIf

EndFunc

still the same error, and still the log dont get created :S

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...