caramen Posted April 12, 2006 Posted April 12, 2006 (edited) Hi this is caramen i am beginner and i dunno how to complete this code ... maybe i dont use good pixel command Ty for help before expandcollapse popup;Fonction order Wactive () ; I whant this function work 1X Check () ; I whant this function work 1X with 5000 ms sleep While (1) Check2 () ; I whant this function work in while with 5000 ms sleep Comparf (); I whant this function compar "Check ()" with "Check2 ()" and stop while and if ; diferent pixel color and send msg box WEnd ;Func start Func Wactive (); I whant this Function active windows and move it to 0.0 WinActivate("*Aplication name*") sleep (500) winmove("*Aplication name*","",0,0) EndFunc Func Check () ;I whant this Function get an origine color to compar with "Check2 ()" $checksum = PixelChecksum(0,0, 50,50) EndFunc Func Check2 ();I whant if this Function check zone of pixel to compar it in next Function $checksum2 = PixelChecksum(0,0, 50,50) EndFunc Func Comparf ();I whant this function compar "Check ()" with "Check2 ()" and stop while and if diferent pixel color then while stop MsgBox(0, "", "Got news message!") I only whant this script detect any message coming and say me if it is with a msg box Ty all Autoiter Edited April 12, 2006 by caramen My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
Uten Posted April 12, 2006 Posted April 12, 2006 Hi, Sorry to tell you this, but you have some reading to do Start with the help file and run the examples, we have all done it, and still do alot. I have fixed your code so it will compile. It wont do what you expect. But it will get you started. If you have not installed the AutoIt Scite version you realy should. It will give you a head start until you have learned a bit more. ;Fonction order Global $gAppName = "Untitled - Notepad";Modify this to your preferences. Global $gChecksum Wactive () ; I whant this function work 1X Check () ; I whant this function work 1X with 5000 ms sleep While (1) Check2 (); I whant this function work in while with 5000 ms sleep Comparf (); I whant this function compar "Check ()" with "Check2 ()" and stop while and if ; diferent pixel color and send msg box WEnd ;Func start Func Wactive (); I whant this Function active windows and move it to 0.0 WinActivate($gAppName) sleep (500) winmove($gAppName,"",0,0) EndFunc Func Check ();I whant this Function get an origine color to compar with "Check2 ()" $gChecksum = PixelChecksum(0,0, 50,50) EndFunc Func Check2 ();I whant if this Function check zone of pixel to compar it in next Function Return PixelChecksum(0,0, 50,50) EndFunc Func Comparf ();I whant this function compar "Check ()" with "Check2 ()" and stop while and if diferent pixel color then while stop if $gChecksum <> Check2() Then MsgBox(0, "", "Got news message!") EndFUnc Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling
caramen Posted April 12, 2006 Author Posted April 12, 2006 oh man ... u give me great help 1000 Thx yes i am realy beginner and i begin to learn and ave already some GREAT code but sometime n some help like tha My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
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