小项目:dell遥控器精灵

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

小项目:dell遥控器精灵

flyaflya
用遥控器控制鼠标,用的是pyhook模块。
http://sourceforge.net/projects/dell

--
http://www.flyaflya.com
_______________________________________________
python-chinese
Post: send [hidden email]
Subscribe: send subscribe to [hidden email]
Unsubscribe: send unsubscribe to  [hidden email]
Detail Info: http://python.cn/mailman/listinfo/python-chinese
Reply | Threaded
Open this post in threaded view
|

Re: 小项目:dell遥控器精灵

Yongchao Lao
我也有遥控器。晚上回去试试。
 
更感兴趣的是pyhook模块和你的代码,哈。谢谢提供了这么好的项目。
 
 
2008-01-17

fluke.l

发件人: flyaflya
发送时间: 2008-01-16  23:10:10
收件人: [hidden email]
抄送:
主题: [python-chinese]小项目:dell遥控器精灵
用遥控器控制鼠标,用的是pyhook模块。
http://sourceforge.net/projects/dell

--
http://www.flyaflya.com

_______________________________________________
python-chinese
Post: send [hidden email]
Subscribe: send subscribe to [hidden email]
Unsubscribe: send unsubscribe to  [hidden email]
Detail Info: http://python.cn/mailman/listinfo/python-chinese
Reply | Threaded
Open this post in threaded view
|

Re: 小项目:dell遥控器精灵

pt42
是用PY2EXE打包成一个文件吗?求setup.py写法

在 08-1-17,fluke.l<[hidden email]> 写道:

>
> 我也有遥控器。晚上回去试试。
>
> 更感兴趣的是pyhook模块和你的代码,哈。谢谢提供了这么好的项目。
>
>
> 2008-01-17 ________________________________
>
> fluke.l ________________________________
>
> 发件人: flyaflya
> 发送时间: 2008-01-16  23:10:10
> 收件人: [hidden email]
> 抄送:
> 主题: [python-chinese]小项目:dell遥控器精灵
> 用遥控器控制鼠标,用的是pyhook模块。
> http://sourceforge.net/projects/dell
>
> --
> http://www.flyaflya.com
> _______________________________________________
> python-chinese
> Post: send [hidden email]
> Subscribe: send subscribe to
> [hidden email]
> Unsubscribe: send unsubscribe to
> [hidden email]
> Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
>
_______________________________________________
python-chinese
Post: send [hidden email]
Subscribe: send subscribe to [hidden email]
Unsubscribe: send unsubscribe to  [hidden email]
Detail Info: http://python.cn/mailman/listinfo/python-chinese
Reply | Threaded
Open this post in threaded view
|

Re: 小项目:dell遥控器精灵―――― 是用PY2EXE打包成一个文件

faitherQ
是用PY2EXE打包成一个文件
 
from distutils.core import setup
import py2exe
includes = ["encodings", "encodings.*"]
options = {"py2exe":
            {   "compressed": 1,
                "optimize": 2,
                "includes": includes,
                "bundle_files": 1  # ‘注意这里’
            }
          }
setup(
    console = [{"script": "readkiller.py", "icon_resources": [(1, "strtool.ico")] }],  #文件名
    #console=['hello.py'],
    version = "0.1.0",
    options = options,
    zipfile=None,
 
  
    )
 
 
2008-01-17

faitherq

发件人: pt42
发送时间: 2008-01-17  09:50:13
收件人: [hidden email]
抄送:
主题: Re: [python-chinese]小项目:dell遥控器精灵
是用PY2EXE打包成一个文件吗?求setup.py写法
 
在 08-1-17,fluke.l <[hidden email] > 写道:
>
> 我也有遥控器。晚上回去试试。
>
> 更感兴趣的是pyhook模块和你的代码,哈。谢谢提供了这么好的项目。
>
>
> 2008-01-17 ________________________________
>
> fluke.l ________________________________
>
> 发件人: flyaflya
> 发送时间: 2008-01-16  23:10:10
> 收件人: [hidden email]
> 抄送:
> 主题: [python-chinese]小项目:dell遥控器精灵
> 用遥控器控制鼠标,用的是pyhook模块。
>
> --
> _______________________________________________
> python-chinese
> Post: send [hidden email]
> Subscribe: send subscribe to
> Unsubscribe: send unsubscribe to
> Detail Info:
>
_______________________________________________
python-chinese
Post: send [hidden email]
Subscribe: send subscribe to [hidden email]
Unsubscribe: send unsubscribe to  [hidden email]

_______________________________________________
python-chinese
Post: send [hidden email]
Subscribe: send subscribe to [hidden email]
Unsubscribe: send unsubscribe to  [hidden email]
Detail Info: http://python.cn/mailman/listinfo/python-chinese
Reply | Threaded
Open this post in threaded view
|

Re: 小项目:dell遥控器精灵

flyaflya
In reply to this post by pt42
全部的代码都可以从svn里下载,里面有setup.py。
pyhook可以hook鼠标和键盘。

On 1/17/08, pt42 <[hidden email]> wrote:

> 是用PY2EXE打包成一个文件吗?求setup.py写法
>
> 在 08-1-17,fluke.l<[hidden email]> 写道:
> >
> > 我也有遥控器。晚上回去试试。
> >
> > 更感兴趣的是pyhook模块和你的代码,哈。谢谢提供了这么好的项目。
> >
> >
> > 2008-01-17 ________________________________
> >
> > fluke.l ________________________________
> >
> > 发件人: flyaflya
> > 发送时间: 2008-01-16  23:10:10
> > 收件人: [hidden email]
> > 抄送:
> > 主题: [python-chinese]小项目:dell遥控器精灵
> > 用遥控器控制鼠标,用的是pyhook模块。
> > http://sourceforge.net/projects/dell
> >
> > --
> > http://www.flyaflya.com
> > _______________________________________________
> > python-chinese
> > Post: send [hidden email]
> > Subscribe: send subscribe to
> > [hidden email]
> > Unsubscribe: send unsubscribe to
> > [hidden email]
> > Detail Info:
> > http://python.cn/mailman/listinfo/python-chinese
> >
> _______________________________________________
> python-chinese
> Post: send [hidden email]
> Subscribe: send subscribe to [hidden email]
> Unsubscribe: send unsubscribe to  [hidden email]
> Detail Info: http://python.cn/mailman/listinfo/python-chinese


--
http://www.flyaflya.com
_______________________________________________
python-chinese
Post: send [hidden email]
Subscribe: send subscribe to [hidden email]
Unsubscribe: send unsubscribe to  [hidden email]
Detail Info: http://python.cn/mailman/listinfo/python-chinese
Reply | Threaded
Open this post in threaded view
|

Re: 小项目:dell遥控器精灵

Yongchao Lao
In reply to this post by flyaflya
flyaflya:
你好,想问一下。
 
ALLRMKEYS = ['Volume_Up', 'Volume_Down', 'Volume_Mute', 'Prior', 'Next', 'Left', 'Up', 'Right', 'Down', 'Return', 'Back', 'Lcontrol', 'Lshift', 'B', 'Media_Play_Pause', 'Lcontrol', 'Lshift', 'F', 'Media_Prev_Track', 'Media_Stop', 'Media_Next_Track']
 
其中关于Volume和Media的那几个键,也是键盘的标准按键来的?
 
 
 
2008-01-17

fluke.l

发件人: flyaflya
发送时间: 2008-01-16  23:10:10
收件人: [hidden email]
抄送:
主题: [python-chinese]小项目:dell遥控器精灵
用遥控器控制鼠标,用的是pyhook模块。
http://sourceforge.net/projects/dell

--
http://www.flyaflya.com

_______________________________________________
python-chinese
Post: send [hidden email]
Subscribe: send subscribe to [hidden email]
Unsubscribe: send unsubscribe to  [hidden email]
Detail Info: http://python.cn/mailman/listinfo/python-chinese
Reply | Threaded
Open this post in threaded view
|

Re: 小项目:dell遥控器精灵―――― 是用PY2EXE打包成一个文件

pt42
In reply to this post by faitherQ
console,同时"bundle_files": 1
但使用windows,只能用"bundle_files": 3,否则打包出来的文件不能HOOK键盘

在 08-1-17,faitherq<[hidden email]> 写道:

>
> 是用PY2EXE打包成一个文件
>
> from distutils.core import setup
> import py2exe
> includes = ["encodings", "encodings.*"]
> options = {"py2exe":
>             {   "compressed": 1,
>                 "optimize": 2,
>                 "includes": includes,
>                 "bundle_files": 1  # '注意这里'
>             }
>           }
> setup(
>     console = [{"script": "readkiller.py", "icon_resources": [(1,
> "strtool.ico")] }],  #文件名
>     #console=['hello.py'],
>     version = "0.1.0",
>     options = options,
>     zipfile=None,
>
>
>     )
>
>
> 2008-01-17 ________________________________
>
> faitherq ________________________________
>
> 发件人: pt42
> 发送时间: 2008-01-17  09:50:13
> 收件人: [hidden email]
> 抄送:
> 主题: Re: [python-chinese]小项目:dell遥控器精灵
>
> 是用PY2EXE打包成一个文件吗?求setup.py写法
>
> 在 08-1-17,fluke.l <[hidden email] > 写道:
> >
> > 我也有遥控器。晚上回去试试。
> >
> > 更感兴趣的是pyhook模块和你的代码,哈。谢谢提供了这么好的项目。
> >
> >
> > 2008-01-17 ________________________________
> >
> > fluke.l ________________________________
> >
> > 发件人: flyaflya
> > 发送时间: 2008-01-16  23:10:10
> > 收件人: [hidden email]
> > 抄送:
> > 主题: [python-chinese]小项目:dell遥控器精灵
> > 用遥控器控制鼠标,用的是pyhook模块。
> > http://sourceforge.net/projects/dell
> >
> > --
> > http://www.flyaflya.com
> > _______________________________________________
> > python-chinese
> > Post: send [hidden email]
> > Subscribe: send subscribe to
> > [hidden email]
> > Unsubscribe: send unsubscribe to
> > [hidden email]
> > Detail Info:
> > http://python.cn/mailman/listinfo/python-chinese
> >
> _______________________________________________
> python-chinese
> Post: send [hidden email]
> Subscribe: send subscribe to
> [hidden email]
> Unsubscribe: send unsubscribe to
> [hidden email]
> Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
> _______________________________________________
> python-chinese
> Post: send [hidden email]
> Subscribe: send subscribe to
> [hidden email]
> Unsubscribe: send unsubscribe to
> [hidden email]
> Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
>
_______________________________________________
python-chinese
Post: send [hidden email]
Subscribe: send subscribe to [hidden email]
Unsubscribe: send unsubscribe to  [hidden email]
Detail Info: http://python.cn/mailman/listinfo/python-chinese