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)
gregster
Posts: 2406
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: MIRKOSOFT, OceanDF and 120 guests