Taking a screen shot of a window using Delphi code is rather easy. A screen shot (screen capture) is a copy of the screen's contents that can be saved as a graphics file or displayed in a graphics "aware" control, for example TImage. In most cas…
using System; using System.Runtime.InteropServices; using System.Drawing; using System.Drawing.Imaging; namespace ScreenShotDemo { /// <summary> /// Provides functions to capture the entire screen, or a particular window, and save it to a file. ///…
     今天遇到一个很隐蔽的 Delphi 问题,不知做了什么,有一个功能总是不能使用,后来跟踪以下发现是因为 Screen.DataModuleCount 总是返回 0,而程序中一个函数正好要用到它.找来找去都没找到解决办法: 用来好多方法均没遇到这种情况,于是后面就使用了最土的土照,一个个单元排除法,最后在其中一个单元惹得祸,只要不加入这个单元到工程就OK,这下 Screen.DataModuleCount 也正常了.     可是这个单元有什么魔法会导致这个问题呢,最后通过排查法找到,是…
1. 打开“运行”,输入“regedit” 并回车. 2. 找到以下注册表路径,将Attributes的值改为 2: (原为1 HKEY_LOCAL_MACHINE \SYSTEM \CurrentControlSet \Control \Power \PowerSettings \7516b95f-f776-4464-8c53-06167f40cc99 \8EC4B3A5-6868-48c2-BE75-4F3044BE88A7 3. 依次打开控制面板 – 电源选项 – 更改计划设置 – 更改高…
Function Take-ScreenShot { <# .SYNOPSIS Used to take a screenshot of the desktop or the active window. .DESCRIPTION Used to take a screenshot of the desktop or the active window and save to an image file if needed. .PARAMETER screen Screenshot of the…
Function Take-ScreenShot { <# .SYNOPSIS Used to take a screenshot of the desktop or the active window. .DESCRIPTION Used to take a screenshot of the desktop or the active window and save to an image file if needed. .PARAMETER screen Screenshot of the…
I have already posted in my previous post Running Reports Using Run_Product to run reports in Oracle Forms 6i and in this post I am using the same procedure to run report but I am providing a demo form also.   Below is the screen shot of this form an…
Created an Oracle Form to handle specific events / triggers like When-New-Form-Instance, Pre-Insert, Post-Insert, Pre-Update, Post-Update, Post-Query and Post-Forms-Commit. I am doing the following simple tasks on these events to give you an example:…
全局变量声明的两种方式:1,window.变量名=值;2,var 变量名=值; 全局函数声明的两种方式:1,window.函数名=function(){}2,function 函数名=function(){} BOM是Browser Object Model的缩写,是浏览器对象模型核心是window对象,所有的全局变量和全局函数都被归在了window上 使用超时调用执行间歇调用的操作. A: window是浏览器的一个实例 1,即是JS访问浏览器的一个接口. 2,又是ECMAScript的全局对…
window.screen.availWidth 返回当前屏幕宽度(空白空间) ------当手机有输入法的时候,要注意................window.screen.availHeight 返回当前屏幕高度(空白空间) window.screen.width 返回当前屏幕宽度(分辨率值) window.screen.height 返回当前屏幕高度(分辨率值) window.document.body.offsetHeight; 返回当前网页高度 window.document.bo…