unnamed24 Posted August 27, 2008 Share Posted August 27, 2008 hey everyone... it's my first time here... i found out that autoitscript does really cool stuff and somehow if your IQ isnt that of a retard you can learn it easily... and i'm not a retard anyways... can anyone help me? i want my program to be just a tray program and when i press a certain hotkey the program executes and when i press another hotkey it stops... need it very badly... thanks for thos who'll help!!! Link to comment Share on other sites More sharing options...
Zonarius Posted August 27, 2008 Share Posted August 27, 2008 (edited) I guess the program runs in a loop when the hotkey is pressed? If so, try this: Dim $running = false HotKeySet("g", "go") HotKeySet("s", "stop") While True If $running Then ;your code Else Sleep(1) EndIf Wend Func go() $running = True EndFunc Func stop() $running = False EndFunc Edited August 27, 2008 by Zonarius Link to comment Share on other sites More sharing options...
unnamed24 Posted August 27, 2008 Author Share Posted August 27, 2008 hey thanks! i'm gonna try it... so how can i make it into a tray? Link to comment Share on other sites More sharing options...
Zonarius Posted August 27, 2008 Share Posted August 27, 2008 (edited) With my code you should have an AutoIt tray icon already.Nothing else will show up unless you modify my code.If you need more functionality with the tray icon, try some Tray... functions from the documentation.http://www.autoitscript.com/autoit3/docs/functions.htm Edited August 27, 2008 by Zonarius Link to comment Share on other sites More sharing options...
unnamed24 Posted August 27, 2008 Author Share Posted August 27, 2008 (edited) oh didnt see that... thanks Zonarius! you really helped! hope you help more people! i'll tell you if there's any problem... Edited August 27, 2008 by unnamed24 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