루아의 클립 보드에 저장하는 방법은 무엇입니까? (Windows)루아의 클립 보드에서 저장하는 방법 (Windows)
1
A
답변
1
간단! 당신은 afxLua 라이브러리를 사용하여 클립 보드에서 정보를 저장하고 얻을 수 있습니다 :
0 . go here - http://luaforge.net/projects/jaslatrix/
1 . click on the "clipboard" link
2 . click on "1.0.0"
3 . select lua version accordingly. If unsure try "clipboard-1.0.0-Lua51.zip"
4 . unzip the downloaded file
5 . the documentation is inside of the clipboard.chm file.
6 . place the clipboard.dll inside of your project folder (or in the same folder as the .lua)
7 . add to the top of your code the following - require "clipboard"
8 . to get clipboard data, assign a variable to clipboard.gettext()
9 . to save data to the clipboard do this - clipboard.setdata(yourVariableOrStringHere)
[meta-numbers]
0 . Why did I make this?
Because awhile ago, when I was a total newbie (lua is the first language I learned), I needed this for a project and was unable to figure out how, so the feature was never implemented despite it's importance. I was also a slightly scared of add-on libraries.
1 . I am not jaslatrix nor am I advertising his library. However, when you search "clipboard API lua" on google, it is impossible to find anything except for c library tutorials, so I figured it'd be nice to share this.
+0
현재 루아 (5.3)에서 작동하는 업데이트가 있습니까? – tonypdmtr
0
당신은 winapi에서 get_clipboard 및 set_clipboard 기능을 사용할 수 있습니다.
관련 문제
- 1. 클립 보드에서 OLE 개체 저장
- 2. 클립 보드에서 IDataObject 비교
- 3. 클립 보드에서 DataGridView를 검색하려면 어떻게해야합니까? (클립 보드에서 Null로 끝납니다.)
- 4. Word에서 클립 보드에서 파일로
- 5. 클립 보드에서 문자열 읽기
- 6. 클립 보드에서 이미지 복사
- 7. 버튼 하나로 클립 보드에서 이미지를 얻는 방법?
- 8. 클립 보드에서 형식으로 내용을 얻는 방법
- 9. 클립 보드에서 그림을 배열 데이터로 변환하는 방법
- 10. 클립 보드에서 서버로 사진 업로드
- 11. 클립 보드에서 파일 이름 붙이기
- 12. 안드로이드 클립 보드에서 붙여 넣기
- 13. 클립 보드에서 Python 다운로드 URL
- 14. wxPython으로 클립 보드에서 이미지 읽기
- 15. 클립 보드에서 이미지 붙여 넣기
- 16. 클립 보드에서 VB의 배열로 복사
- 17. 클립 보드에서 알림을 받으려면 어떻게해야합니까?
- 18. Windows 클립 보드에서 jpg 또는 png를 어떻게 읽습니까?
- 19. Python과 Tkinter를 사용하여 클립 보드에서 복사
- 20. 순수 API를 사용하여 클립 보드에서 이미지 저장
- 21. Windows 클립 보드에있는 모든 링크를 잡는 방법?
- 22. Silverlight/클립 보드의 클립 보드에서 이미지 가져 오기
- 23. Go에서 클립 보드로/클립 보드에서 텍스트를 복사하는 방법은 무엇입니까?
- 24. .Net 다른 응용 프로그램이 클립 보드에서 이미지를 읽거나 쓰는 것과 동시에 클립 보드에서 이미지를 가져 옵니까?
- 25. 모든 브라우저에서 클립 보드에서 붙여 넣기 버튼
- 26. AppleScript로 클립 보드에서 파일을 복사하는 방법은 무엇입니까?
- 27. HTML/JavaScript의 클립 보드에서 Excel 수식에 액세스
- 28. 클립 보드에서 이미지 붙여 넣기 javadript
- 29. 이미지 가져 오기 클립 보드에서 배열로
- 30. 구문 분석하고 클립 보드에서 URL을 추가하십시오.
루아에서 내장 된 방법이 없으므로 모든 대답은 "라이브러리 X 사용"일 가능성이 큽니다. –