Hello Me You Posted February 10, 2007 Share Posted February 10, 2007 (edited) What is that Global in HotKeySet? Any examples if you can to help me more? Edited February 10, 2007 by Hello Me You Random Link to comment Share on other sites More sharing options...
Developers Jos Posted February 10, 2007 Developers Share Posted February 10, 2007 What is that Global in HotKeySet?Any examples if you can to help me more?What is what Global ?Are you talking about the example ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Hello Me You Posted February 10, 2007 Author Share Posted February 10, 2007 (edited) for example: ; Press Esc to terminate script, Pause/Break to "pause" Global $Paused HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Terminate") HotKeySet("+!d", "ShowMessage") ;Shift-Alt-d ;;;; Body of program would go here ;;;; While 1 Sleep(100) WEnd ;;;;;;;; Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc Func ShowMessage() MsgBox(4096,"","This is a message.") EndFunc what is "Global $Paused"? Edited February 10, 2007 by Hello Me You Random Link to comment Share on other sites More sharing options...
Xenobiologist Posted February 10, 2007 Share Posted February 10, 2007 Hi, $paused is a variable and Global defines the varibale to be accessable in your whole script. Search for DIM, LOCAL and GLOBAL and you 'll see. So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Developers Jos Posted February 10, 2007 Developers Share Posted February 10, 2007 what is "Global $Paused"?Thats nicely explained in the Helpfile, but Variables can have a Local and Global Scope.Local= only known to the function its in.Global= Known throughout the whole script.More details in the Helpfile SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
BrettF Posted February 10, 2007 Share Posted February 10, 2007 Global, "forces creation of the variable in the Global scope" rather than Local, forces creation of the variable in the Local/Function scope. Hope that helps, otherwise do a search for Dim / Global / Local / Const in the helpfile. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Hello Me You Posted February 10, 2007 Author Share Posted February 10, 2007 (edited) I already searched in the help file but couldn't understand what it does Thank for all help: th.meger, JdeB and bert Edited February 10, 2007 by Hello Me You Random Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now