Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 9:44 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: User32.DLL Message Boxes
PostPosted: May 27th, 2012, 1:39 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Hi,

Haven't used the User32.dll Windows message boxes features for a while. Tried to script one in a pub, using the script found in the Opus Scripting help file and can't get it to work (in either Opus Pro v8 or Opus Pro v 7.06). Since I'm testing on a Win 7 X 64 bit OS, tried to substitute SysWOW64 and hard code the direct path (C://...) into the function loading (and also tried to hard code the system 32 path), with no success. Can't get the User32.dll message box to work, yet know it works on my machine for other programs.

From the scripting help file and used without success:

Code:
var UserDLL=LoadDLL(SYSTEM_WINSYS_DIR + "User32.DLL")
if (UserDLL)
{
var MsgBox=UserDLL.CallFn("MessageBoxA", true, "slong", "hwnd", 0, "string", "Please complete all questions before continuing", "string","Reminder",64)
}

Any way to get this working (if not, can use my own message box)?

Kind Regards,

_________________
Stephen


Top
 Profile  
 
 Post subject: Re: User32.DLL Message Boxes
PostPosted: May 27th, 2012, 6:32 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Works fine (using your snippet) on my W7x64 machine. Must be something else.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: User32.DLL Message Boxes
PostPosted: May 27th, 2012, 7:30 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Thanks, Mack.

I added "ulong" to the above sample script, before the last parameter, which got the script to work.

Regards,

_________________
Stephen


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 58 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group