Strange error after compiling

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
conjure
Pro Scripter
Posts: 63
Joined: Thu Jan 12, 2012 3:05 pm

Strange error after compiling

Post by conjure » Sun Mar 12, 2017 3:53 pm

Code: Select all

// COMPILE_OPTS|C:\Users\PC\Desktop\ngrok.exe||CONSOLE=0|INCLUDES=1|
ExecuteFile>cmd
WaitWindowOpen>Administrator: C:\Windows\System32\cmd.exe
wait>0.5
GetTextInit
GetWindowTextEx>Administrator: C:\Windows\System32\cmd.exe,string
msg>string
Hi i m facing a strange error on MS version 13.2.4e

When i run the above code on MS it works ok messaging me the text inside the window.
But when i compile it in .exe i get an error



Errors details
Problem Event Name: APPCRASH
Application Name: ngrok.exe
Application Version: 1.0.0.0
Application Timestamp: 57dfc52c
Fault Module Name: StackHash_19e0
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 00000000
Exception Code: c0000005
Exception Offset: 00000000
OS Version: 6.1.7600.2.0.0.768.2
Locale ID: 1033
Additional Information 1: 19e0
Additional Information 2: 19e00a7bdd1858edb0b0971a8ed4e464
Additional Information 3: b3a2
Additional Information 4: b3a24dda2731f41273e14db2b77d9b90

zabros2020
Pro Scripter
Posts: 70
Joined: Sun May 03, 2009 11:49 pm
Location: AU

Re: Strange error after compiling

Post by zabros2020 » Tue Mar 14, 2017 7:18 am

Hi,

Looks like you are calling the functions GetTextInit and GetWindowTextEx

Make sure the following dependencies are in the same directory as your compiled .exe file for Win7

GetWord.dll
GetWord_x64.dll
or if server
GetWordNT.dll
GetWordNT_x64.dll

I've seen a similar error when they are missing
Loving MS's Capabilities!!!

conjure
Pro Scripter
Posts: 63
Joined: Thu Jan 12, 2012 3:05 pm

Re: Strange error after compiling

Post by conjure » Sat Mar 18, 2017 1:27 pm

Thank you Zabros.
I ve tried your suggestion and now it dont give me an error, but it fails to read the text inside the window.. .
but it works ok if i dont compile it
Any idea why?

zabros2020
Pro Scripter
Posts: 70
Joined: Sun May 03, 2009 11:49 pm
Location: AU

Re: Strange error after compiling

Post by zabros2020 » Sun Mar 19, 2017 11:11 am

hi conjure,

can you also check if you have this file called License.dat in the same directory as exe....
Loving MS's Capabilities!!!

conjure
Pro Scripter
Posts: 63
Joined: Thu Jan 12, 2012 3:05 pm

Re: Strange error after compiling

Post by conjure » Sun Mar 19, 2017 12:32 pm

Thank you zabros. I downloaded latest version and it works fine on compiled exe

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