Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 12:56

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



A little error ? [Q.Q]

Discussion on A little error ? [Q.Q] within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2012
Posts: 1,458
Received Thanks: 1,407
A little error ? [Q.Q]

Hey guys...
So I was working on the new version of my S4League trainers... And i wanted to set a HotKey to hide/show the GUI
Since this func killed me every time . . .
Code:
Global $Paused
   HotKeySet( "{F9}", "Hide")
   HotKeySet( "{F10}","UnHide")
   While 1
	  Sleep(100)
	  WEnd
	  Func $Hide
		  $Paused = Not $Paused
		  While $Hide()
		 GuiSetState(@sw_hide)
		 MsgBox(-1, "Gui State:", "GUI State:~> |-Hide-|")
                 WEnd		 
                 EndFunc
		 Func $UnHide()
			 $Paused = Not $Paused
			 While $UnHide
			GUISetState(@sw_show)
			MsgBox(-1, "Gui State:", "GUI State:~> |-Show-|")
	          WEnd
                  EndFunc
The error is:
Func $Hide
Badly formatted func statement
Can someone tell me what I did wrong? Q.Q
Hybrid~ is offline  
Old 06/22/2012, 16:43   #2


 
K1ramoX's Avatar
 
elite*gold: 26
Join Date: Jan 2012
Posts: 3,474
Received Thanks: 18,844
You do it so wrong...

Code:
HotKeySet("{F9}", "_Hide")
HotKeySet("{F10}", "_UnHide")

While 1
	Sleep(100)
WEnd

Func _Hide()
	GUISetState(@SW_HIDE)
	MsgBox(-1, "Gui State:", "GUI State:~> |-Hide-|")
EndFunc   ;==>_Hide

Func _UnHide()
	GUISetState(@SW_SHOW)
	MsgBox(-1, "Gui State:", "GUI State:~> |-Show-|")
EndFunc   ;==>_$UnHide
K1ramoX is offline  
Thanks
1 User
Old 06/22/2012, 16:53   #3
 
elite*gold: 0
Join Date: Jan 2012
Posts: 1,458
Received Thanks: 1,407
Quote:
Originally Posted by K1ramoX View Post
You do it so wrong...

Code:
HotKeySet("{F9}", "_Hide")
HotKeySet("{F10}", "_UnHide")

While 1
	Sleep(100)
WEnd

Func _Hide()
	GUISetState(@SW_HIDE)
	MsgBox(-1, "Gui State:", "GUI State:~> |-Hide-|")
EndFunc   ;==>_Hide

Func _UnHide()
	GUISetState(@SW_SHOW)
	MsgBox(-1, "Gui State:", "GUI State:~> |-Show-|")
EndFunc   ;==>_$UnHide
doh...forget that shitty _ xD | First time... I tried like u told me now... but still forgot the _ [Q.Q]
tyvm bro ... [<3]
Those HotKeySet was a pain in my ass all the time Q.Q



Edit2: This way it won't work and This way it works,But the other buttons and function don't work [Q.Q]
I'm so nubish [Q.Q]
Hybrid~ is offline  
Reply


Similar Threads Similar Threads
İbot Error-Error Video- Error İmages-HELP
04/10/2012 - DarkOrbit - 11 Replies
SORRY, MY ENGLİSH VERY BAD.I USE TO GOOGLE TRANSLATE :) Most people trying to ibot but in my computer İbot not working. Declared out this error everywhere but I do not get answers Here's the error Video http://youtu.be/q0fK09v-K3c
API Error Code: 100 API Error Description: Invalid parameter Error Message: redirect_
04/08/2012 - elite*gold Trading - 2 Replies
API Error Code: 100 API Error Description: Invalid parameter Error Message: redirect_uri URL is not properly formatted Das bekomme ich wenn ich ne App installiere... ich habe schon 3 Apps richtig installiert, danach kam immer das bei anderen Apps die ich installiert habe.. was heisst das? redirect_uri URL is not properly formatted
[Error]Error when using Zero's method/And another Error
09/16/2011 - Shaiya Private Server - 5 Replies
well here is a screeny of my problem. Any assistance is greatly appreciated. I haven't come across this error before nor seen any posts up here about it. Also this is me executing the NpcQuest_cvs.bat and yes i changed python to C:/Python27/Python.exe in the command line. http://img707.imageshack.us/img707/9997/errorgx.p ng Ok So my second error involves changing Stat points per lvl here is my screen shots http://img854.imageshack.us/img854/6412/nosave.pn g



All times are GMT +1. The time now is 12:57.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.