andd Posted September 4, 2005 Share Posted September 4, 2005 Hi, although the most functions are predefined in AutoIt, I would like to test a few functions of the 'user32.dll' (and other *.dll's). The use of the DllCall()-function seems not to be the problem, because it's explained in the AutoIt help and I got some examples from this forum. My problems are to find the right parameters to call a function of 'user32.dll'. The 'depency-walker' tool gives me some information about function names and even the implementation from the msdn help, but I dont understand how to use it with AutoIt. E.g. the BlockInput function: BOOL BlockInput( BOOL fBlockIt ); ;taken from: ;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/blockinput.asp ...there is no boolean-type I can use with DllCall() Have you some tricks (or tutorials) to handle the msdn help for AutoIt use? The BlockInput function should only be an example, but I also tried some other functions where I got confused how to use the parameters... Might be a silly question, but I am very new to using the 'windows-api' :-( Link to comment Share on other sites More sharing options...
w0uter Posted September 4, 2005 Share Posted September 4, 2005 (edited) bool = intsee the syntax notes in the dev forum (sticky)Minimum DLL Version user32.dll / Import library User32.libBOOL BlockInput( BOOL fBlockIt);DllCall('user32.dll', 'int', 'BlockInput', 'int', $fBlockIt) Edited September 4, 2005 by w0uter My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
andd Posted September 4, 2005 Author Share Posted September 4, 2005 *omg* This thread is exactly what I was looking for, but I didn't find it by using the search ...anyway sorry for opening an extra thread and thanks for your help Link to comment Share on other sites More sharing options...
w0uter Posted September 5, 2005 Share Posted September 5, 2005 that is becouse it is your thread My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
andd Posted September 6, 2005 Author Share Posted September 6, 2005 It's me again Some functions need dword flags like e.g. SCRCOPY or AW_CENTER... in msdn-help I can't find the hexcode you use instead... where can I get a documentation? Link to comment Share on other sites More sharing options...
w0uter Posted September 6, 2005 Share Posted September 6, 2005 just google on Const AW_CENTER or you could look it up in the .h files. (they come with devC++ for example) My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
andd Posted September 6, 2005 Author Share Posted September 6, 2005 Thx a lot, you help me coming forward again Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now