Try Parallels Desktop lite is free now.Musa wrote:can anyone help me installing this on my macbook.???
$!00 to anyone who can help me get this running
https://itunes.apple.com/au/app/paralle ... 4709?mt=12
Moderator: Pulover
Try Parallels Desktop lite is free now.Musa wrote:can anyone help me installing this on my macbook.???
$!00 to anyone who can help me get this running
Hi Admin, is this issue had solved on current version? I've a same issue that the loop not work after second / greater loop while using the image search, it will not pause the command to check the image first.rmcallister55 wrote:Hi, The script I am attaching works great the first run through. When it goes to the second loop, it does not pause. I think it just sets errorlevel = 1, and keeps going. This is not how the script is written. It is not supposed to continue until it finds the image in the search. Can you help me figure out how to make the script pause for the image until it finds the image on subsequent loops.
Code: Select all
Loop, Read, C:\Users\Ryan_McAllister\Documents\Accountwithcoins.txt { WinActivate, Genymotion - Galaxy S4 - 4.3 - API 18 - 1080x1920 (480x800, 240dpi) - 192.168.56.102 Sleep, 333 Loop { CoordMode, Pixel, Screen ImageSearch, FoundX, FoundY, 0, 0, 1680, 1050, C:\Users\Ryan_McAllister\AppData\Roaming\MacroCreator\Screenshots\Screen_20131213092922.png If ErrorLevel = 0 Click, %FoundX%, %FoundY% Left, 1 If ErrorLevel Break Sleep, 3000 } Until ErrorLevel = 0 Loop { CoordMode, Pixel, Screen ImageSearch, FoundX, FoundY, 0, 0, 1680, 1050, C:\Users\Ryan_McAllister\AppData\Roaming\MacroCreator\Screenshots\Screen_20131213093430.png If ErrorLevel = 0 Click, %FoundX%, %FoundY% Left, 1 Sleep, 3000 } Until ErrorLevel = 0 Loop { CoordMode, Pixel, Screen ImageSearch, FoundX, FoundY, 0, 0, 1680, 1050, C:\Users\Ryan_McAllister\AppData\Roaming\MacroCreator\Screenshots\Screen_20131213142914.png If ErrorLevel = 0 Click, %FoundX%, %FoundY% Left, 1 Sleep, 3000 } Until ErrorLevel = 0 Loop { CoordMode, Pixel, Screen ImageSearch, FoundX, FoundY, 0, 0, 1680, 1050, C:\Users\Ryan_McAllister\AppData\Roaming\MacroCreator\Screenshots\Screen_20131213142926.png If ErrorLevel = 0 Click, %FoundX%, %FoundY% Left, 1 Sleep, 3000 } Until ErrorLevel = 0 Sleep, 3000 SetKeyDelay, 5 SendEvent, %A_LoopReadLine% Sleep, 5 Loop { CoordMode, Pixel, Screen ImageSearch, FoundX, FoundY, 0, 0, 1680, 1050, C:\Users\Ryan_McAllister\AppData\Roaming\MacroCreator\Screenshots\Screen_20131213142943.png If ErrorLevel = 0 Click, %FoundX%, %FoundY% Left, 1 Sleep, 3000 } Until ErrorLevel = 0 Sleep, 3000 SetKeyDelay, 5 SendEvent, poilkjmnb Sleep, 5 Loop { CoordMode, Pixel, Screen ImageSearch, FoundX, FoundY, 0, 0, 1680, 1050, C:\Users\Ryan_McAllister\AppData\Roaming\MacroCreator\Screenshots\Screen_20131213143009.png If ErrorLevel = 0 Click, %FoundX%, %FoundY% Left, 1 Sleep, 3000 } Until ErrorLevel = 0 Loop { CoordMode, Pixel, Screen ImageSearch, FoundX, FoundY, 0, 0, 1680, 1050, C:\Users\Ryan_McAllister\AppData\Roaming\MacroCreator\Screenshots\Screen_20131213145552.png If ErrorLevel = 0 Click, %FoundX%, %FoundY% Left, 1 Sleep, 3000 } Until ErrorLevel = 0 Loop { CoordMode, Pixel, Screen ImageSearch, FoundX, FoundY, 0, 0, 1680, 1050, C:\Users\Ryan_McAllister\AppData\Roaming\MacroCreator\Screenshots\Screen_20131213145623.png If ErrorLevel = 0 Click, %FoundX%, %FoundY% Left, 1 Sleep, 3000 } Until ErrorLevel = 0 Send, {Down 11} Sleep, 1000 Loop { CoordMode, Pixel, Screen ImageSearch, FoundX, FoundY, 0, 0, 1680, 1050, *50 C:\Users\Ryan_McAllister\AppData\Roaming\MacroCreator\Screenshots\Screen_20131213151051.png If ErrorLevel = 0 Click, %FoundX%, %FoundY% Left, 1 Sleep, 3000 } Until ErrorLevel = 0 Loop { CoordMode, Pixel, Screen ImageSearch, FoundX, FoundY, 0, 0, 1680, 1050, C:\Users\Ryan_McAllister\AppData\Roaming\MacroCreator\Screenshots\Screen_20131213145907.png If ErrorLevel = 0 Click, %FoundX%, %FoundY% Left, 1 Sleep, 3000 } Until ErrorLevel = 0 Loop { CoordMode, Pixel, Screen ImageSearch, FoundX, FoundY, 0, 0, 1680, 1050, C:\Users\Ryan_McAllister\AppData\Roaming\MacroCreator\Screenshots\Screen_20131213145929.png If ErrorLevel = 0 Click, %FoundX%, %FoundY% Left, 1 Sleep, 3000 } Until ErrorLevel = 0 Send, {LButton 2} Sleep, 3000 Loop { CoordMode, Pixel, Screen ImageSearch, FoundX, FoundY, 0, 0, 1680, 1050, C:\Users\Ryan_McAllister\AppData\Roaming\MacroCreator\Screenshots\Screen_20131213150038.png If ErrorLevel = 0 Click, %FoundX%, %FoundY% Left, 1 Sleep, 3000 } Until ErrorLevel = 0 Loop { CoordMode, Pixel, Screen ImageSearch, FoundX, FoundY, 0, 0, 1680, 1050, C:\Users\Ryan_McAllister\AppData\Roaming\MacroCreator\Screenshots\Screen_20131213150050.png If ErrorLevel = 0 Click, %FoundX%, %FoundY% Left, 1 Sleep, 3000 } Until ErrorLevel = 0 Loop { CoordMode, Pixel, Screen ImageSearch, FoundX, FoundY, 0, 0, 1680, 1050, C:\Users\Ryan_McAllister\AppData\Roaming\MacroCreator\Screenshots\Screen_20131213150101.png If ErrorLevel = 0 Click, %FoundX%, %FoundY% Left, 1 Sleep, 3000 } Until ErrorLevel = 0 Loop { CoordMode, Pixel, Screen ImageSearch, FoundX, FoundY, 0, 0, 1680, 1050, C:\Users\Ryan_McAllister\AppData\Roaming\MacroCreator\Screenshots\Screen_20131213145929.png If ErrorLevel = 0 Click, %FoundX%, %FoundY% Left, 1 Sleep, 3000 } Until ErrorLevel = 0 Send, {LButton 2} Sleep, 3000 }
Code: Select all
IfWinExist, Corel PHOTO-PAINT X7 (64-Bit) ahk_class Corel PHOTO-PAINT17
{
}
Else
{
Run, CorelPP.exe
OrangeView wrote:I am trying to add an if statement to my script in Pulover but am having trouble.
I need it to know if Corel Photo paint is open or not. If it is open continue with the script if not open the Corel.exe file then continue with the script. I have tried this>
I do not know how to tell it to continue with the script if it is already open and how to end the script.Code: Select all
IfWinExist, Corel PHOTO-PAINT X7 (64-Bit) ahk_class Corel PHOTO-PAINT17 { } Else { Run, CorelPP.exe
Code: Select all
IfWinNotExist, Corel PHOTO-PAINT X7 (64-Bit) ahk_class Corel PHOTO-PAINT17
{
Run, CorelPP.exe
WinWait, Corel PHOTO-PAINT X7 (64-Bit) ahk_class Corel PHOTO-PAINT17
}
; ... rest of script here
I got it now! Plus when I originally made it the closing bracket did not show up.guest3456 wrote:OrangeView wrote:I am trying to add an if statement to my script in Pulover but am having trouble.
I need it to know if Corel Photo paint is open or not. If it is open continue with the script if not open the Corel.exe file then continue with the script. I have tried this>
I do not know how to tell it to continue with the script if it is already open and how to end the script.Code: Select all
IfWinExist, Corel PHOTO-PAINT X7 (64-Bit) ahk_class Corel PHOTO-PAINT17 { } Else { Run, CorelPP.exe
maybe something like this:
Code: Select all
IfWinNotExist, Corel PHOTO-PAINT X7 (64-Bit) ahk_class Corel PHOTO-PAINT17 { Run, CorelPP.exe WinWait, Corel PHOTO-PAINT X7 (64-Bit) ahk_class Corel PHOTO-PAINT17 } ; ... rest of script here
Code: Select all
IfWinNotExist, Corel PHOTO-PAINT X7 (64-Bit) ahk_class Corel PHOTO-PAINT17
{
Run, CorelPP.exe
}
Code: Select all
IEGet(Name="") ;Retrieve pointer to existing IE window/tab
{
IfEqual, Name,, WinGetTitle, Name, ahk_class IEFrame
Name := ( Name="New Tab - Windows Internet Explorer" ) ? "about:Tabs"
: RegExReplace( Name, " - (Windows|Microsoft) Internet Explorer" )
For wb in ComObjCreate( "Shell.Application" ).Windows
If ( wb.LocationName = Name ) && InStr( wb.FullName, "iexplore.exe" )
Return wb
} ;written by Jethrow
wb := IEGet("")
Code: Select all
Click, 960, 540 Left, Down
Sleep, 2000
Click, 960, 540 Left, Up
Loop
{
CoordMode, Pixel, Window
PixelSearch, 0, 0, 268, 1721, 325, 1848, 0x9D626C, 100, Fast RGB
If ErrorLevel = 0
SoundBeep
If ErrorLevel
Return
}
Until ErrorLevel = 0
If ErrorLevel = 0
{
Click, 960, 540 Right, Down
Sleep, 10
Click, 960, 540 Right, Up
}
Code: Select all
If ErrorLevel
Return
Doneboiler wrote:Your script ends the first time through the loop if it doesn't find the color because of these lines:Remove those so it can continue looping until it finds the color.Code: Select all
If ErrorLevel Return
Return to “Pulovers Macro Creator”
Users browsing this forum: No registered users and 20 guests