V2调用大漠dm.FindStr函数, This variable appears to never be assigned a value

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: V2调用大漠dm.FindStr函数, This variable appears to never be assigned a value

V2调用大漠dm.FindStr函数, This variable appears to never be assigned a value

by lllty183 » 07 Mar 2024, 22:45

代码如下:

Code: Select all

F5::
{
dm :=  ComObject("dm.dmsoft")
ver := dm.Ver()
dm.SetDict(0,"C:\dm31233\dm_soft.txt")
wow := WinGetID("ahk_exe skyfirewow.exe")
dm.BindWindow(wow, "normal", "normal", "normal", 0)
a1 := dm.Ocr(865,420,876,433, "ff0000-990000", 1.0)
a := Integer(a1)
b1 := dm.Ocr(882, 420, 892, 433, "ff0000-990000", 1.0)
b := Integer(b1)
c := dm.Ocr(875,420,883,433, "ff0000-990000", 1.0)
If c = "+"
{
	d1 := a + b
}
else If c = "-"
{
	d1 := a - b
}
else if c = "*"
{
	d1 := a * b
}
d := String(d1)					;以上没有问题
dm_ret := dm.FindStr(799,454,977,634,d,"ffffff-666666",1.0,intX,intY)
MsgBox inX " ," inY
}
提醒截图:
image.png
image.png (14.45 KiB) Viewed 347 times

Top