![]() #If any future hotkeys placed under here will not be context sensitive. #If !ErrorLevel If this statement is True or Not False (!0 or !Blank), the hotkey below will work Set this number to however long you want. Sleep 500 Let the loop wait for 500 milli-seconds before doing this again. ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, C:\Screenshot_463.bmp We're going to use this fact to turn make your hotkey context-sensitive and only work when the Image has been found and ErrorLevel is set to 0. Like the title says, the F1-3 keys are not working to Save/Change/Load states for whatever reason. Hotkeys listed below an #If statement are only active when that condition is evaluated to True. The last thing we're going learn about is #If. Because it will be equivalent to Not False. Check your video plugins options screen to see what options it gives you. If we say If !ErrorLevel, the entire If function will evaluate as True when ErrorLevel is 0 or blank. It varies based on plugin and version, but some hotkeys to try are F4 (toggles limit in ePSXe > 1.7.0), 9 (unknown versions), and the later F-keys (F9 to F12), which adjust the frameskipping/limiting settings. Something that is False is True or Not False. Something that's True is False or Not True. Put simply, it flips the logic of True and False around. The next thing to know is the ! can be used as a logical-NOT symbol. Like I said, we were going to use ErrorLevel. Having a value of 0 or blank means the variable would be evaluated as False. If so, it considers that to be a True statement. If you give it just a variable, it will check to see if that variable has a value in it. The next thing to know is that If statements are evaluated as True or False. One last thing with ErrorLevel is that we are free to set it ourselves using Errorlevel:=Value where Value could be anything you want (number, word, whatever). Once you have your shark enhanced copy of ePSXe 1.8.0 you can not rename it, but you can rename the main exe of every other version and store them all in the same folder. In the documentation, it says that if ErrorLevel is set to 0, the image was found with no problem. I had a quick look at some external pad plugins and pad gnneco (en, DI7) 0.6 support autofire options. This variable is used by numerous commands and explains if anything goes wrong. AFAIK, those are basically on-demand frameskips. There is another built-in variable called ErrorLevel. I guess he means a 'fast forward' feature like the ones you can find in other emus. What you're asking for is also just a spot more complicated that I don't think I can explain it well, but I'll try. ![]() If you want it to search the entire screen, you would write ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, C:\Screenshot_463.bmp A_ScreenWidth and A_ScreenHeight are built in variables that basically contain the respective portions of your resolution. The X1, Y1, X2, Y2 are values you define. Where FoundX and FoundY are, those are the names of variables that the coordinate value will be stored when the image is found. So, right now your ImageSearch syntax is off. So the first thing is that hotkeys shouldn't be embedded in a loop.
0 Comments
Leave a Reply. |