Beetle Posted December 17, 2010 Posted December 17, 2010 I don't really understand the pause function? While 1 $counter +=1 HotKeySet("g", "lala") HotKeySet("t", "blabla") HotKeySet("e", "blahblah") HotKeySet("c", "blahablaha") ToolTip('Script is "Running"',0,0, $counter, 1) Sleep(700) WEnd ;;;;;;;; Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0, $counter, 1) WEnd ToolTip("") EndFunc Can i put the HotKeySet("g", "lala") in the $paused part like unbind ("g", "lala")??
ZacUSNYR Posted December 17, 2010 Posted December 17, 2010 Don't understand your question. Are you asking how to remove a hotkey? If so you can just set it without a function. HotKeySet("g") would reset G. That code is not complete. You're missing the function that sets $pause true. Which would exit the loop with a hot key.
Beetle Posted December 17, 2010 Author Posted December 17, 2010 (edited) Don't understand your question. Are you asking how to remove a hotkey? If so you can just set it without a function. HotKeySet("g") would reset G. That code is not complete. You're missing the function that sets $pause true. Which would exit the loop with a hot key. Lets me just put my scrambled script in here ^^ expandcollapse popupGlobal $Paused HotKeySet("p", "TogglePause") ; ??????????????????????? While 1 HotKeySet("g", "Glass") HotKeySet("t", "Torches") HotKeySet("e", "Ovne") HotKeySet("c", "Stop") ToolTip("Script is Running", 0, 0) Sleep(700) WEnd Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip("Script is Paused", 0, 0) WEnd ToolTip("") EndFunc $ovne = 0 $glass = 0 Func Torches() Sleep(250) Send("i") MouseClick("left", 876, 267, 16, 0) MouseClick("left", 627, 583, 1, 0) Send("i") EndFunc Func Glass() $glass = $glass + 1 If $glass = 1 Then Sleep(500) Send("i") Sleep(500) MouseClick("left", 574, 413, 1, 0) MouseClick("left", 682, 582, 1, 0) MouseClick("left", 628, 413, 1, 0) MouseClick("left", 736, 582, 1, 0) MouseClick("left", 679, 413, 1, 0) MouseClick("left", 790, 582, 1, 0) Sleep(250) Send("i") EndIf If $glass = 2 Then Sleep(500) Send("i") Sleep(500) MouseClick("left", 574, 466, 1, 0) MouseClick("left", 682, 582, 1, 0) MouseClick("left", 628, 466, 1, 0) MouseClick("left", 736, 582, 1, 0) MouseClick("left", 679, 466, 1, 0) MouseClick("left", 790, 582, 1, 0) Sleep(250) Send("i") $glass = $glass - 2 EndIf EndFunc Func Ovne() $ovne = $ovne + 1 If $ovne = 1 Then MouseClick("left", 465, 407, 1, 0) MouseClick("left", 611, 205, 1, 0) EndIf If $ovne = 2 Then MouseClick("left", 518, 407, 1, 0) MouseClick("left", 611, 205, 1, 0) EndIf If $ovne = 3 Then MouseClick("left", 571, 407, 1, 0) MouseClick("left", 611, 205, 1, 0) EndIf If $ovne = 4 Then MouseClick("left", 624, 407, 1, 0) MouseClick("left", 611, 205, 1, 0) EndIf If $ovne = 5 Then MouseClick("left", 677, 407, 1, 0) MouseClick("left", 611, 205, 1, 0) EndIf If $ovne = 6 Then MouseClick("left", 730, 407, 1, 0) MouseClick("left", 611, 205, 1, 0) EndIf If $ovne = 7 Then MouseClick("left", 783, 407, 1, 0) MouseClick("left", 611, 205, 1, 0) EndIf If $ovne = 8 Then MouseClick("left", 836, 407, 1, 0) MouseClick("left", 611, 205, 1, 0) EndIf If $ovne = 9 Then MouseClick("left", 889, 407, 1, 0) MouseClick("left", 611, 205, 1, 0) $ovne = $ovne - 9 ;;;;; reset til $ovne = 0 EndIf EndFunc Func Stop() Exit 0 EndFunc Yes i know, its newbie codes but i'm still learning =P As i tab out of "something" quite often to write to friends i need to unbind in order to use E C and the other buttons i have bound, but i don't know how to? Also it feels like pause doesn't work =/ Edited December 17, 2010 by Beetle
wakillon Posted December 17, 2010 Posted December 17, 2010 The Pause Function stop all other action of a script, script is in "pause"... AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts
Moderators Melba23 Posted December 17, 2010 Moderators Posted December 17, 2010 Beetle,I suggest you read this before asking for any more help with your bot - unless you want a short holiday from the forum. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Beetle Posted December 17, 2010 Author Posted December 17, 2010 (edited) So i edit my post, and make it not look like i have some automisation in "something"? what? Edited December 17, 2010 by Beetle
shanet Posted December 17, 2010 Posted December 17, 2010 So i edit my post, and make it not look like i have some automisation in minecraft? what?Well, now we know that its a game bot, we wont help. I assume you read the link? Simple. We wont help. [font="Comic Sans MS"]My code does not have bugs! It just develops random features.[/font]My Projects[list][*]Live Streaming (Not my project, but my edited version)[right]AutoIt Wrappers![/right][/list]Pure randomness[list][*]Small Minds.......................................................................................................[size="1"]Simple progress bar that changes direction at either sides.[/size][*]ChristmasIt AutoIt Christmas Theme..........................................................[size="1"]I WAS BOOOORED![/size][*]DriveToy..............................................................................................................[size="1"]Simple joke script. Trick your friends into thinking their computer drive is haywire![/size][/list]In Development[list][*]Your Background Task Organiser[*]AInstall Second Generation[/list]BEFORE POSTING ON THE FORUMS, TRY THIS: %programfiles%/AutoIt3/autoit3.chm
Valik Posted December 17, 2010 Posted December 17, 2010 Locked. Don't try to post again on this subject or you will be removed from the forum.
Recommended Posts