Orcc
Active Members-
Posts
29 -
Joined
-
Last visited
About Orcc
- Birthday 04/07/1983
Profile Information
-
Location
Seatown
Orcc's Achievements
Seeker (1/7)
0
Reputation
-
It's still not showing errors but its not doing anything. Global $Paused HotKeySet("{End}", "ExitProg") ;;To exit the progam HotKeySet("{Home}", "StartProg") ;;To start the program HotKeySet("{Insert}", "TogglePause") ;; Key to pause and unpause Dim $hNotepad = WinGetHandle('[CLASS:Notepad]') While 1 Sleep(100) ;;;Waits for function call Wend Func StartProg() ControlSend("$hNotepad","","", "13413") <--13413 is being send to notepad? is this correct? keys 13413 EndFunc $Paused = False Func TogglePause() $Paused = Not $Paused while $paused sleep(100) wend EndFunc Func ExitProg() Exit 0 ;;;Exits the program EndFunc
-
So I have Try a new code there was no error's But there was no progress? The new code I tried is listed below. Why doesn't it send? I have note pad open and blank. Global $Paused HotKeySet("{End}", "ExitProg") ;;To exit the progam HotKeySet("{Home}", "StartProg") ;;To start the program HotKeySet("{Insert}", "TogglePause") ;; Key to pause and unpause While 1 Sleep(100) ;;;Waits for function call Wend Dim $hNotepad = WinGetHandle('[CLASS:Notepad]') Func StartProg() ControlSend("$hNotepad","","", "13413") EndFunc $Paused = False Func TogglePause() $Paused = Not $Paused while $paused sleep(100) wend EndFunc Func ExitProg() Exit 0 ;;;Exits the program EndFunc
-
OK so I implement pause into the script, because when I want to let it rest while I do something else while it's paused. The reason I have it in there it's because when I try to run other things, like internet explorer it mess's with internet. So I pause it. But if I can figure out how to send to Notepad then I won't have to have the need for a pause, For it will go directly to that program. Also for every command I send to notepad. I will have to type control send( " " " " "E") like that? I don't understand what the $ mark does in the script? Can you explain? why is there also a h before the notepad and a B before pause? ControlSend($hNotepad, "", "", "{F1}") ControlSend($hNotepad, "", "[CLASS:Edit]", "Can you explain the single 'e' here") $bPaused = Not $bPaused
-
Hello i have this code where I need it to be Sent ONLY to this window. the code below. Please Fill in where it's wrong and edit for me thanks. ControlSend ( "Notepad", "",) Global $Paused HotKeySet("{End}", "ExitProg") ;;To exit the progam HotKeySet("{Home}", "StartProg") ;;To start the program HotKeySet("{Insert}", "TogglePause") ;; Key to pause and unpause While 1 Sleep(100) ;;;Waits for function call Wend Func StartProg() MouseClick("left", 0, 500, 0) send("{F1}") send("{e}") EndIf EndFunc $Paused = False Func TogglePause() $Paused = Not $Paused while $paused sleep(100) wend EndFunc Func ExitProg() Exit 0 ;;;Exits the program EndFunc
-
Help with Script need get colro and mouse to move
Orcc replied to Orcc's topic in AutoIt General Help and Support
The loop process is correct hot key While funcend exit I have those in my script. So the "|" Key will simplify the code so i don't have to type out $coord=0xofofof Over and over. Gotcha. Thanks all the help has been .. well Helpful. Thanks all. -
Help with Script need get colro and mouse to move
Orcc replied to Orcc's topic in AutoIt General Help and Support
I don't get this? so the loop is wrong? I need the script to run over and over. so it wont exit until. I give the command. So with autoit dim colors what does that do? -
Help with Script need get colro and mouse to move
Orcc replied to Orcc's topic in AutoIt General Help and Support
This program is to get a color off a character then I want it to perform a action on that character. So the charater has 20 colors black blue light blue red etc. But i want to be able to get that character info and perform a action on that character. -
Help with Script need get colro and mouse to move
Orcc replied to Orcc's topic in AutoIt General Help and Support
Thanks for clearing that up about the pause issue. Still wondering about the color pixel issue. Should i set a thousand colors to search for or is there and array "range" of Pre-set colors I can set the program to find? -
Help with Script need get colro and mouse to move
Orcc replied to Orcc's topic in AutoIt General Help and Support
So making sleep timer to (100) would make it infinite not 100 milliseconds? Well I am going to test it. Thank you. -
Help with Script need get colro and mouse to move
Orcc replied to Orcc's topic in AutoIt General Help and Support
Yeah I wondering how to set the sleep, to infinite till I unpause. So I set it to 1000000. still looking that info up. Quote Authenticity "You can make array of colors and pass each in a loop to the PixelSearch() function" Can you show me where to look, on how to loop it. The array of colors doe's it range from" A to Z" or it's pre-set like 0x1ag6agd oxa4dfad ox156446 preset it that way? let me put a sample of what your saying? See if it's correct? Global $Paused HotKeySet("{End}", "ExitProg") ;;To exit the progam HotKeySet("{Home}", "StartProg") ;;To start the program HotKeySet("{Insert}", "TogglePause") ;; Key to pause and unpause While 1 Sleep(100) ;;;Waits for function call Wend Func StartProg() $coord = PixelSearch( 0, 0, 1024, 768, 0x0cafd0 ) $coord = PixelSearch( 0, 0, 1024, 768, 0x0c0d0d ) $coord = PixelSearch( 0, 0, 1024, 768, 0x0fofof ) $coord = PixelSearch( 0, 0, 1024, 768, 0xagager) $coord = PixelSearch( 0, 0, 1024, 768, 0x0fykfsr ) <---Like that? $coord = PixelSearch( 0, 0, 1024, 768, 0x0agrah ) $coord = PixelSearch( 0, 0, 1024, 768, 0x0c0d0d ) $coord = PixelSearch( 0, 0, 1024, 768, 0x0cagah ) $coord = PixelSearch( 0, 0, 1024, 768, 0x0clolia ) If Not @error Then MouseClick("Left",$coord[0],$coord[1]) send("{F1}") send("{e}") EndIf EndFunc Func TogglePause() $Paused = NOT $Paused While $Paused sleep(1000000) WEnd EndFunc Func ExitProg() Exit 0 ;;;Exits the program EndFunc -
Help with Script need get colro and mouse to move
Orcc replied to Orcc's topic in AutoIt General Help and Support
So i redid the code and it wasn't that much different tell me if it's wrong still. now for what i intend for it to perform. Also is there a way to put the program to find more then one color? of so is it just putting more pixel search in? BTW, Thank's for the fast reply's. Global $Paused HotKeySet("{End}", "ExitProg") ;;To exit the progam HotKeySet("{Home}", "StartProg") ;;To start the program HotKeySet("{Insert}", "TogglePause") ;; Key to pause and unpause While 1 Sleep(100) ;;;Waits for function call Wend Func StartProg() $coord = PixelSearch( 0, 0, 1024, 768, 0x0c0d0d ) If Not @error Then MouseClick("Left",$coord[0],$coord[1]) send("{F1}") send("{e}") EndIf EndFunc Func TogglePause() $Paused = NOT $Paused While $Paused sleep(1000000) WEnd EndFunc Func ExitProg() Exit 0 ;;;Exits the program EndFunc -
Help with Script need get colro and mouse to move
Orcc replied to Orcc's topic in AutoIt General Help and Support
I was under the impression it would move the mouse to find that color? If that is false, can you steer me to the right path? where should i go to read up on it? Knowledge is life. -
I'm kinda new to auto it but, it seems this is something I am willing to learn I wrote a simple script to do the following things move the mouse to a certain color, then left click, send key f1. Then send key E. But I been testing it over and over and modifying it but it doesn't seem to work Can someone hep review it and tell me what I'm doing wrong? Below is the script. Also how do I set pause to be infinite? Global $Paused HotKeySet("{End}", "ExitProg") ;;To exit the progam HotKeySet("{Home}", "StartProg") ;;To start the program HotKeySet("{Insert}", "TogglePause") ;; Key to pause and unpause While 1 Sleep(100) ;;;Waits for function call Wend Func StartProg() $coord = PixelSearch( 0, 0, 1024, 768, 0x0c0d0d ) If Not @error Then MouseClick ( "Left") send("{F1}") send("{e}") EndIf EndFunc Func TogglePause() $Paused = NOT $Paused While $Paused sleep(1000000) WEnd EndFunc Func ExitProg() Exit 0 ;;;Exits the program EndFunc
-
How to set autoit for 1 application?
Orcc replied to Orcc's topic in AutoIt General Help and Support
How do I find the game title. Ty for help btw. -
hey i have a script for a game. and i want it to run only for that game anyone have a clue what to look for under help? Also a pause key? Plus can a you explain what steps and what each code is for (pause) key? (ie; Send("{F1}") ;simluate f1 keypress) #cs ---------------------------------------------------------------------------- AutoIt Version: 3.2.10.0 Author: Booleen Script Function: Template AutoIt script. #ce ---------------------------------------------------------------------------- HotKeySet("-", "Stop") ;script can be stopped by pressing - Sleep(4000) ;wait 4sec's before starting the cycle, to allow the user to navigate to the correct window While 1 ;repeat endlessly Send("{F1}") ;simluate f1 keypress Sleep(800) ;wait 1 seconds WEnd ;repeat Func Stop() ;to allow the script to stop Exit ;same EndFunc ;same