어디서 문제가 있는지 모르겠네요;; 폼이 2여서 그런가? 해결좀요~
펴라
Private Declare Function GetAsyncKeyState Lib user32 (ByVal vKey As Long) As Integer
Private Sub Command1_Click()
Shell C:\Program Files\StarCraft\\StarCraft.exe
End Sub
Private Sub Form_Load()
End Sub
Private Sub Label2_Click()
End Sub
Private Sub Timer1_Timer()
SendKeys {Enter}
SendKeys show me the money
SendKeys {Enter}
Timer1.Enabled = False
End Sub
Private Sub Timer2_Timer()
SendKeys {Enter}
SendKeys power overwhelming
SendKeys {Enter}
Timer2.Enabled = False
End Sub
Private Sub Timer3_Timer()
SendKeys {Enter}
SendKeys something for nothing
SendKeys {Enter}
Timer3.Enabled = False
End Sub
Private Sub Timer4_Timer()
SendKeys {Enter}
SendKeys the gathering
SendKeys {Enter}
Timer4.Enabled = False
End Sub
Private Sub Timer5_Timer()
SendKeys {Enter}
SendKeys operation cwal
SendKeys {Enter}
Timer5.Enabled = False
End Sub
Private Sub Timer6_Timer()
SendKeys {Enter}
SendKeys black sheep wall
SendKeys {Enter}
Timer6.Enabled = False
End Sub
Private Sub Timer7_Timer()
If GetAsyncKeyState(vbKeyNumpad0) Then
Timer1.Enabled = True
End If
If GetAsyncKeyState(vbKeyNumpad1) Then
Timer2.Enabled = True
End If
If GetAsyncKeyState(vbKeyNumpad2) Then
Timer3.Enabled = True
End If
If GetAsyncKeyState(vbKeyNumpad3) Then
Timer4.Enabled = True
End If
If GetAsyncKeyState(vbKeyNumpad4) Then
Timer5.Enabled = True
End If
If GetAsyncKeyState(vbKeyNumpad4) Then
Timer6.Enabled = True
End If
End Sub
Private Sub Timer8_Timer()
Call ToggleTopmost(Form1.hwnd)
End Sub
이렇게 하고
모듈도
Public Const HWND_TOPMOST& = -1
Public Const SWP_NOMOVE& = &H2
Public Const SWP_NOSIZE& = &H1
Public Declare Function SetWindowPos& Lib user32 _
(ByVal hwnd As Long, ByVal hWndInsertAfter As Long, _
ByVal x As Long, ByVal y As Long, ByVal cx As Long, _
ByVal cy As Long, ByVal wFlags As Long)
Public Sub ToggleTopmost(ByVal hWindow As Long)
SetWindowPos hWindow, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
End Sub
추가 했는데;;; 작동이 안되네요;; 왜그런지 보고 말씀좀요 ㅠㅠ
-
곰돌츼
는 런쳐?
번호 | 제 목 | 글쓴이 | 날짜 |
---|---|---|---|
2697183 | VB 어떤거부터 공부해야 좋을까요 ? | 민아 | 2025-06-05 |
2697130 | 두개 이상의 프로그램이 있을시 종료 | 슬아 | 2025-06-05 |
2697103 | 센드키는 알겟는데 keypress이거는머에요 (1) | 헛장사 | 2025-06-04 |
2697073 | 컴퓨터 끄기를 누르면 끄기가 아니라 대기모드가 되게 하는방법좀요 (2) | 플랜 | 2025-06-04 |
2697051 | shell문을 입력후에클릭을하면..내문서가 열리네요...? (1) | 사이 | 2025-06-04 |
2697024 | 타이머사용 | 나나 | 2025-06-04 |
2696970 | text형식으로 저장할때 언어셋설정 질문!!! | 핫팬츠 | 2025-06-03 |
2696917 | sys우회 하는법 아시는분. . (1) | 촉촉한 초코칩 | 2025-06-03 |
2696883 | 비쥬얼베이직 스튜디오 6.0 파일 | 콩알눈 | 2025-06-02 |
2696854 | 윈웹 렉이 너무 심하네요 (1) | 팬지 | 2025-06-02 |
2696825 | 메이플스토리로그인(접속기) 소스오류, 해결바랍니다! | 키다리 | 2025-06-02 |
2696800 | 그누보드 multipart 게시글작성 (3) | HotPink | 2025-06-02 |
2696640 | 이 소스의 모듈좀 주세용 ;; | 파이팅 | 2025-05-31 |
2696591 | 다운프로그램 넣는법?? | 아놀드 | 2025-05-31 |
2696566 | 수정해도 그래요 ㅜㅜ 다시한번 제발 이것좀 해결해주세요 ㅜ | 하늘빛눈망울 | 2025-05-30 |
2696513 | 텍스트 활성 방법 좀... | 힘찬 | 2025-05-30 |
2696466 | ExitWindow함수로 컴퓨터 끄는 방법좀요 | 가장 | 2025-05-29 |
2696441 | 기억이안나서그런데 ㅠㅠ | 란새 | 2025-05-29 |
2696412 | 리스트뷰 에 체크 할수 있게 하는법좀요;;;ㅠ. | PinkPearl | 2025-05-29 |
2696380 | 질문이요 제발 답변좀요 ㅠㅠ | 은G | 2025-05-29 |