Jump to content

j0linus

Members
  • Posts

    4
  • Joined

  • Last visited

About j0linus

  • Birthday 08/05/1984

Profile Information

  • Location
    Germany
  • Interests
    Coding AutoIt - what else?

j0linus's Achievements

Seeker

Seeker (1/7)

1

Reputation

  1. try to change the BLUETOOTH_DEVICE_INFO structure... #include Global Const $hDllBthProps = DllOpen("bthprops.cpl") Func _BluetoothFindFirstDevice() $tBLUETOOTH_DEVICE_SEARCH_PARAMS = DllStructCreate('DWORD;BOOL;BOOL;BOOL;BOOL;BOOL;BYTE;HANDLE') DllStructSetData($tBLUETOOTH_DEVICE_SEARCH_PARAMS, 1 , DllStructGetSize($tBLUETOOTH_DEVICE_SEARCH_PARAMS)) DllStructSetData($tBLUETOOTH_DEVICE_SEARCH_PARAMS, 2 , False) DllStructSetData($tBLUETOOTH_DEVICE_SEARCH_PARAMS, 3 , False) DllStructSetData($tBLUETOOTH_DEVICE_SEARCH_PARAMS, 4 , True) DllStructSetData($tBLUETOOTH_DEVICE_SEARCH_PARAMS, 5 , False) DllStructSetData($tBLUETOOTH_DEVICE_SEARCH_PARAMS, 6 , True) DllStructSetData($tBLUETOOTH_DEVICE_SEARCH_PARAMS, 7 , 30) DllStructSetData($tBLUETOOTH_DEVICE_SEARCH_PARAMS, 8 , 0) ;$SYSTEMTIME=DllStructCreate("ushort wYear;ushort wMonth;ushort wDayOfWeek;ushort wDay;ushort wHour;ushort wMinute;ushort wSecond;ushort wMilliseconds") ;DllCall("Kernel32.dll","none","GetSystemTime","ptr",DllStructGetPtr($SYSTEMTIME)) $tBLUETOOTH_DEVICE_INFO = DllStructCreate('DWORD;UINT64;ULONG;BOOL;BOOL;BOOL;word[8];word[8];WCHAR[248]') DllStructSetData($tBLUETOOTH_DEVICE_INFO,1,DllStructGetSize($tBLUETOOTH_DEVICE_INFO)) ;DllStructSetData($tBLUETOOTH_DEVICE_INFO,7,DllStructGetPtr($SYSTEMTIME)) ;DllStructSetData($tBLUETOOTH_DEVICE_INFO,8,DllStructGetPtr($SYSTEMTIME)) $RESULT = DllCall($hDllBthProps, "handle", "BluetoothFindFirstDevice", "struct*", $tBLUETOOTH_DEVICE_SEARCH_PARAMS, "struct*", $tBLUETOOTH_DEVICE_INFO) msgbox(64, "", 'Result: ' & $RESULT[0] & @crlf & 'WinAPI Error: ' & _WinAPI_GetLastErrorMessage() & @crlf & 'Error: ' & @error) EndFunc _BluetoothFindFirstDevice()
  2. You could use the SendTo Menu. Compile your script and copy it to "%USERPROFILE%\SendTo". (shortcut to compiled script also works) In Explorer select your files and click your script in the SendTo Menu - it should work.
  3. I have tested your example with Firefox and LiveHttpHeader extension. The response is: HTTP/1.x 200 OK Connection: close Date: Wed, 15 Oct 2008 04:21:31 GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET, PHP/4.3.11 Content-Type: text/html I think the HTTP UDF doesn't work because there is no Content-Length value in the response and when i look at the html code it is the same like before the POST. (checked with IE and it works - contains new html code after the POST) I think the easiest way to send post request is to use IE UDF (_IEFormElementSetValue, _IEFormSubmit and so on). It depends on what you want to do. The WinInet functions MSDN or Ultima UDF provide the most efficient way, but they are heavy the handle. The HTTP UDF is the best middle way the work with HTTP Headers, HTML code and there's no need to cookies or downloading binary files. (although with some modify it should be possible too)
  4. Hello, if someone else needs .... Global Const $BCN_DROPDOWN = ($BCN_FIRST + 0x0002) Global Const $MCS_NOTRAILINGDATES = 0x0040 Global Const $MCS_SHORTDAYSOFWEEK = 0x0080 Global Const $MCS_NOSELCHANGEONNAV = 0x0100 Global Const $MCM_GETCALENDARBORDER = ($MCM_FIRST + 31) Global Const $MCM_GETCALENDARCOUNT = ($MCM_FIRST + 23) Global Const $MCM_GETCALENDARGRIDINFO = ($MCM_FIRST + 24) Global Const $MCM_GETCALID = ($MCM_FIRST + 27) Global Const $MCM_GETCURRENTVIEW = ($MCM_FIRST + 22) Global Const $MCM_SETCALENDARBORDER = ($MCM_FIRST + 30) Global Const $MCM_SETCALID = ($MCM_FIRST + 28) Global Const $MCM_SETCURRENTVIEW = ($MCM_FIRST + 32) Global Const $HDM_GETFOCUSEDITEM = ($HDM_FIRST+27) Global Const $HDM_GETITEMDROPDOWNRECT = ($HDM_FIRST+25) Global Const $HDM_GETOVERFLOWRECT = ($HDM_FIRST+26) Global Const $HDM_SETFOCUSEDITEM = ($HDM_FIRST+28) Global Const $HDS_NOSIZING = 0x0800 Global Const $HDS_OVERFLOW = 0x1000 Global Const $LVM_GETEMPTYTEXT = ($LVM_FIRST + 204) Global Const $LVM_GETFOCUSEDGROUP = ($LVM_FIRST + 93) Global Const $LVM_GETFOOTERINFO = ($LVM_FIRST + 206) Global Const $LVM_GETFOOTERITEMRECT = ($LVM_FIRST + 207) Global Const $LVM_GETFOOTERITEM = ($LVM_FIRST + 208) Global Const $LVM_GETFOOTERITEMRECT = ($LVM_FIRST + 207) Global Const $LVM_GETFOOTERRECT = ($LVM_FIRST + 205) Global Const $LVM_GETGROUPCOUNT = ($LVM_FIRST + 152) Global Const $LVM_GETGROUPINFOBYINDEX = ($LVM_FIRST + 153) Global Const $LVM_GETGROUPRECT = ($LVM_FIRST + 98) Global Const $LVM_GETGROUPSTATE = ($LVM_FIRST + 92) Global Const $LVM_GETITEMINDEXRECT = ($LVM_FIRST + 209) Global Const $LVM_GETNEXTITEMINDEX = ($LVM_FIRST + 211) Global Const $LVM_ISITEMVISIBLE = ($LVM_FIRST + 182) Global Const $LVM_SETITEMINDEXSTATE = ($LVM_FIRST + 210) Global Const $LVN_COLUMNDROPDOWN = ($LVN_FIRST-64) Global Const $LVN_COLUMNOVERFLOWCLICK = ($LVN_FIRST-66) Global Const $LVN_INCREMENTALSEARCHA = ($LVN_FIRST-62) Global Const $LVN_INCREMENTALSEARCHW = ($LVN_FIRST-63) If @AutoItUnicode Then Global Const $LVN_INCREMENTALSEARCH = $LVN_INCREMENTALSEARCHW Else Global Const $LVN_INCREMENTALSEARCH = $LVN_INCREMENTALSEARCHA EndIf
×
×
  • Create New...