bennyvo 0 Posted February 28, 2005 hi, i'm new to this but i have play around with visual basiic before. anyone have some begiiner axample on: .if statement .case statement .loop /while .mouse positions .color detection .multiple key press etc.. any short script that work for beginner. I need the above to write something like this: ============================================== If position A is Black Then write Color Black Else do nothing And If position B is color Green then write Color Green Else do nothing. end if end if ============================================== thanks if anyone can help on the script or a link to the example above. Share this post Link to post Share on other sites
Alterego 0 Posted February 28, 2005 There's lots of examples in the docs... This dynamic web page is powered by AutoIt 3. Share this post Link to post Share on other sites
sarkar112 0 Posted February 28, 2005 There's lots of examples in the docs...<{POST_SNAPBACK}>He said he needs an "example", so someone has to make a script...I think. Share this post Link to post Share on other sites
keilamym 1 Posted February 28, 2005 $workstation = InputBox ( "Client Assistant", "Please type in the WORKSTATION name.","") $patchname = InputBox ( "Client Assistant", "Please type in the MICROSOFT PATCH #.","") $qfile = FileOpen("\\" & $workstation & "\c$\winnt\" & "Q" & $patchname & ".log", 0) ;Check if file opened for reading OK If $qfile = -1 Then MsgBox(4096,"Patch Log Status", "Q" & $patchname & ".log was not found.") EndIf this asked for two variables, queries the workstation name for a specific file, if it finds it, it i will open the file, if it doens't it prompts to tell you. i would highly suggest looking at the help file.. Share this post Link to post Share on other sites
zcoacoaz 0 Posted March 1, 2005 $PS = PixelSearch ( 0, 0, @DesktopWidth, @DesktopHeight, 0x000000 ) If Not @error Then MsgBox ( 0, "Found a black pixel", "Found a black pixel at " & $PS[0] & " x " & $PS[1] ) $PS = PixelSearch ( 0, 0, @DesktopWidth, @DesktopHeight, 0x00ff00 ) If Not @error Then MsgBox ( 0, "Found a green pixel", "Found a green pixel at " & $PS[0] & " x " & $PS[1] ) EndIf EndIf that will search the whole screen for a black pixel, if it finds one it shows a message box then checks for a green one, if it finds that it shows a message box [font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font] Share this post Link to post Share on other sites
bennyvo 0 Posted March 1, 2005 solution founded.. thanks all Share this post Link to post Share on other sites