How to read text from xps document using C#.
The purpose of this article is a personal note from the author. When the project is lost or forgotten so it is easier to find on this page. For over 2 years ago I use this code and really helped me.
I'm sorry, My English is not very good and and a little difficult to make the article.
The first step please add some this references of dot net class library :
1. PresentationCore.
2. PresentationFramework.
3. ReachFramework
4. System
5. System.Core.
6. System.Data
7. System.Data.DataSetExtensions
8....
Posted by Catur Nugroho | File under : Autoit Demo

Simple PDF Automation Using Autoit in C#
The topic for this article is how read the text of a PDF document, export into txt file, and return the results as text or string.
This is code for adobe reader X Version 10.1.3, so if the next time you get some code that doesn't run as well might be due to different versions.
This article will explain clearly how we can make simple PDF Automation. If you can't understanding the code, I have set up...
Posted by Catur Nugroho | File under : Autoit Demo

Simple Notepad Automation Using Autoit C#
This is a simple example of how to work with Notepad for sending text, copy / paste, and save it as a file. I will try to explain as details so that you can easily understand.
You can adding this code into your project. This is additional function that I have made, you can copy and paste.
private void Type(string strKeys, int nMode, string strControl, bool blnSleepKeys, int nSleep, string strWindow) ...
Posted by Catur Nugroho | File under : Autoit

Autoit Win Active Using C#
Checks to see if a specified window exists and is currently active.
WinActive ( "title" [, "text"] )
Parameters
title
The title of the window to check. See Title special definition.
text
[optional] The text of the window to check.
Return Value
Success:
Returns the handle to the window if it is active.
Failure:
Returns 0 otherwise.
Remarks
None.
Source : Autoit Help Document
Autoit Win Active In...
Posted by Catur Nugroho | File under : Autoit

Autoit Win Wait Active Using C#
Pauses execution of the script until the requested window is active.
WinWaitActive ( "title" [, "text" [, timeout]] )
Parameters
title
The title of the window to check. See Title special definition.
text
[optional] The text of the window to check.
timeout
[optional] Timeout in seconds
Return Value
Success:
Returns handle to the requested window.
Failure:
Returns 0 if timeout occurred.
Remarks
None.
Source...
Posted by Catur Nugroho | File under : Autoit

Autoit Win Wait Using C#
WinWait
Pauses execution of the script until the requested window exists.
WinWait ( "title" [, "text" [, timeout]] )
Parameters
title
The title of the window to check. See Title special definition.
text
[optional] The text of the window to check.
timeout
[optional] Timeout in seconds
Return Value
Success:
Returns handle to the requested window.
Failure:
Returns 0 if timeout occurred.
Remarks
None.
Source...
Posted by Catur Nugroho | File under : Autoit
Autoit Control List View Using C#
Sends a command to a TreeView32 control.
ControlTreeView ( "title", "text", controlID, "command" [,
option1 [, option2]] )
Parameters
title
The title of the window to access.
text
The text of the window to access.
controlID
The control to interact with. See Controls.
command
The command to send to the control (see below).
option1
[optional] Additional parameter required by some commands.
option2
[optional] Additional parameter required by some
commands.
Return Value
Depends on command as table...
Posted by Catur Nugroho | File under : Autoit

Autoit Control Show Using C#
Shows a control that was hidden.
ControlShow ( "title", "text", controlID )
Parameters
title
The title of the window to access.
text
The text of the window to access.
controlID
The control to interact with. See Controls.
Return Value
Success:
Returns 1.
Failure:
Returns 0 if window/control is not found.
Remarks
None.
Source : Autoit Help Document
Source Code Autoit Control Show In C#
Parameters...
Posted by Catur Nugroho | File under : Autoit

Autoit Control Set Text Using C#
Sets text of a control.
ControlSetText ( "title", "text", controlID, "new text" [,
flag] )
Parameters
title
The title of the window to access.
text
The text of the window to access.
controlID
The control to interact with. See Controls.
new text
The new text to be set into the control.
flag
[optional] when different from 0 (default) will force the target
window to be redrawn.
Return Value
Success:
Returns...
Posted by Catur Nugroho | File under : Autoit

Autoit Control Move Using C#
Moves a control within a window.
ControlMove ( "title", "text", controlID, x, y [, width [,
height]] )
Parameters
title
The title of the window to move.
text
The text of the window to move.
controlID
The control to interact with. See Controls.
x
X coordinate to move to relative to the window client area.
y
Y coordinate to move to relative to the window client area.
width
[optional] New width of the window.
height
[optional]...
Posted by Catur Nugroho | File under : Autoit
Autoit Control Get List View Using C#
Sends a command to a ListView32 control.
ControlListView ( "title", "text", controlID, "command" [,
option1 [, option2]] )
Parameters
title
The title of the window to access.
text
The text of the window to access.
controlID
The control to interact with. See Controls.
command
The command to send to the control (see below).
option1
[optional] Additional parameter required by some commands.
option2
[optional] Additional parameter required by some
commands.
Return Value
Depends on command as table...
Posted by Catur Nugroho | File under : Autoit

Autoit Control Hide Using C#
Hides a control.
ControlHide ( "title", "text", controlID )
Parameters
title
The title of the window to access.
text
The text of the window to access.
controlID
The control to interact with. See Controls.
Return Value
Success:
Returns 1.
Failure:
Returns 0 if window/control is not found.
Remarks
None.
Source : Autoit Help Document
Source Code Autoit Control Hide In C#
Parameters Required...
Posted by Catur Nugroho | File under : Autoit
Autoit Control Get Text Using C#
Retrieves text from a control.
ControlGetText ( "title", "text", controlID )
Parameters
title
The title of the window to access.
text
The text of the window to access.
controlID
The control to interact with. See Controls.
Return Value
Success:
Returns text from a control.
Failure:
Sets @error to 1 and returns a blank string of "".
Remarks
None.
Source : Autoit Help Document
Source Code Autoit Control...
Posted by Catur Nugroho | File under : Autoit
Autoit Control Get Pos (x) (y) Using C#
Retrieves the position and size of a control relative to its
window.
ControlGetPos ( "title", "text", controlID )
Parameters
title
The title of the window to access.
text
The text of the window to access.
controlID
The control to interact with. See Controls.
Return Value
Success:
Returns an array containing the size and the control's position
relative to its client window:
$array[0] = X position
$array[1]...
Posted by Catur Nugroho | File under : Autoit
Autoit Control Get Post Height / Width Using C#
Retrieves the position and size of a control relative to its
window.
ControlGetPos ( "title", "text", controlID )
Parameters
title
The title of the window to access.
text
The text of the window to access.
controlID
The control to interact with. See Controls.
Return Value
Success:
Returns an array containing the size and the control's position
relative to its client window:
$array[0]...
Posted by Catur Nugroho | File under : Autoit

Autoit Control Get Handle Using C#
Retrieves the internal handle of a control.
ControlGetHandle ( "title", "text", controlID )
Parameters
title
The title of the window to access.
text
The text of the window to access.
controlID
The control to interact with. See Controls.
Return Value
Success:
Returns the handle (HWND) value.
Failure:
Returns "" (blank string) and sets @error to 1 if no window matches the
criteria.
Remarks
This function...
Posted by Catur Nugroho | File under : Autoit

Autoit Control Focus Using C#
Sets input focus to a given control on a window.
ControlFocus ( "title", "text", controlID )
Parameters
title
The title of the window to access.
text
The text of the window to access.
controlID
The control to interact with. See Controls.
Return Value
Success:
Returns 1.
Failure:
Returns 0.
Remarks
None.
Source : Autoit Help Document
Source Code Autoit Control Enable / Disable in C#
Parameters...
Posted by Catur Nugroho | File under : Autoit
Autoit Control Enable / Disable Using C#
Disables or "grays-out" a control.
ControlDisable ( "title", "text", controlID )
Parameters
title
The title of the window to access.
text
The text of the window to access.
controlID
The control to interact with. See Controls.
Return Value
Success:
Returns 1.
Failure:
Returns 0.
Remarks
None.
Source : Autoit Help Document
Source Code Autoit Control Enable / Disable in C#
Parameters Required...
Subscribe to:
Posts (Atom)