gui, show, x10 y10 w190 h105, GUI 예제
  gui, add, button, x100 y10 w75 h80 g버튼 , 설정 완료

  Gui, Add, Text, x10 y15 Cred , Send
  Gui, Add, edit, x50 y10 w40 h20 v내용, 1234

  Gui, Add, Text, x10 y45 CBlue , Sleep
  Gui, Add, edit, x50 y40 w40 h20 v속도1, %속도1%

  Gui, Add, Text, x10 y75 , 단축키
  Gui, Add, Hotkey, x50 y70 w40 h20 v핫키1, F2

  return

  버튼: 
  Gui Submit, nohide
  GUIControlGet, 내용
  GUIControlGet, 속도1
  
  if Enable=on
      {
      Enable=off
  GuiControl, Disabled, 내용
      GuiControl, Disabled, 속도1
      GuiControl, Disabled, 핫키1
  Hotkey, %핫키1%, 핫키1, on
  }
        Else
{
        Enable=on
        GuiControl, Enabled, 내용
        GuiControl, Enabled, 속도1
        GuiControl, Enabled, 핫키1
Hotkey, %핫키1%, 핫키1, off
}
  i= 1
  return 

 핫키1:
  run notepad
  sleep %속도1%
 loop
 {
    Sendinput %내용%
    sleep %속도1%

if ( i = 2)
    {
  i=1
  break
}
}
return

 F3::
 i=2
 return

 F4::
 Exitapp
 return
 
GuiClose:
ExitApp
---------------------------------------------------------------------------------
이렇게  하면 잘되는데요^^  ㅎㅎ  아랫 처럼 하면 안되는 이유가 멀가요?^^;;  머 빠트린거라도 있나요?
메모장까지는 열리고  다음엔 진행이  안되네요^^;; 오늘도 친절한 답변 부탁 드려요^^

 gui, show, x10 y10 w190 h105, GUI 예제
  gui, add, button, x100 y10 w75 h80 g버튼 , 설정 완료

  Gui, Add, Text, x10 y15 Cred , Send
  Gui, Add, edit, x50 y10 w40 h20 v내용, 1234

  Gui, Add, Text, x10 y45 CBlue , Sleep
  Gui, Add, edit, x50 y40 w40 h20 v속도1, %속도1%

  Gui, Add, Text, x10 y75 , 단축키
  Gui, Add, Hotkey, x50 y70 w40 h20 v핫키1, F2

  return

  버튼: 
  Gui Submit, nohide
  GUIControlGet, 내용
  GUIControlGet, 속도1
  
  if Enable=on
      {
      Enable=off
  GuiControl, Disabled, 내용
      GuiControl, Disabled, 속도1
      GuiControl, Disabled, 핫키1
  Hotkey, %핫키1%, 핫키1, on
  }
        Else
{
        Enable=on
        GuiControl, Enabled, 내용
        GuiControl, Enabled, 속도1
        GuiControl, Enabled, 핫키1
Hotkey, %핫키1%, 핫키1, off
}
  i= 1
  return 

 핫키1:
 구분("내용으로")
  return

구분(Setting)
{
If (Setting == "내용으로")

  run notepad
  sleep %속도1%
    loop
  {
    Sendinput %내용%
sleep %속도1%

if ( i = 2)
    {
  i=1
  break
}

  }

}
 return

 F3::
 i=2
 return

 F4::
 Exitapp
 return
 
GuiClose:
ExitApp

답글