Jump to content


how to show gimp


  • Please log in to reply
4 replies to this topic

#1 jaques

jaques
  • Guests

Posted 14 May 2012 - 06:54 AM

when i open gimp and execute this code it is going to task manager processes..but my requirement is to show gimp
:(

#SingleInstance, force
SendMode Input 
SetWorkingDir %A_ScriptDir% 

iTC_EXE      = C:\Program Files\GIMP-2.0\bin\gimp-2.6.exe
iTC_Path    = C:\Program Files\GIMP-2.0\bin

process,exist,gimp-2.6.exe
if !errorlevel  ;if errorlevel is not 0 then process exist
      {
     msgbox, %ErrorLevel%
      Run, %iTC_EXE%, %iTC_Path%, hide
      }
      
else
msgbox gimp was running



#2 CodeKiller

CodeKiller
  • Members
  • 2066 posts

Posted 14 May 2012 - 07:44 AM

>_>

Run, %iTC_EXE%, %iTC_Path%, [color=#FF0000]hide[/color]

What do you think this word do ???

#3 Maestr0

Maestr0
  • Members
  • 649 posts

Posted 14 May 2012 - 08:30 AM

Also you have one line too many before your else, they need to be right under each other, try this:
#SingleInstance, force

SendMode Input 

SetWorkingDir %A_ScriptDir% 



iTC_EXE      = C:\Program Files\GIMP-2.0\bin\gimp-2.6.exe

iTC_Path    = C:\Program Files\GIMP-2.0\bin



process,exist,gimp-2.6.exe

if !errorlevel  ;if errorlevel is not 0 then process exist

{

     msgbox, %ErrorLevel%

      Run, %iTC_EXE%, %iTC_Path%

}

else

      msgbox gimp was running


#4 Leef_me

Leef_me
  • Moderators
  • 7704 posts

Posted 14 May 2012 - 02:43 PM

Also you have one line too many before your else, they need to be right under each other

Actually, no they don't.
b=0
c=0
r=1 ; <--- change this variable to either 1 or 0 
; then save, run, and observe the results


if r=1
{
b++
tooltip % b "|" c
}



else
{
c++
tooltip % b "|" c
}
exitapp


#5 Maestr0

Maestr0
  • Members
  • 649 posts

Posted 14 May 2012 - 03:22 PM

Ah, my bad then... true for both AHK_L and AHK_B... wonder how I arrived at that wrong conclusion there...