Empty Command Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
zeenun
Posts: 3
Joined: 13 Jan 2019, 09:31

Empty Command

13 Jan 2019, 15:44

Is there a command that does absolutely nothing? I need a command that will not do anything, open anything, or slow down my computer. Or if you could tell me any other way I can make a command run if microsoftedge is not running, that would be helpful :D

Script:

if WinExist("ahk_exe microsoftedge.exe")
(command that does nothing)
else
(Command That I want to be ran if microsoftedge.exe is not running)
User avatar
gregster
Posts: 1653
Joined: 30 Sep 2013, 06:48

Re: Empty Command  Topic is solved

13 Jan 2019, 15:50

In this case, use ! as logical not operator and don't use else at all:

Code: Select all

if !WinExist("ahk_exe microsoftedge.exe")
	(Command That I want to be ran if microsoftedge.exe is not running)

Return to “Ask For Help”

Who is online

Users browsing this forum: _Ne0n, blue83, rommmcek, Seeds, SeriousScrooge and 51 guests