|
You last visited: Today at 09:38
Advertisement
Help me in Start&Stop and time and Checkbox :D
Discussion on Help me in Start&Stop and time and Checkbox :D within the AutoIt forum part of the Coders Den category.
05/02/2012, 19:54
|
#16
|
elite*gold: 528
Join Date: Jan 2012
Posts: 2,127
Received Thanks: 2,403
|
Quote:
Originally Posted by Fairy10
how with out guis?
|
Quote:
Originally Posted by osamaman2008
sorry for i ask many
but thanks in any thing
|
It's really not my purpose to farm thanks, but they have made such a great function:
Besides i made an example for you:
Code:
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.8.1
Author: Achat (www.elitepvpers.com)
#ce ----------------------------------------------------------------------------
; Script Start - Add your own code below here!!! The following code is my code!!
$iTime = Int(InputBox('Hello', 'Please read some tutorials!')) ;Here you enter the frequency - time in which your function gets called. Remember: 1 second = 1000 milliseconds (for 1s type in 1000)
If @error Or $iTime < 1 Then Exit ;For example if you close the InputBox or enter some letters, then $iTime has no value or 0 as value -> Script would crash, so it exits the script.
HotKeySet('{a}', '_Start')
HotKeySet('{b}', '_Stop')
While 1 ;You need a loop - if you haven't a loop, this script would exit.
Sleep(100)
WEnd
Func _PleaseReadSomeMoreTutorialsThankYou()
Send('{1}')
EndFunc ;==>_PleaseReadSomeMoreTutorialsThankYou
Func _Start()
AdlibRegister('_PleaseReadSomeMoreTutorialsThankYou', $iTime) ;You find infos to this command if you put your cursor over it and press F1 ;-)
EndFunc ;==>_Start
Func _Stop()
AdlibUnRegister('_PleaseReadSomeMoreTutorialsThankYou')
EndFunc ;==>_Stop
;Last but not least: If you got questions, feel free to PM me.
Best Regards
|
|
|
05/02/2012, 20:13
|
#17
|
elite*gold: 0
Join Date: Jun 2010
Posts: 42
Received Thanks: 18
|
Quote:
Originally Posted by Achat
It's really not my purpose to farm thanks, but they have made such a great function:
Besides i made an example for you:
Code:
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.8.1
Author: Achat (www.elitepvpers.com)
#ce ----------------------------------------------------------------------------
; Script Start - Add your own code below here!!! The following code is my code!!
$iTime = Int(InputBox('Hello', 'Please read some tutorials!')) ;Here you enter the frequency - time in which your function gets called. Remember: 1 second = 1000 milliseconds (for 1s type in 1000)
If @error Or $iTime < 1 Then Exit ;For example if you close the InputBox or enter some letters, then $iTime has no value or 0 as value -> Script would crash, so it exits the script.
HotKeySet('{a}', '_Start')
HotKeySet('{b}', '_Stop')
While 1 ;You need a loop - if you haven't a loop, this script would exit.
Sleep(100)
WEnd
Func _PleaseReadSomeMoreTutorialsThankYou()
Send('{1}')
EndFunc ;==>_PleaseReadSomeMoreTutorialsThankYou
Func _Start()
AdlibRegister('_PleaseReadSomeMoreTutorialsThankYou', $iTime) ;You find infos to this command if you put your cursor over it and press F1 ;-)
EndFunc ;==>_Start
Func _Stop()
AdlibUnRegister('_PleaseReadSomeMoreTutorialsThankYou')
EndFunc ;==>_Stop
;Last but not least: If you got questions, feel free to PM me.
Best Regards
|
Quote:
Originally Posted by lolkop
at this point, we've reached the limit of noobstuff <.<
if you wanna learn scripting, learn scripting and get rid of that koda generated or copy-pasted shit...
if we cut off the useless, parts of your script, we'll get this:
this is the last time, i'm going to say this. if you're a beginner, do not start using any gui generator, and ask people in here how to add functionality.
Code:
functionality > design
thats the golden rule for all coders. a gui without any functionallity is totally useless... thats like the uber pc case, without any hardware inside...
if you're building a script, get the main part working first. once that's done you're allowed to design a user interface. do not even think about doing it in the other direction, and ask users in here to add the functionality for your designed gui!
|
Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("Test", 256, 70, 299, 218)
$Button1 = GUICtrlCreateButton("Hid", 16, 8, 75, 25)
$Button2 = GUICtrlCreateButton("Show", 104, 8, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
WEnd
functionality > design
?
|
|
|
05/02/2012, 20:27
|
#18
|
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
|
|
|
|
05/02/2012, 20:34
|
#19
|
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
|
lol.....
einfach nur... lol....
nicht sein ernst oder?
|
|
|
 |
|
Similar Threads
|
Some Help here . Game Stop After Press Start
01/10/2012 - SRO Private Server - 1 Replies
Hello ..
can some one help me To Fix that Problem
when i add at
Those TxT ( refpackageitem.txt - refpricepolicyofitem.txt -refscrapofpackageitem.txt - refshopgoods.txt ) Anto Media,pk2 Give me that error
http://img689.imageshack.us/img689/246/piratel.jp g
Any solutions Please
|
Bessere start / stop funktion?
09/11/2011 - AutoIt - 4 Replies
hallo ich bräuchte ne bessere PAUSE funktion für meinen bot :o
miene jetzige funktion sieht so aus:
func pause ()
while 1
wend
EndFunc
|
[ESRO]Start client, login, select character, click start and stop...
06/23/2011 - SRO Private Server - 1 Replies
Okay, so whats up with that new thing when you get to select character screen, when you click start it does nothing?
DONT JUST SAY SAME, I know you have the same problem...
You can thank me if you have the same problem tho... :P
|
[Request] How to stop auto start
02/03/2010 - Grand Chase - 9 Replies
Using The Brian and his group hack (sorry dont know other names) for the IPUC hack. But i cant stop auto start someone plz tell me how to stop. IF someone does help thank and i will do this :handsdown: XD.
|
All times are GMT +1. The time now is 09:39.
|
|