Cheating Network
 
 

Go Back   Cheating Network > General Computing > Programming
Reload this Page Need some nub AHK help =]



Programming

This is a discussion about Need some nub AHK help =] within the Programming section, where you will Anything related to programming or scripting should go here.



Reply
 
LinkBack Thread Tools Display Modes
Old 02-16-2008, 03:03 PM   #1 (permalink)
Senior Member
 
Join Date: Jan 2008
Posts: 1,244
Reputation: 29
casper89 is on a distinguished road
Default Need some nub AHK help =]

I have a couple questions abuot AHK, Hope someone here can help me =P

1: Let's say i wanna make a bot that start at a specific time at a day. Know theres a clock at bottom right corner system tray, Do i have to take screenshot of the time and make it start when it matches? How do i do that? (Doing such action when this picture/icon shows up)

2: How do i make a bot for all different screen res?

3: How do i make a bot that will enter the numbers at a line in a txt file?


Thanks for reading =P
casper89 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-16-2008, 03:15 PM   #2 (permalink)
Senior Member
 
Seatbelt99's Avatar
 
Join Date: Dec 2007
Location: Grand Rapids, MI
Posts: 1,069
Reputation: 68
Seatbelt99 will become famous soon enough
Send a message via AIM to Seatbelt99 Send a message via MSN to Seatbelt99
Default

1: Let's say i wanna make a bot that start at a specific time at a day. Know theres a clock at bottom right corner system tray, Do i have to take screenshot of the time and make it start when it matches? How do i do that? (Doing such action when this picture/icon shows up)
That would work I think, just do a loop for imagesearch? Not sure though. another way would be to have an input box at the start and have it ask for how many minutes until you want it to start, then use that as the variable for a sleep. Other than that I am not 100% sure. I am going to do it for a bot soon I think though so I'll let you know if/when I figure it out.

2: How do i make a bot for all different screen res?
Depends on what the bot is doing. For some I use a GetMousePos to find the x/y pos which would then work regardless of screen res.
3: How do i make a bot that will enter the numbers at a line in a txt file?
I don't understand exactly what you are looking for here. Please elaborate.
__________________
Seatbelt99 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-16-2008, 03:21 PM   #3 (permalink)
Senior Member
 
Join Date: Jan 2008
Posts: 1,244
Reputation: 29
casper89 is on a distinguished road
Default

I'm nub so... um how do a imagesearch =[?

And um third one i mean i want the bot to do multiple accounts
Saving the acc id and pw in a .txt file,
How do i make the bot read it?
casper89 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-16-2008, 03:31 PM   #4 (permalink)
Senior Member
 
kad77's Avatar
 
Join Date: Dec 2007
Location: Earth
Posts: 286
Reputation: 0
kad77 is an unknown quantity at this point
Default

I was thinking the same thing for the time I want to create a script that would automatically shut my computer down like at 11:30pm
kad77 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-16-2008, 03:33 PM   #5 (permalink)
Senior Member
 
Join Date: Jan 2008
Posts: 1,244
Reputation: 29
casper89 is on a distinguished road
Default

Um you can do that with "Run" in start menu lol...
casper89 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-16-2008, 03:39 PM   #6 (permalink)
Senior Member
 
Seatbelt99's Avatar
 
Join Date: Dec 2007
Location: Grand Rapids, MI
Posts: 1,069
Reputation: 68
Seatbelt99 will become famous soon enough
Send a message via AIM to Seatbelt99 Send a message via MSN to Seatbelt99
Default

for imagesearch just look it up in the AHK help file. It explains it way better than I could. If you still can't get it then post your code here and I'll take a look.

For the reading ID/PW...
FileReadLine, Variable, Document.txt, 1

This will store the entire first line of that txt file on that variable.
Do the same only ,2 at the end for the 2nd line (which i assume would be password). make sure to change the variable for the 2nd one.

Does this answer your questions?
__________________
Seatbelt99 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-16-2008, 03:47 PM   #7 (permalink)
Senior Member
 
kad77's Avatar
 
Join Date: Dec 2007
Location: Earth
Posts: 286
Reputation: 0
kad77 is an unknown quantity at this point
Default

yea but I need to know how to do it at a certain time.
kad77 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-16-2008, 04:03 PM   #8 (permalink)
Senior Member
 
Join Date: Jan 2008
Posts: 1,244
Reputation: 29
casper89 is on a distinguished road
Default

Quote:
Originally Posted by Seatbelt99 View Post
for imagesearch just look it up in the AHK help file. It explains it way better than I could. If you still can't get it then post your code here and I'll take a look.

For the reading ID/PW...
FileReadLine, Variable, Document.txt, 1

This will store the entire first line of that txt file on that variable.
Do the same only ,2 at the end for the 2nd line (which i assume would be password). make sure to change the variable for the 2nd one.

Does this answer your questions?
Yes thanks =]
casper89 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
ahk, nub


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Powered by vBulletin
Copyright © 2000-2008 Jelsoft Enterprises Limited.
Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.