Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming

Reply
 
LinkBack Thread Tools
Old 04-05-07   #1 (permalink)
110100001101001111000
 
C-bro's Avatar
 
intel nvidia

Join Date: Jan 2006
Location: Hamilton, ON
Posts: 1,832

Rep: 283 C-bro is a proven memberC-bro is a proven memberC-bro is a proven member
Unique Rep: 215
FAQs Submitted: 6
Folding Team Rank: 237
Hardware Reviews: 9
Trader Rating: 1
Default AutoIt Scripting: Reading text

I'm trying to write a script to read a value on a website and then process/compare that value to others. So far I've been able to copy the value to clipboard, but I don't know how to get that into a variable that my program can use.

Is there a way for AutoIt to read data from the clipboard, or can I paste the value into some other location and have it read from there?

Edit: I found a function called ClipGet(). I'm going to give that a try.

System: RAID0R
CPU
Intel E2180 3.33GHz
Motherboard
Asus P5K-E/WIFI-AP vMod
Memory
2GB Kingmax DDR2-1066
Graphics Card
EVGA 8800GT
Hard Drive
2x250GB WD+500GB 7200.11
Sound Card
SB Audigy 2
Power Supply
Corsair CMPSU-550VX
CPU cooling
Arctic Cooling Freezer 7 Pro
GPU cooling
Zalman VF900-Cu
OS
Windows Vista Business 32-Bit
Monitor
HP F2105 21" & Samsung 712N
C-bro is offline I fold for Overclock.net Overclocked Account C-bro's Gallery   Reply With Quote
Old 04-05-07   #2 (permalink)
Apple Doesn't Love You
 
rabidgnome229's Avatar
 
intel nvidia

Join Date: Feb 2006
Location: Pittsburgh
Posts: 4,975
Blog Entries: 1

Rep: 564 rabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famous
Unique Rep: 338
FAQs Submitted: 6
Trader Rating: 5
Default

Post if that works out for you - that's something I'd like to know how to do
__________________
BIG BROTHER
I put on my robe and wizard hat...

IS WATCHING

System: It goes to eleven
CPU
E6300
Motherboard
DS3
Memory
2GB XMS2 DDR2-800
Graphics Card
EVGA 8600GTS
Hard Drive
1.294 TB
Sound Card
Audigy 2 ZS
Power Supply
Corsair 520HX
Case
Lian-Li v1000B Plus
CPU cooling
TTBT
GPU cooling
Thermalright V2
OS
Arch Linux/XP
Monitor
Samsung 226bw
rabidgnome229 is offline Overclocked Account   Reply With Quote
Old 04-05-07   #3 (permalink)
Security Sleuth
 
kc-tr's Avatar
 
intel nvidia

Join Date: Nov 2006
Location: root@big-brother:/$
Posts: 1,849

Rep: 119 kc-tr is acknowledged by manykc-tr is acknowledged by many
Unique Rep: 96
Hardware Reviews: 1
Trader Rating: 8
Default

Probably the easyest way to do this would be to parse the data over via php script, and input this into a database. CSV or SQL. Once you get the information into the db, then at the end of the parse, write a script that will take the data that is in the database and compare it to another table or your variable that you are trying to use. Though I dont know exactly how everything you have is setup, I would say this is probably going to be your best bet.
__________________
IRC nick - tgalyean / normally found in #fedora-admin

System: █۩█
CPU
E6400 @ 3.4GHz
Motherboard
DFI INFINITY P965-S
Memory
2GB G.Skill HZ
Graphics Card
XFX 7900GS 659MHz/2000MHz
Hard Drive
Raptor 74GB
Sound Card
X-FI
Power Supply
600Watt Modular w/120mm Fan
Case
Cooler Master Centerion
CPU cooling
Stock
GPU cooling
Zalman Fatal1ty FC-ZV9
OS
XP Pro x64
Monitor
Acer AL17
kc-tr is offline kc-tr's Gallery   Reply With Quote
Old 04-12-07   #4 (permalink)
110100001101001111000
 
C-bro's Avatar
 
intel nvidia

Join Date: Jan 2006
Location: Hamilton, ON
Posts: 1,832

Rep: 283 C-bro is a proven memberC-bro is a proven memberC-bro is a proven member
Unique Rep: 215
FAQs Submitted: 6
Folding Team Rank: 237
Hardware Reviews: 9
Trader Rating: 1
Default

Quote:
Originally Posted by rabidgnome229 View Post
Post if that works out for you - that's something I'd like to know how to do
Works just lovely. I used

$var = ClipGet()

It stores as a string and can be cast later as you need it. I also found:

PixelGetColor(x,y)
PixelSearch(left,top,right,bottom,shade,step)

Very useful for screen recognition and grabbing data from a window. It's a very handy little language.

System: RAID0R
CPU
Intel E2180 3.33GHz
Motherboard
Asus P5K-E/WIFI-AP vMod
Memory
2GB Kingmax DDR2-1066
Graphics Card
EVGA 8800GT
Hard Drive
2x250GB WD+500GB 7200.11
Sound Card
SB Audigy 2
Power Supply
Corsair CMPSU-550VX
CPU cooling
Arctic Cooling Freezer 7 Pro
GPU cooling
Zalman VF900-Cu
OS
Windows Vista Business 32-Bit
Monitor
HP F2105 21" & Samsung 712N
C-bro is offline I fold for Overclock.net Overclocked Account C-bro's Gallery   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 10:29 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.24111 seconds with 8 queries