Vargarda Posted March 11, 2014 Share Posted March 11, 2014 (edited) Hello. i have tried for some days to get theese work together but i can't get it to work, i have read the forum rules and i don't break any rulesbecause its for my own server wont say which because someone might use some parts of this script to cheat.HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Terminate") Global $fPaused = True endfunc <snip> Func TogglePause() $fPaused = Not $fPaused While $fPaused Sleep(100) ToolTip('Script is "Paused"', 0, 0) WEnd ToolTip("") EndFunc ;==>TogglePause Func Terminate() Exit EndFunc ;==>Terminatewould be very happy if i got some help thanks in advance yours// Vargarda (its probley a mess this but i am new to this have been following guides etc.. to learn some but can't find any guide on building it all together) Edited March 11, 2014 by Melba23 Code removed - some left to show code tags working Link to comment Share on other sites More sharing options...
FireFox Posted March 11, 2014 Share Posted March 11, 2014 Hi, Please use autoit code tags to post your code. AutoIt does not support multithreading so you can't run two functions at the same time Br, FireFox. Link to comment Share on other sites More sharing options...
Vargarda Posted March 11, 2014 Author Share Posted March 11, 2014 oh sry should have though about doing that hehe ah ok... But it should be possible to make a code that execute all the codes tho in different exe's if i make them stand alone right? like if i make a script that opens all scripts in theire own exe's then it should be like having one big script right? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 11, 2014 Moderators Share Posted March 11, 2014 Vargarda, i have read the forum rules and i don't break any rules because its for my own serverThen you did not read the rules very well. It matters not one whit if this is for your own server, it is still not allowed here. Thread locked. M23P.S. And when you post code please use Code tags - see here how to do it. Then you get a scrolling box and syntax colouring as you can see above now I have added the tags. 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 Link to comment Share on other sites More sharing options...
Recommended Posts