Vicks Posted May 10, 2006 Share Posted May 10, 2006 Hi, my brothers computer broked , now I have to share mine, so is there away to make a script that tells every window hes been in, and it safes the info to a txt or ini file in the c drive? I could make this but not sure how to get the info of the windows hes been in and then safe it [s]Autoit[/s] Link to comment Share on other sites More sharing options...
Don N Posted May 10, 2006 Share Posted May 10, 2006 Look at WindowGetTitle() WindowGetText() IniWrite(), IniRead() in the helpfile, also search the forums, everything you need to do this is in helpfile adn on the forum, you jsut need to comine it all together. The fucntions I listed should get you started at least. _____________________________________________________"some people live for the rules, I live for exceptions"Wallpaper Changer - Easily Change Your Windows Wallpaper Link to comment Share on other sites More sharing options...
Vicks Posted May 10, 2006 Author Share Posted May 10, 2006 (edited) Look at WindowGetTitle() WindowGetText() IniWrite(), IniRead() in the helpfile, also search the forums, everything you need to do this is in helpfile adn on the forum, you jsut need to comine it all together. The fucntions I listed should get you started at least. WindowGetTitle() won't work I have to set the window name, I want it to find a name and safe it, so say if he went to google, it will write a ini or text file with a line like this *google* pretty simple but I do not think WindowGetTitle() will work, I have to set the title but I want it to automacticly search the titles he goes onto so something like this i was thinking if window then _logfile; name of window endif sleep() wend maybe like that Edited May 10, 2006 by Vicks [s]Autoit[/s] Link to comment Share on other sites More sharing options...
seandisanti Posted May 10, 2006 Share Posted May 10, 2006 (edited) WindowGetTitle() won't work I have to set the window name, I want it to find a name and safe it, so say if he went to google, it will write a ini or text file with a line like this *google* pretty simple but I do not think WindowGetTitle() will work, I have to set the title but I want it to automacticly search the titles he goes onto so something like this i was thinking if window then _logfile; name of window endif sleep() wend maybe like thatyou could do something like this, and i'm only listing code, because it looks like you're trying, kind of... #include<file.au3> Opt("WinTitleMatchMode",4) $lasttitle = WinGetTitle("active") _FileWriteLog("c:\WinTitleLog",$lasttitle) While 1 $title = WinGetTitle("active") If $title <> $lasttitle Then _FileWriteLog("c:\WinTitleLog",$title) $lasttitle = $title EndIf Sleep(100) WEnd ***edit*** forgot to include file.au3 Edited May 10, 2006 by cameronsdad Link to comment Share on other sites More sharing options...
Vicks Posted May 10, 2006 Author Share Posted May 10, 2006 no i wasn't trying just a example [s]Autoit[/s] Link to comment Share on other sites More sharing options...
AutoItKing Posted May 10, 2006 Share Posted May 10, 2006 (edited) Here: Dim $file="win.ini",$delay=3000,$list2 While 1 $list=WinList() $i=$list[0] While 1 $list2=$list2 & "|" & $list[i] $i=$i-1 Wend IniWrite($file,"windows" & $list[1],"list",$list2) Sleep($delay) Wend Edited May 10, 2006 by AutoItKing http://www.autoitking.co.nr Site is DOWN | My deviantART | No Topic Topic - Don't do it!-------------------- UDF's/Scripts:AutoIt: [BenEditor 3.6] [_ShutDown()]PHP: [CommentScript]Web Based AutoIt: [MemStats] [HTML to AU3] [User LogIn and SignUp script] Link to comment Share on other sites More sharing options...
seandisanti Posted May 10, 2006 Share Posted May 10, 2006 no i wasn't trying just a example um... dude. i gave you the code.... Link to comment Share on other sites More sharing options...
Vicks Posted May 10, 2006 Author Share Posted May 10, 2006 thnaks to all of you [s]Autoit[/s] Link to comment Share on other sites More sharing options...
bucky002 Posted May 11, 2006 Share Posted May 11, 2006 no i wasn't trying just a example Why would I want to write you a code if you're not willing to give any effort? Link to comment Share on other sites More sharing options...
Vicks Posted May 11, 2006 Author Share Posted May 11, 2006 Why would I want to write you a code if you're not willing to give any effort? I searched the help file to read widows names and gave up after about 20 min's, I did do a bit effort looking but not making the code, and found nothing about reading windows names mawaissharif 1 [s]Autoit[/s] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted May 11, 2006 Moderators Share Posted May 11, 2006 I searched the help file to read widows names and gave up after about 20 min's, I did do a bit effort looking but not making the code, and found nothing about reading windows namesSo you went through all the "Win" (you know for Windows) functions, and you say you couldn't find "nothing" on getting window names? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Vicks Posted May 11, 2006 Author Share Posted May 11, 2006 So you went through all the "Win" (you know for Windows) functions, and you say you couldn't find "nothing" on getting window names? well i did but wasn't sure about coding it [s]Autoit[/s] Link to comment Share on other sites More sharing options...
Neoborn Posted June 2, 2006 Share Posted June 2, 2006 So you went through all the "Win" (you know for Windows) functions, and you say you couldn't find "nothing" on getting window names? Smoke you noob it's " you say you couldn't find ANYTHING " sheesh do I have to correct everyones engrish here or wut! ~Projects~1. iPod Ejector 1.0 - Tool Used To Eject iPod in Windows - Uses DevEject.exe :P2. SmartFTP Close Popup Tool - Closes reminders from freeware SmartFTP.~Helpful Links For New Users~1. LXP's Learning AutoIT PDF Guide - <<< Go here for a PDF Guide on learning AutoIT from the ground up!<<<2. AutoIt 1-2-3 <<<Want to learn more about AutoIT quickly? Go Here<<<3. How To Install The Beta And Production Versions Of AutoIT / SciteAutoIT Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted June 2, 2006 Moderators Share Posted June 2, 2006 (edited) Smoke you noob it's " you say you couldn't find ANYTHING " sheesh do I have to correct everyones engrish here or wut! Look at the quote marks, and look at their statement. Had it not been in quotes I would have found humor in your post. Edit:BTW, you forgot a couple commas in yours . Edited June 2, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Neoborn Posted June 3, 2006 Share Posted June 3, 2006 <3 ~Projects~1. iPod Ejector 1.0 - Tool Used To Eject iPod in Windows - Uses DevEject.exe :P2. SmartFTP Close Popup Tool - Closes reminders from freeware SmartFTP.~Helpful Links For New Users~1. LXP's Learning AutoIT PDF Guide - <<< Go here for a PDF Guide on learning AutoIT from the ground up!<<<2. AutoIt 1-2-3 <<<Want to learn more about AutoIT quickly? Go Here<<<3. How To Install The Beta And Production Versions Of AutoIT / SciteAutoIT Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now