Func new()
; Hides the GUI while the function is running
GUISetState(@SW_HIDE)
Run(".....")
Exit
EndFunc
;show GUI again after the function has finished running
GUISetState(@SW_SHOW)
After I click this button and run the function, the gui hides but it does not appear again even though I have @SW_SHOW.
Can someone help me with this please. Thanks.
your script stucks in the 2nd while loop. to prevent such things, you should learn to use states.
you could simply set a variable which holds a "run" state. if run is true, the script will do some stuff. since you're allready in an endless loop, for scanning the gui events, you can put a simple if query.
if $run is true, then do your actions.
this will enable you to only set the $run variable, once the startbutton is called.
now that we've got a variable which is true or false, depending on the state the script is in currently, we can even modify the button to show us 'Start' or 'Stop', depending on the state.
if the actions are currently running, we wanna set the button label to Stop. if the script is not running ($run = False ( = 0 )), we set the button label to Start.
beside that, you should never use the sleep command in your script. it's way better to use timer functions, since sleep blocks your script.
once the script gets into sleep mode, no other commands will be applied. that means, that the gui won't get checked for events. (if you use a button the script won't get to know about it).
a reworked script could look like this:
Code:
Dim $timer, $run = False, $label[2]=['Start','Stop']
$gui = GUICreate("Forsaken's Bot", 335, 100)
GUISetState()
GUICtrlCreateLabel("Key", 8, 10)
$key1 = GUICtrlCreateInput("", 35, 8, 120)
GUICtrlCreateLabel("Time", 8, 44)
$time1 = GUICtrlCreateInput("", 35, 40, 120)
$button = GUICtrlCreateButton($label[$run], 190, 8, 60)
While 1
Switch GUIGetMsg()
Case -3
ExitLoop
Case $button
$run = Not $run
GUICtrlSetData($button, $label[$run])
$timer = 0
Case Else
If $run Then
If TimerDiff($timer) > GUICtrlRead($time1) And Not WinActive($gui) Then
Send(GUICtrlRead($key1))
$timer = TimerInit()
EndIf
EndIf
EndSwitch
WEnd
Thx but if u can make TheCrims bot
for go to nightclub comand and healing power comand
and Click mouse and write any thing i says by click start on bot i make?
The bot will not do anything. It is good for writing text to note pad and that is all. You need to explain that all this tutorial is good for is to learn how to build a simple GUI. It will not work as a bot for a game. Calling it a bot tuterial is miss leading.
[Video Tutorial] - Very Easy Tutorial How to make your Own Wallhack in C++ 09/01/2012 - Soldier Front Hacks, Bots, Cheats & Exploits - 16 Replies Hello Everyone!Hellow Philippines - Mabuhay Pinoy Cheaters!
Confidentials000 of GZP and Me Babyface21 ay iisa lang!
Today i Will Teach you on How to Make Your Own Wallhack in C++
Very Simple By Video Tutorials Step by Step Part 1 - 3
Dont Ask me to Release my Private Wallhack coz i Need it to still Undetected
[[Tutorial]] how to make your own hacks with VB 03/13/2011 - WarRock Hacks, Bots, Cheats & Exploits - 81 Replies ] : None Of the addresses work anymore, Current finding the updated ones. So the hacks will not work until me or someone else finds the new addresses!
Hey there. Are you getting sick of antiously waiting for someone to post a new hack for use, then in like one hour getting banned? Well thats over.
In this tutorial i will show you how to..
Designing and customizing your very own hacks
A few examples on how to add stuff such as Unlimited stamina or swimming
----------Getting...
[TUTORIAL] How To Make A UCE !!! 08/12/2010 - MapleStory - 23 Replies PART 1
UCE ToolsDDK (Driver Development Kit)- Used To Compile, Files For UCE
Delphi 7 - Compiling, And Editing UCE Files
Delphi 7 Keygen - To Crack Delphi so it's free
ASR (Actual Search and Replace) - Used To Search And Replace *Characters* To You Choice
My First tutorial How to make 20K GP in 5 Min 08/05/2010 - CrossFire - 26 Replies Sup Guys this is my First tutorial on how to make 20K GP in 5 min
And this is my video
Note: Dont say its bad video or anything ITS MY FIRST TIME MAKING VIDEO BTW
Program You will need
HotSpot Shield
[Tutorial] How To Make Around $50 A Day 01/30/2010 - Main - 4 Replies Site is called IMreportcard. You have to comment reviews on products/services/persons to gain points. You can exchange those points into money.
Sign-Up Here: *edited*
http://i46.tinypic.com/iqg67s.png
Now, 100 credits = $1. And as you can see, it's not hard to make 100 credits.
Commenting