ashley Posted March 21, 2008 Posted March 21, 2008 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: CODEC:\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 Free icons for your programs
Developers Jos Posted March 21, 2008 Developers Posted March 21, 2008 (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 March 21, 2008 by Jos 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.
ashley Posted March 21, 2008 Author Posted March 21, 2008 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_HIDEok what should it be Free icons for your programs
Developers Jos Posted March 21, 2008 Developers Posted March 21, 2008 ok what should it beLook in the mirror and ask the person you see... he should know . 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.
ashley Posted March 21, 2008 Author Posted March 21, 2008 i se an idiot lol... named ashley Free icons for your programs
Developers Jos Posted March 21, 2008 Developers Posted March 21, 2008 i se an idiot lol... named ashleyyour 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. 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.
i542 Posted March 21, 2008 Posted March 21, 2008 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) EndSwitchWEndI 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:CODEC:\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 advanceOne 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") EndSwitchWEnd I can do signature me.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now