Skysnake Posted November 14, 2015 Posted November 14, 2015 bool SMSAPI_sendsms( const LPSMSAPI_NETWORKCONFIGURATION lpNetConfig, const LPSMSAPI_ACCOUNTINFO lpAccInfo, const LPSMSAPI_MESSAGEINFO lpMsgInfo, LPSMSAPI_RESPONSEINFO lpResponseInfo);How does one call this in an AutoIt DllCall() - I do not see "const" conversions and how does one insert the pointers? Skysnake Why is the snake in the sky?
JohnOne Posted November 14, 2015 Posted November 14, 2015 what is the dll name and where can one find the documentation? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Skysnake Posted November 14, 2015 Author Posted November 14, 2015 Its all here:documentation, dll and my attemptThank you Skysnake Why is the snake in the sky?
Danyfirex Posted November 14, 2015 Posted November 14, 2015 (edited) You should do something like this.;~ First declare your structures Local $tnetworkConfiguration=DllStructCreate($sTagSMSAPI_NETWORKCONFIGURATION) Local $taccountInfo=DllStructCreate($sTagSMSAPI_ACCOUNTINFO) Local $tmessageInfo=DllStructCreate($sTagSMSAPI_MESSAGEINFO) Local $tresponseInfo=DllStructCreate($sTagSMSAPI_RESPONSEINFO) ;~ Set defaults values initialize_defaults DllCall($h_smstxt32,"bool","sms_initialize_defaults","ptr",DllStructGetPtr($tnetworkConfiguration),"int",DllStructGetSize($tnetworkConfiguration)) DllCall($h_smstxt32,"bool","sms_initialize_defaults","ptr",DllStructGetPtr( $taccountInfo),"int",DllStructGetSize($taccountInfo)) DllCall($h_smstxt32,"bool","sms_initialize_defaults","ptr",DllStructGetPtr($tmessageInfo),"int",DllStructGetSize($tmessageInfo)) DllCall($h_smstxt32,"bool","sms_initialize_defaults","ptr",DllStructGetPtr($tresponseInfo),"int",DllStructGetSize($tresponseInfo)) ;~ set some details $tnetworkConfiguration.nIdealPort = 80; //-- use the standard HTTP internet port $taccountInfo.defaultServerID = (SMSAPI_SERVER)serverID; //-- connect to the South Africa commerce server $taccountInfo.szSMSAPIUsername,lpszUsername); //-- set the bulksms account username $taccountInfo.szSMSAPIPassword,lpszPassword); //-- set the bulksms account password $tmessageInfo.szMessageText,lpszMessage); //-- set the message text $tmessageInfo.lpszCommaSeperatedMobileList = lpszMobile; //-- set the message recipient list (comma seperated) ;~ then call sendsms DllCall($h_smstxt32,"bool","sms_sendsms","ptr",DllStructGetPtr($tnetworkConfiguration),"ptr",DllStructGetPtr($taccountInfo),"ptr",DllStructGetPtr($tmessageInfo),"ptr",DllStructGetPtr($tresponseInfo))Saludos Edited November 14, 2015 by Danyfirex Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut
Skysnake Posted November 15, 2015 Author Posted November 15, 2015 Thank you kindly, I am playing with your script. Looks like I was a long way off... Thanks Skysnake Why is the snake in the sky?
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