Gynaecologist Posted October 4, 2010 Share Posted October 4, 2010 hi can you guys tell me how to stop a software running on my computer? Link to comment Share on other sites More sharing options...
AlmarM Posted October 4, 2010 Share Posted October 4, 2010 Uninstall it? Explain some more. Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
HavikTech Posted October 4, 2010 Share Posted October 4, 2010 (edited) Hi, First of all Welcome to AutoIt Forums. what you want to do is block a spesific process from running on your computer. right? Try This: $StartupKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" $MyProcess = "MyProcessNameGoesHere.exe" RegWrite ($StartupKey, @ScriptName,"REG_SZ", @ScriptFullPath) While 1 ProcessWait($MyProcess) ProcessClose($MyProcess) Sleep(100) WEnd this script 'll be added in startup using a registry key! for any information about the functions used in script. Press the F1 key in AutoIt Editor & There is a complete help file. it's strongly recommended to read help file. Edited October 4, 2010 by HavikTech Link to comment Share on other sites More sharing options...
Gynaecologist Posted October 4, 2010 Author Share Posted October 4, 2010 (edited) Uninstall it?Explain some more.Disallow a program running on my computer.What should i do. Edited October 4, 2010 by Gynaecologist Link to comment Share on other sites More sharing options...
AlmarM Posted October 4, 2010 Share Posted October 4, 2010 If uninstalling isn't what you need, take a look at HavikTech's example then. Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
Gynaecologist Posted October 4, 2010 Author Share Posted October 4, 2010 Thanks HavikTech for the welcome & Script. And Thanks AlmarM for the suggestion. Now the problem is that i am new to AutoIt Programming and could not understand the script posted above ^ Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 4, 2010 Moderators Share Posted October 4, 2010 Gynaecologist, i am new to AutoIt Programming and could not understand the script posted aboveThen you need to learn about it. The script is very easy to understand - once you have a little knowledge of AutoIt. Reading the Help file (at least the first few sections - Using AutoIt, Tutorials and the first couple of References) will help you enormously. You should also look at the excellent tutorials that you will find here and here - you will find other tutorials in the Wiki (the link is at the top of the page). There are even video tutorials on YouTube if you prefer watching to reading. And you know where we are if you need help - as long as you have read the Help file and searched the forum first! 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 Link to comment Share on other sites More sharing options...
HavikTech Posted October 4, 2010 Share Posted October 4, 2010 (edited) Hi Gynaecologist, If you check my previous post, there is written "it's strongly recommended to read the help file." Autoit Help file is your best companion, it have all the information about all functions. For you, i am adding comments for easy understanding! ; $StartupKey is a variable which have path of a registry key $StartupKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" ; $MyProcess have the name of executable which you want to block $MyProcess = "MyProcessNameGoesHere.exe" ; using RegWrite function, we 'll write a startup registry key ; it 'll be used for automatic startup of program on windows start. ; @ScriptName = Current Script Name ; @ScriptFullPath = Full path of script with full name + ext ; Starting with @ are called macros which are pre defined variables. RegWrite ($StartupKey, @ScriptName,"REG_SZ", @ScriptFullPath) ; This is an endless loop ; it 'll run the script again and again, continuously... While 1 ProcessWait($MyProcess) ; wait for a process to be started (Script paused until this happens) ProcessClose($MyProcess) ; close a process Sleep(100) WEnd ; Loop Ends here and all this information is in hep file too.. go read it. if anything is not clear then let us know! Edited October 4, 2010 by HavikTech Link to comment Share on other sites More sharing options...
somdcomputerguy Posted October 4, 2010 Share Posted October 4, 2010 Also, if one clicks on the function names in the example code posted here, it will take you to that function in the online Help file. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Gynaecologist Posted October 4, 2010 Author Share Posted October 4, 2010 i have completed tutorials & read about the functions. Thanks @ all for Welcome, Script, suggestions & time Link to comment Share on other sites More sharing options...
HavikTech Posted October 4, 2010 Share Posted October 4, 2010 (edited) That's a good start, glad we could help! Edited October 4, 2010 by HavikTech 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