Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 20:50

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

Advertisement



Hi Help me in that

Discussion on Hi Help me in that within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2012
Posts: 36
Received Thanks: 6
Hi Help me in that

i make the script
Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>


HotKeySet("{z}", "Selectoncheckbox1")
#Region ### START Koda GUI section ### Form=Form1.kxf
$Form1 = GUICreate("", 215, 235, 299, 218)
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 112, 16, 97, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit

	EndSwitch
WEnd


Func Selectoncheckbox1()
; what add here to Hotkeyset work can help?
EndFunc
i need know what i add under Func Selectoncheckbox1()
; what add here to Hotkeyset work can help?
Fairy10 is offline  
Old 04/29/2012, 02:48   #2

 
theDJ-scripts's Avatar
 
elite*gold: 319
Join Date: May 2011
Posts: 147
Received Thanks: 31
Quote:
Originally Posted by Fairy10 View Post
i make the script
Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>


HotKeySet("{z}", "Selectoncheckbox1")
#Region ### START Koda GUI section ### Form=Form1.kxf
$Form1 = GUICreate("", 215, 235, 299, 218)
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 112, 16, 97, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit

	EndSwitch
WEnd


Func Selectoncheckbox1()
; what add here to Hotkeyset work can help?
EndFunc
i need know what i add under Func Selectoncheckbox1()
; what add here to Hotkeyset work can help?
You have to add there a Tag like:
MsgBox(0,"Test...","This is just a test")

->
Code:
<ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>


HotKeySet("{z}", "Selectoncheckbox1")
#Region ### START Koda GUI section ### Form=Form1.kxf
$Form1 = GUICreate("", 215, 235, 299, 218)
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 112, 16, 97, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit

	EndSwitch
WEnd


Func Selectoncheckbox1()
MsgBox(0,"Test...","This is just a test")
EndFunc
Press "z" for a MsgBox... (just an example)
theDJ-scripts is offline  
Old 04/29/2012, 16:34   #3
 
elite*gold: 0
Join Date: Apr 2012
Posts: 36
Received Thanks: 6
Quote:
Originally Posted by spielie View Post
You have to add there a Tag like:
MsgBox(0,"Test...","This is just a test")

->
Code:
<ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>


HotKeySet("{z}", "Selectoncheckbox1")
#Region ### START Koda GUI section ### Form=Form1.kxf
$Form1 = GUICreate("", 215, 235, 299, 218)
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 112, 16, 97, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit

	EndSwitch
WEnd


Func Selectoncheckbox1()
MsgBox(0,"Test...","This is just a test")
EndFunc
Press "z" for a MsgBox... (just an example)
i know Msgbox but i need to make Turn On to CheckBox
Fairy10 is offline  
Old 04/29/2012, 18:39   #4

 
theDJ-scripts's Avatar
 
elite*gold: 319
Join Date: May 2011
Posts: 147
Received Thanks: 31
Quote:
Originally Posted by Fairy10 View Post
i know Msgbox but i need to make Turn On to CheckBox
Code:
GUICtrlSetState($Checkbox1, $GUI_CHECKED)
GUICtrlSetState([CHECKBOXNAME], [$GUI_CHECKED for checking; $GUI_UNCHECKED for unchecking)


theDJ-scripts is offline  
Thanks
1 User
Old 04/30/2012, 15:50   #5
 
elite*gold: 0
Join Date: Apr 2012
Posts: 36
Received Thanks: 6
Quote:
Originally Posted by spielie View Post
Code:
GUICtrlSetState($Checkbox1, $GUI_CHECKED)
GUICtrlSetState([CHECKBOXNAME], [$GUI_CHECKED for checking; $GUI_UNCHECKED for unchecking)

Thanks Work
but can one too Remove Chick?
Fairy10 is offline  
Old 04/30/2012, 16:10   #6
 
elite*gold: 5
Join Date: Mar 2008
Posts: 460
Received Thanks: 436
Code:
GUICtrlSetState($Checkbox1, $GUI_UNCHECKED)
:/
SwarN is offline  
Old 04/30/2012, 16:45   #7
 
elite*gold: 0
Join Date: Apr 2012
Posts: 36
Received Thanks: 6
Quote:
Originally Posted by SwarN View Post
Code:
GUICtrlSetState($Checkbox1, $GUI_UNCHECKED)
:/
i know that for Select but need one for remove it too
Fairy10 is offline  
Old 04/30/2012, 18:48   #8
 
elite*gold: 5
Join Date: Mar 2008
Posts: 460
Received Thanks: 436
for check:

Code:
GUICtrlSetState($Checkbox1, $GUI_CHECKED)

for uncheck:

Code:
GUICtrlSetState($Checkbox1, $GUI_UNCHECKED)
SwarN is offline  
Old 04/30/2012, 20:44   #9
 
*TheWarLords*'s Avatar
 
elite*gold: 0
Join Date: Mar 2012
Posts: 134
Received Thanks: 76
Quote:
Originally Posted by SwarN View Post
for check:

Code:
GUICtrlSetState($Checkbox1, $GUI_CHECKED)

for uncheck:

Code:
GUICtrlSetState($Checkbox1, $GUI_UNCHECKED)
Yes
But that good at Caps

Code:
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>


HotKeySet("{z}", "Selectoncheckbox")
HotKeySet("{x}", "Selectoncheckbox1")
#Region ### START Koda GUI section ### Form=Form1.kxf
$Form1 = GUICreate("", 215, 235, 299, 218)
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 112, 16, 97, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit

	EndSwitch
WEnd


Func Selectoncheckbox()
GUICtrlSetState($Checkbox1, $GUI_CHECKED)
EndFunc

Func Selectoncheckbox1()
GUICtrlSetState($Checkbox1, $GUI_unchecked)
EndFunc
*TheWarLords* is offline  
Reply




All times are GMT +1. The time now is 20:51.


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.