Comments (6)
I found the same problem with you. It can temporarily solved by exporting to ahk file and removing "*64" in "CenterImgSrchCoords("*64 C:\CHB\image.png", FoundX, FoundY)"
from puloversmacrocreator.
This also happens when selecting a transparent color:
"CenterImgSrchCoords("*Trans0xFFFFFF C:\Users\David\AppData\Roaming\MacroCreator\Screenshots\Screen_20180108155624.png", FoundX, FoundY)"
It is not fixed in the current version.
from puloversmacrocreator.
Yes, ton of bugs. I switch to Notepad already.
The code is wrong. Look when convert to AHK:
Macro1:
Loop
{
CoordMode, Pixel, Window
ImageSearch, FoundX, FoundY, 0, 0, 1920, 1080, *69 D:\download\PuloversMacroCreator-Portable\MacroCreatorPortable\x86\MacroCreator\Screenshots\Screen_20180812200820.png
CenterImgSrchCoords("*69 D:\download\PuloversMacroCreator-Portable\MacroCreatorPortable\x86\MacroCreator\Screenshots\Screen_20180812200820.png", FoundX, FoundY)
}
Until ErrorLevel = 0
If ErrorLevel = 0
{
}
Return
CenterImgSrchCoords(File, ByRef CoordX, ByRef CoordY)
{
static LoadedPic
LastEL := ErrorLevel
Gui, Pict:Add, Pic, vLoadedPic, %File%
GuiControlGet, LoadedPic, Pict:Pos
Gui, Pict:Destroy
CoordX += LoadedPicW // 2
CoordY += LoadedPicH // 2
ErrorLevel := LastEL
}
from puloversmacrocreator.
Create my own function:
ImageSearchMouseCenter(ByRef xMouse, ByRef yMouse, File)
{
LastErrorLevel := ErrorLevel
static LoadedPic
Gui -DPIScale
Gui, Add, Picture, vLoadedPic, %File%
GuiControlGet, LoadedPic, Pos
Gui, Destroy
xMouse += LoadedPicW // 2
yMouse += LoadedPicH // 2
ErrorLevel := LastErrorLevel
}
and use as
Loop
{
CoordMode, Pixel, Window
ImageSearch, x, y, 0, 0, 1920, 1080, *120 Sail_Img_1.png
ImageSearchMouseCenter(x, y, "Sail_Img_1.png")
Sleep, 200
}
Until ErrorLevel = 0
If ErrorLevel = 0
{
MsgBox, %x% %y%
}
return
from puloversmacrocreator.
ImageSearch options are prefixed to the file name in this command I forgot to trim them. Will be fixed in the next release.
from puloversmacrocreator.
Fixed in v5.1.2.
from puloversmacrocreator.
Related Issues (20)
- option to edit the "controls toolbar"
- mouse movement playback not working in roblox HOT 1
- Remove bundled malware from installer HOT 1
- Click Random Coordinates Offset X Y
- Insert key value not work in PMC
- AutoHotkey v2 / Pulover'sMacroCreator v2 ? :D HOT 3
- Doesn't respond just throttles cpu HOT 9
- Background click on edge
- MsgBox with tabs inside If causes error 'Missing End If statement'
- Installation Error
- Relative Record Key "Toggle" option does not work HOT 1
- Hotkeys stop working HOT 1
- Pulover's Macro Creator installs web companion without warning HOT 1
- Doesnt work together with DisplayFusion Pro
- Installer includes adware HOT 3
- Control select by mouse right click is not working from remote (TeamViewer, Anydesk, Ammy Admin)
- Program completely unusable. Seems to freeze upon opening, but it can be slightly moved. HOT 4
- why is this macro so "unoptimized"? HOT 1
- Issues With Keyboard Keys following use. HOT 1
- Unwanted delay added over time after a number of repetitions/loops
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puloversmacrocreator.