does GetWIndowTextEx works when its an exe?

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
hoangvo81
Pro Scripter
Posts: 69
Joined: Tue Feb 07, 2012 8:02 pm

does GetWIndowTextEx works when its an exe?

Post by hoangvo81 » Fri Sep 14, 2012 6:00 pm

SetFocus>Untitled - Notepad
GetTextInit
GetWindowTextEx>Untitled - Notepad,strText
mdl>strText


i m getting an application crashed.
it runs find when its run inside MS.
it will not run even if you leave the script above as a .scp
and create another script into an exe use macro to run the script above.

always gives an application failed.

hoangvo81
Pro Scripter
Posts: 69
Joined: Tue Feb 07, 2012 8:02 pm

Post by hoangvo81 » Fri Sep 14, 2012 6:18 pm

Found that the GetTextInit is not included into the exe so it will crashed, but cannot find where the information on how to's for compiling it.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Fri Sep 14, 2012 6:21 pm

See "Runtime Libraries" in the help file under "Create Exe". Or here:

http://www.mjtnet.com/OnlineHelp/hpad1750.htm
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

hoangvo81
Pro Scripter
Posts: 69
Joined: Tue Feb 07, 2012 8:02 pm

Post by hoangvo81 » Fri Sep 14, 2012 6:25 pm

Thanks, got the email - works good now.

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts