Gynaecologist 0 Posted October 4, 2010 hi can you guys tell me how to stop a software running on my computer? Share this post Link to post Share on other sites
AlmarM 22 Posted October 4, 2010 Uninstall it? Explain some more. MinesweeperA minesweeper game created in autoit, source available._Mouse_UDFAn UDF for registering functions to mouse events, made in pure autoit.2D Hitbox EditorA 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Share this post Link to post Share on other sites
HavikTech 0 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 Share this post Link to post Share on other sites
Gynaecologist 0 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 Share this post Link to post Share on other sites
AlmarM 22 Posted October 4, 2010 If uninstalling isn't what you need, take a look at HavikTech's example then. MinesweeperA minesweeper game created in autoit, source available._Mouse_UDFAn UDF for registering functions to mouse events, made in pure autoit.2D Hitbox EditorA 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Share this post Link to post Share on other sites
Gynaecologist 0 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 ^ Share this post Link to post Share on other sites
Melba23 3,456 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 Share this post Link to post Share on other sites
HavikTech 0 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 Share this post Link to post Share on other sites
somdcomputerguy 103 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. Share this post Link to post Share on other sites
Gynaecologist 0 Posted October 4, 2010 i have completed tutorials & read about the functions. Thanks @ all for Welcome, Script, suggestions & time Share this post Link to post Share on other sites
HavikTech 0 Posted October 4, 2010 (edited) That's a good start, glad we could help! Edited October 4, 2010 by HavikTech Share this post Link to post Share on other sites