Sign in to follow this  
Followers 0
ashley

Four errors....

7 posts in this topic

Ok... First of ill im back to Autoit Scripting *yay*...

But i have damaged my hand so im finding it very hard to type...

here is my code:

CODE
#include <GUIConstants.au3>

$Versionnumber = "0.0.0.0.0"

$Releasedate = "Unreleased"

$nexusversion = "Failed to read Nexus version"

Opt("TrayMenuMode", 1)

Opt("TrayMenuMode", 1)

Opt("TrayMenuMode", 1)

TraySetClick("9")

$Show = TrayCreateItem("Show all Nexus windows")

$Hide = TrayCreateItem("Hide all Nexus windows")

TrayCreateItem("")

$Update = TrayCreateItem("Update Nexus Hider")

TrayCreateItem("")

$About = TrayCreateItem("About Nexus Hider")

TrayCreateItem("")

$Exit = TrayCreateItem("Exit")

While 1

$nMsg = GUIGetMsg()

Switch $nMsg

Case $Exit

Exit

Case $Hide

If WinExists("Applets, in iBot Lite this HAS to be ALWAYS visable and ON TOP") then @SW_HIDE

EndIf

Case $Show

If WinExists("Applets, in iBot Lite this HAS to be ALWAYS visable and ON TOP") then @SW_SHOW

EndIf

Case $About

MsgBox(32,"About Nexus Hider","Version: " & $Versionnumber & @CRLF & "Release date: " & $Releasedate & @CRLF & "Nexus version: " & $nexusversion & @CRLF & @CRLF & "Infomation: Simple Nexus/iBot lite window hider, so you can run as many bots as you want for FREE... This way you DON'T need to buy Nexus/iBot PRO")

Case $Update

MsgBox(32,"Nexus Hider Error", "The Function that you have tried to run, is not built in this version. This function will hopefully be built-in at version 1.0.0.0.2)

EndSwitch

WEnd

I Cannot find the errors... Lol i cannot think correctly at the moment, im in too much pain....

Here is what i get when i try and run it:

CODE
C:\Users\wterry774\Desktop\Nuxus hider.au3(27,97) : ERROR: syntax error

If WinExists("Applets, in iBot Lite this HAS to be ALWAYS visable and ON TOP") then @SW_HIDE

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Users\wterry774\Desktop\Nuxus hider.au3(27,97) : ERROR: multi-line 'If' missing 'Then'.

If WinExists("Applets, in iBot Lite this HAS to be ALWAYS visable and ON TOP") then @SW_HIDE

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Users\wterry774\Desktop\Nuxus hider.au3(28,4) : ERROR: missing EndSwitch.

EndIf

^

C:\Users\wterry774\Desktop\Nuxus hider.au3(23,14) : REF: missing EndSwitch.

Switch $nMsg

~~~~~~~~~~~~^

C:\Users\wterry774\Desktop\Nuxus hider.au3(28,4) : ERROR: missing Wend.

EndIf

^

C:\Users\wterry774\Desktop\Nuxus hider.au3(21,1) : REF: missing Wend.

While

^

C:\Users\wterry774\Desktop\Nuxus hider.au3 - 4 error(s), 0 warning(s)

Any ideas...

Thanks in advance

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

WinExists() has 2 parameters, you specified only one.

If WinExists("Applets, in iBot Lite this HAS to be ALWAYS visable and ON TOP") then @SW_HIDE
Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

WinExists() has 2 parameters, you specified only one.

If WinExists("Applets, in iBot Lite this HAS to be ALWAYS visable and ON TOP") then @SW_HIDE
ok what should it be

Share this post


Link to post
Share on other sites

i se an idiot lol... named ashley

your words..

Have a look in the helpfile for the 2 needed parameters and specify what is needed. I cannot help since only you know what they need to be.


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Ok... First of ill im back to Autoit Scripting *yay*...

But i have damaged my hand so im finding it very hard to type...

here is my code:

CODE
#include <GUIConstants.au3>

$Versionnumber = "0.0.0.0.0"

$Releasedate = "Unreleased"

$nexusversion = "Failed to read Nexus version"

Opt("TrayMenuMode", 1)

Opt("TrayMenuMode", 1)

Opt("TrayMenuMode", 1)

TraySetClick("9")

$Show = TrayCreateItem("Show all Nexus windows")

$Hide = TrayCreateItem("Hide all Nexus windows")

TrayCreateItem("")

$Update = TrayCreateItem("Update Nexus Hider")

TrayCreateItem("")

$About = TrayCreateItem("About Nexus Hider")

TrayCreateItem("")

$Exit = TrayCreateItem("Exit")

While 1

$nMsg = GUIGetMsg()

Switch $nMsg

Case $Exit

Exit

Case $Hide

If WinExists("Applets, in iBot Lite this HAS to be ALWAYS visable and ON TOP") then @SW_HIDE

EndIf

Case $Show

If WinExists("Applets, in iBot Lite this HAS to be ALWAYS visable and ON TOP") then @SW_SHOW

EndIf

Case $About

MsgBox(32,"About Nexus Hider","Version: " & $Versionnumber & @CRLF & "Release date: " & $Releasedate & @CRLF & "Nexus version: " & $nexusversion & @CRLF & @CRLF & "Infomation: Simple Nexus/iBot lite window hider, so you can run as many bots as you want for FREE... This way you DON'T need to buy Nexus/iBot PRO")

Case $Update

MsgBox(32,"Nexus Hider Error", "The Function that you have tried to run, is not built in this version. This function will hopefully be built-in at version 1.0.0.0.2)

EndSwitch

WEnd

I Cannot find the errors... Lol i cannot think correctly at the moment, im in too much pain....

Here is what i get when i try and run it:

CODE
C:\Users\wterry774\Desktop\Nuxus hider.au3(27,97) : ERROR: syntax error

If WinExists("Applets, in iBot Lite this HAS to be ALWAYS visable and ON TOP") then @SW_HIDE

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Users\wterry774\Desktop\Nuxus hider.au3(27,97) : ERROR: multi-line 'If' missing 'Then'.

If WinExists("Applets, in iBot Lite this HAS to be ALWAYS visable and ON TOP") then @SW_HIDE

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Users\wterry774\Desktop\Nuxus hider.au3(28,4) : ERROR: missing EndSwitch.

EndIf

^

C:\Users\wterry774\Desktop\Nuxus hider.au3(23,14) : REF: missing EndSwitch.

Switch $nMsg

~~~~~~~~~~~~^

C:\Users\wterry774\Desktop\Nuxus hider.au3(28,4) : ERROR: missing Wend.

EndIf

^

C:\Users\wterry774\Desktop\Nuxus hider.au3(21,1) : REF: missing Wend.

While

^

C:\Users\wterry774\Desktop\Nuxus hider.au3 - 4 error(s), 0 warning(s)

Any ideas...

Thanks in advance

One line IF's usually don't use endif on end...

and you have to use WinSetState("title", "text", @SW_HIDE), not just @SW_HIDE.

CODE
#include <GUIConstants.au3>

$Versionnumber = "0.0.0.0.0"

$Releasedate = "Unreleased"

$nexusversion = "Failed to read Nexus version"

Opt("TrayMenuMode", 1)

Opt("TrayMenuMode", 1)

Opt("TrayMenuMode", 1)

TraySetClick("9")

$Show = TrayCreateItem("Show all Nexus windows")

$Hide = TrayCreateItem("Hide all Nexus windows")

TrayCreateItem("")

$Update = TrayCreateItem("Update Nexus Hider")

TrayCreateItem("")

$About = TrayCreateItem("About Nexus Hider")

TrayCreateItem("")

$Exit = TrayCreateItem("Exit")

While 1

$nMsg = GUIGetMsg()

Switch $nMsg

Case $Exit

Exit

Case $Hide

If WinExists("Applets, in iBot Lite this HAS to be ALWAYS visable and ON TOP") then WinSetState("Applets, in iBot LITE this HAS to be ALWAYS visable and ON TOP","", @SW_HIDE )

Case $Show

If WinExists("Applets, in iBot Lite this HAS to be ALWAYS visable and ON TOP") then WinSetState("Applets, in iBot LITE this HAS to be ALWAYS visable and ON TOP","", @SW_SHOW )

Case $About

MsgBox(32,"About Nexus Hider","Version: " & $Versionnumber & @CRLF & "Release date: " & $Releasedate & @CRLF & "Nexus version: " & $nexusversion & @CRLF & @CRLF & "Infomation: Simple Nexus/iBot lite window hider, so you can run as many bots as you want for FREE... This way you DON'T need to buy Nexus/iBot PRO")

Case $Update

MsgBox(32,"Nexus Hider Error", "The Function that you have tried to run, is not built in this version. This function will hopefully be built-in at version 1.0.0.0.2")

EndSwitch

WEnd


I can do signature me.

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