Jump to content
Sign in to follow this  
GeneZ

Help. noob question.

Recommended Posts

GeneZ

Uhm ok. i'm still new to the functions and stuff.

i've made a GUI which and when the person clicks the start button which i made, the script will run, how will i auto close the GUI when the start button is clicked? help please. :) thanks a sample code will be good :)

Share this post


Link to post
Share on other sites
d4rk

add GuiSetState(@SW_HIDE)


[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites
GeneZ

how do i do that after clicking a button, i really dont know how to use the GUIDelete() i dont understand it.

Share this post


Link to post
Share on other sites
d4rk

in your code, did you use

GUIgetmsg or GUiSetOnEvent ?

when you perform an action when click the button, you have a code, put the GUIDelete() in that part of codes


[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites
GeneZ

no i dont have

GUIgetmsg or GUiSetOnEvent

in my codes.

Share this post


Link to post
Share on other sites
d4rk

so how you make the script when the user click a button ?


[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites
GeneZ

uhm.

#include <GuiConstants.au3>

GUICreate("Config", 150, 400)

$start = GUICtrlCreateButton("Start Bot",10,10,110,20)

Func Start()

;------------

EndFunc

While 1

$msg = GUIGetMsg()

Select

Case $msg = $GUI_EVENT_CLOSE

ExitLoop

Case $msg = $start

Call("Start")

EndSelect

Wend

is that right?

Share this post


Link to post
Share on other sites
d4rk

#include <GuiConstants.au3>
GUICreate("Config", 150, 400) 
$start = GUICtrlCreateButton("Start Bot",10,10,110,20) 

Func Start()
msgbox(64,"","Worked")
GUIDelete()
;------------
EndFunc
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $start
Call("Start")
EndSelect
Wend


[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites
GeneZ

thanks :)

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  

×