running code on vmware machine

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
lawliet1987
Posts: 2
Joined: 10 Jun 2021, 02:33

running code on vmware machine

11 Jun 2021, 09:09

Code: Select all

~1::

img160 = map2.bmp
ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *1 %img160%
if(ErrorLevel == 0)
{
MouseMove, %foundX%, %foundY%
Sleep, 100
Click
Sleep, 100
Click
}
else
{
MsgBox, cant find
}
return
[Mod edit: [code][/code] tags added.]

this code is working on my main pc...
but when i transfer it to vmware machine the image not found its not working even if i copy the bmp directory
Last edited by gregster on 11 Jun 2021, 09:15, edited 1 time in total.
Reason: [code] tags added, meaningful topic title added.
safetycar
Posts: 435
Joined: 12 Aug 2017, 04:27

Re: running code on vmware machine

12 Jun 2021, 10:01

Try to make sure the file is being read correctly, something like MsgBox % FileExist(img160)

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: doodles333, mikeyww and 226 guests