525697833
525697833
关注数: 2
粉丝数: 8
发帖数: 191
关注贴吧数: 28
大神求助啊!安装ubuntu15的时候出现如图情况,无法挂载 分区在第四个,easyBCD引导,咋回事呀?!已疯~~~~~~~~~
我来帮你,设计制作看我的~~
制作画册展板宣传海报,有我在帮你搞定~~~
刚来,有东西要做的找我~~~
这怎么回事啊?求大神指教 时间轴被拖得好奇怪!滚动鼠标中键的时候搞得
在C#界面中能否置入网页? 实现网页特效在程序中的效果?
求教,这是嘛意思啊??? 在帧标签里两条双斜线的作用是什么???
c#按钮鼠标悬停显示图片介绍 c#按钮鼠标悬停显示图片介绍,tooltip可以悬浮文字说明,怎样才能显示图片???
winio.dll调用在Delphi转换C#,setportval是怎样控制发声 按下某个按键的时候,发出声音,当松掉按键的时候声音立刻停止 unit U_WinIO; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) procedure FormCreate(Sender: TObject); procedure FormDestroy(Sender: TObject); procedure FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); procedure FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState); private { Private declarations } bWinIOInitialized: Boolean; public { Public declarations } end; var Form1: TForm1; implementation {$R *.dfm} function InitializeWinIo(): BOOL; stdcall; external 'WinIO.dll '; procedure ShutdownWinIo(); stdcall; external 'WinIO.dll '; function GetPortVal(wPortAddr: WORD; var pdwPortVal: DWORD; bSize: BYTE): BOOL; stdcall; external 'WinIO.dll '; function SetPortVal(wPortAddr: WORD; dwPortVal: DWORD; bSize: BYTE): BOOL; stdcall; external 'WinIO.dll '; procedure TForm1.FormCreate(Sender: TObject); begin bWinIOInitialized := InitializeWinIO(); KeyPreview := True; end; procedure TForm1.FormDestroy(Sender: TObject); begin ShutDownWinIO; end; procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); var dwValue : DWORD; begin If bWinIOInitialized then begin GetPortVal($61, dwValue, 1); dwValue := dwValue or $03; SetPortVal($61, dwValue, 1); end; end; procedure TForm1.FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState); var dwValue : DWORD; begin If bWinIOInitialized then begin GetPortVal($61, dwValue, 1); dwValue := dwValue and $FC; SetPortVal($61, dwValue, 1); end; end; end. 程序修改一下, 增加上设置发音频率的代码: procedure TForm1.FormCreate(Sender: TObject); const BeepFreq = 1000; //发音频率1000Hz var wFreq : WORD; begin bWinIOInitialized := InitializeWinIO(); KeyPreview := True; //设置发音频率 If bWinIOInitialized then begin wFreq := 1193100 div BeepFreq; SetPortVal($43, $B6, 1); SetPortVal($42, wFreq mod 256, 1); SetPortVal($42, wFreq div 256, 1); end; end; 程序运行后, 在程序窗体Form1获得焦点时, 按下任意键即可发出指定频率的声音, 释放按键声音即刻停止。
实现线程阻塞或者终止console.beep线程...臣妾做不到啊~~~ 如标题,实现一个按钮当按下的时候调用beep持续发出一定频率的声音,当松开鼠标的时候,beep声音立即停止,通过mousedown和up实现只能调用这一鼠标动作,主线程和beep线程做不到同步并行处理,求助大神代码提示
小白问题,大神谈笑间挥手灭掉! 文本框中的空格显示不出来,变成一个个的方框了,搞不懂怎么设置了
如何在flash CS6中设置文本框不显示全部文字,想在旁边加上滚动条
关于beep的求救贴!!! 使用window.beep控制发声的时候,程序只能单线程运行,其他的操作都无法进行,只有等beep的所有音节完结后,才能进行其他的按键或者输入操作,求帮助。怎样才能window.beep时候还能进行其他操纵~~~~~~~~~~~~~~~~~~~~~
求助啊,这段代码什么意思啊??? numOfImage = 5; current = 1; gap = 3000; link = new Array(); link[1] = "#"; link[2] = "#"; link[3] = "#"; link[4] = "#"; link[5] = "#"; frame = new Array(); frame[1] = "_self"; frame[2] = "_self"; frame[3] = "_self"; frame[4] = "_self"; frame[5] = "_self"; speed = 10; temp = 240; for (i=1; i<=numOfImage; i++) { image[i]._x = temp/2+(i-1)*temp; this[i].mainText.gotoAndStop(i); this[i].onRollOver = function() { this._parent[current].prevFrame(); current = this._name; this.nextFrame(); clearInterval(interval); }; this[i].onRollOut = this[i].onDragOut=function () { interval = setInterval(this._parent, "fun1", gap); }; this[i].onRelease = function() { getURL(link[this._name], frame[this._name]); }; image[i].onRollOver = function() { clearInterval(interval); }; image[i].onRollOut = image[i].onDragOut=function () { interval = setInterval(this._parent._parent, "fun1", gap); }; image[i].onRelease = function() { getURL(link[this._name], frame[this._name]); }; } interval = setInterval(this, "fun1", gap); this[current].nextFrame(); function fun1(that) { this[current].prevFrame(); if (current == numOfImage) { current = 1; } else { current++; } this[current].nextFrame(); } image.onEnterFrame = function() { this._x += (-(current-1)*temp-this._x)/speed; };
1
下一页