Scrape Text

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with "$Scrape Text is a Windows Function. This command will scrape a specified text in a windows program or text editor. It's use is limited to text editors s...")
 
 
(6 intermediate revisions by one user not shown)
Line 1: Line 1:
 
$Scrape Text is a [[Windows Functions|Windows Function]].
 
$Scrape Text is a [[Windows Functions|Windows Function]].
  
This command will scrape a specified text in a windows program or text editor. It's use is limited to text editors such as note pad.
+
This command will scrape a specified text in a windows program or text editor. Its use is limited to text editors such as note pad.
 +
 
 
The text if found and scraped using the location by parent class, x position and y position on computer.
 
The text if found and scraped using the location by parent class, x position and y position on computer.
The window the specified text is located in must be full screen.
+
 
 +
The window the specified text is located in must be in full screen.
  
  
Line 9: Line 11:
  
 
<pre>
 
<pre>
set(#test, $plugin function("WindowsCommands.dll", "$scrape text", "Untitled - Notepad", "Notepad", 42, 78), "Global")
+
plugin command("WindowsCommands.dll", "set active window", "Untitled - Notepad", "Notepad")
 +
set(#test,$plugin function("WindowsCommands.dll", "$scrape text", "Untitled - Notepad", "Notepad", 45, 72),"Global")
  
 
</pre>
 
</pre>
  
Running the script will scrape the specified text and set it to the variable "test".
 
  
[[File:scrapetext.jpg]]
+
Running the script will scrape the specified text and set it to the variable "test". Notice that a set active window command has been added to bring the notepad program's window into focus. After the window is in focus, the specified item at the specified location is scraped.
 +
 
 +
 
 +
[[File:scrptxt00.png]]

Latest revision as of 18:50, 7 November 2017

$Scrape Text is a Windows Function.

This command will scrape a specified text in a windows program or text editor. Its use is limited to text editors such as note pad.

The text if found and scraped using the location by parent class, x position and y position on computer.

The window the specified text is located in must be in full screen.


[edit] Example

plugin command("WindowsCommands.dll", "set active window", "Untitled - Notepad", "Notepad")
set(#test,$plugin function("WindowsCommands.dll", "$scrape text", "Untitled - Notepad", "Notepad", 45, 72),"Global")


Running the script will scrape the specified text and set it to the variable "test". Notice that a set active window command has been added to bring the notepad program's window into focus. After the window is in focus, the specified item at the specified location is scraped.


Scrptxt00.png

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox