Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/16/2016 in all areas

  1. So I think it's time to publish this little tutorial I have made on using DllCall() and DllStructs. It's not near completion but I think it's a good start at least This tutorial is mostly aimed for people who have never used DllCall() before or have very limited knowledge about it. In the future I will update it with more advanced topics so more advanced users can make use of it too. Well here goes. Dealing_with_Dll.pdf Previous downloads: 31 Suggestions, language corrections and errors in the tutorial is of course welcome.
    1 point
  2. Hi! Today I want to show you my current AutoIt project: The ISN AutoIt Studio. The ISN AutoIt Studio is a complete IDE made with AutoIt, for AutoIt! It includes a GUI designer, a code editor (with syntax highlighting, auto complete & intelisense), a file viewer, a backup system, trophies and a lot more features!! Here are some screenshots: Here some higlights: -> easy to create/manage/public your AutoIt-projects! ->integrated GUI-Editor (ISN Form Studio 2) ->integrated - file & projectmanager ->auto backupfunction for your Projects ->extendable with plugins! ->available in several languages ->trophies ->Syntax highlighting /Autocomplete / Intelisense ->Dynamic Script ->detailed overview of the project (total working hours, total size...) And much more!!! -> -> Click here to download ISN AutoIt Studio <- <- Here is the link to the german autoit forum where I posted ISN AutoIt Studio the first time: http://autoit.de/index.php?page=Thread&threadID=29742&pageNo=1 For more information visit my Homepage: https://www.isnetwork.at So….have fun with ISN AutoIt Studio! PS: Sorry for my bad English! ^^
    1 point
  3. wakillon

    Chiptunes Players

    I love chiptune music, but BASS only support XM, IT, S3M, MOD, MTM, UMX and MO3 file format for MOD music. 1 | Nintendo NES and SNES Sound File Players May be you already have some files with extension nsf, nsfe, spc or rsn (unzip rsn files for get spc collection files inside) but you can't play them in a AutoIt script ? So I searched around a bit, and found 2 DLL ( nsf_player.dll and spc_player.dll ) for play Nintendo NES and SNES Sound Files. Interest of those DLL is that they can play from file path or binary data, avoiding temp files. Dll and audio files are embedded in scripts for permit you to test them right away. Some info/download links are in front of each script. 2 | ModPlug Player Another dll found : npmod32.dll who support mod, s3m, xm, med, it, s3z, mdz, itz, xmz and wav files. Interest : it can play some rares chiptune formats, you can also pause, set volume and set position. Inconvenient : do not load from binary datas. Dll and audio files are embedded in script and i have added a gui for permit you to try right away ! Warning : Do not work on Win8. 3 | ZXTune Player 2 (basszxtune.dll v2.4.5) UPDATE of 23 DEC 2016 Using BASSZXTUNE chiptune support for BASS ( Support as0, asc, ay, ftc, gtr, psc, psg, psm, pt1, pt2, pt3, sqt, st1, s, st3, stc, stp, ts, txt, vtx, ym, chi, dmm, dst, m, sqd, str, sid, cop, tf0, tfc, tfd, tfe, $b, $m, ahx, ayc, bin, cc3, d, dsq, esv, fdi, gam, gamplus, gbs, gym, hes, hrm, hrp, lzs, msp, mtc, nsf, nsfe, p, pcd, sap, scl, spc, szx, td0, tlz, tlzp, trd, trs, vgm ) Interest : it can play lot of rares chiptune formats, while benefiting from all bass functions. Inconvenient : dll size.(5860ko) Dll and audio files are embedded in script. 4 | TitchySID Player Files and dll are loaded in memory. Interest : dll size (8ko), you can Play/Stop/Pause/Resume and choose which subsong to play. Inconvenient : only SID audio files supported ( PSID & RSID) Dll and audio files are embedded in script. Tested under Win7 and Win8. Edit : added a Sid header viewer : SidHeaderViewer.au3 5 | MiniFmod Player Interest : dll size (20ko) Inconvenient : only xm audio files supported. 6 | Npnez Player Using npnez.dll (88ko) for play Gameboy Sound System audio files and some others ( kss, hes, nsf, ay, gbr, gbs, gb, nsd, sgc ) Interest : Can be loaded in memory, subsong can be set and volume can be adjusted ( perfect for create a fade when exiting ) Inconvenient : for an unknow reason, only 20% of my hes collection is playable... 7 | µFMOD Player Interest : dll size (10ko), can be loaded in memory, support Play/Stop/Pause/Resume actions and volume can be adjusted ( perfect for create a fade when exiting ) Inconvenient : only xm audio files supported. 8 | MagicV2m Player Interest : dll size (20ko), Play/Stop/IsPlay/SetAutoRepeat/Progress Inconvenient : only v2m audio files supported, V2mPlayStream is not reliable, so prefer V2mPlayFile instead. 9 | OSMEngine Player OSMEngine.dll (80 ko)(Oldskool Musics Engine) permit to play snd, sndh, fc, fc4, fc14 and some rare jam audio files from Amiga/Atari ST(E) Interest : audio can be loaded in memory, and Pause/Resume/SetVolume/GetInfos are available Inconvenient : none at the moment. 10 | Ayfly Player Ayfly.dll (268 ko) is a AY-891x emulator and player who support the following tracker formats : aqt, asc, ay, fxm, gtr, psc, psg, pt1, pt2, pt3, sqt, stc, stp, vtx, ym and zxs (ZX Spectrum Emulator Snapshot) files. Interest : SetVolume/GetInfos are available Inconvenient : a function named "ay_initsongindirect" for load module in memory exists, but due to the poor documentation provided i do not succeed to get it to work... 11 | GMGME Player GMGME.dll is a emulated music DLL that allows you to play ay, gbs, gym, hes, kss, nsf/nsfe, sap, spc and vgm files. Interest : Can play ATARI SAP files (only type B and C) , Set Volume and Set Tempo are available Inconvenient : Dll Size (and his imports) , and audio files can not be loaded in memory. 12 | SC68 Player sc68replay.dll (166 ko) is a Freebasic DLL compiled from "sc68replay" src that allows you to play SC68 (Atari ST and Amiga audio formats) files. Interest : Can play from file and memory Inconvenient : Unfortunatelly for an unknown reason not all sc68 files are supported. 13 | Extended Module Player LibXmp.dll (272 ko) can "read" xm, mod, it, s3m, med, 669 but also some rares formats abk, amd, amf, dbm, digi, dtm, emod, far, flx, fnk, gdm, hsc, imf, j2b, liq, m15, mdl, mfp, mgt, mtm, mtn, okt, psm, ptm, rad, rtm, sfx, smp, stim, stm, stx, ult, umx, wow, ym3812 Despite its name, it's not a "player" but a library that renders module files to RAW PCM data. So the interest in this script was to find a way to convert those raw datas into a "playable" sound. With Waveform Audio Interface i create a pseudo Wav header who permit to play datas as a Wav file. Interest : Can play from file and memory Inconvenient : Time to render datas (depends of file size) 14 | LibModPlug Player LibModPlug.dll (102 ko) can "read" xm, it, mod, s3m, med, 669 and also amf, ams, dbm, dmf, dsm, far, j2b, mdl, mt2, mtm, okt, psm, ptm, stm, ult, umx. As LibXmp.dll, it's a library that renders module files to RAW PCM data. For this one, i create a real binary wave header for be able to play it easily from memory with winmm.dll PlaySoundW function. Interests : Can play from file and memory, and have some nice sound effects : Surround, MegaBass and Reverb (used in script example) It can also replace modplug player(2) for Win 8+ users Inconvenient : Time to render datas (depends of file size) 15 | AdPlug Player AdPlug.dll ( 69ko ) is an AdLib sound player library who is able to play the following files type : A2M, ADL, AMD, BAM, CFF, CMF, D00, DFM, DMO, DRO, DTM, HSC, HSP, IMF, KSM, LAA, LDS, M, MAD, MID, MKJ, MSC, MTK, RAD, RAW, RIX, ROL, S3M, SA2, SAT, SCI, SNG, XAD, XMS, XSM For this one, time to render datas is to long, so i needed to find an other way for play modules. Using Bass.dll and particulary the "BASS_StreamPutData" function i succeeded to play module in loop while rendering it. Both DLL are loaded in memory, and 16 different module types are available in the script. No includes/files needed. Just run it. Warning : for a unique file extension (example .sng), it's sometimes possible to have several filetypes from different trackers ! AdPlug.dll Imports : msvcp71.dll, msvcr71.dll in C:\Windows\SysWOW64 ( VC Redist Installer ) Interests : Can read some obscure rare formats. Inconvenient : Can not read from memory 16 | LibMikmod Player LibMikmod.dll (85ko) will currently play the following common and not so common formats : 669, AMF, DSM, FAR, GDM, IMF, IT, MED, MOD, MTM, S3M, STM, STX, ULT, UNI, XM Interests : Can load from memory Inconvenient : only for full-screen applications, because if the application has not the focus sound is muted Downloads are available in the download section Dedicated to chiptune Lovers ! Music Links : asma.atari.org woolyss.com chipmusic.org demozoo.org modarchive.org modules.pl keygenmusic.net zxtunes.com mazemod.org amigaremix.com pouet.net plopbox.eu Modland
    1 point
  4. genius257

    IE Click on Lable

    Look into _IEGetObjByName and _IEAction
    1 point
  5. I was curious why the executables are that big and whether free version of Visual Studio can be set to produce smaller exes. So I rewrote your code in C(++) and compiled it. I ended up with 5.5kb executables after removing CRT dependencies (by using Taylor series to approximate sin and cos) Pythagoras.zip I hate default settings ...shit.
    1 point
  6. @bloopie, 1st easiest solution: pre-check one of the radio options as default. 2nd easiest solution: start with the button disabled. when you process $msg, if a message came from one of the radio options then it means it was checked, so enable the button. this can be done only once; a user cannot un-check all radio options. like this: #include <IE.au3> #include <ButtonConstants.au3> #include <ComboConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <MsgBoxConstants.au3> HotKeySet("{f1}", "Terminate") Global $Vendor = 'http://172.16.128.1/vendors.html' Global $Combo Global $idComboRead = GUICtrlRead($Combo) #Region ### START Koda GUI section ### Form=C:\Users\****\Desktop\KODA.kxf $Form1 = GUICreate("Press F1 to Exit!", @DesktopWidth, (@DesktopHeight - 55)) Global $Input1 = GUICtrlCreateInput("", 40, 48, 161, 21) GUICtrlSetCursor(-1, 5) $Label1 = GUICtrlCreateLabel("Please Enter Part Number Below", 40, 24, 158, 17) Global $GOButton = GUICtrlCreateButton("GO", 280, 32, 97, 25) GUICtrlSetCursor(-1, 0) GUICtrlSetState(-1, $GUI_DISABLE) ; >>>>> ADDED Global $GWC = GUICtrlCreateRadio("GWC", 480, 30, 57, 17) Global $ARC = GUICtrlCreateRadio("ARC", 480, 55, 73, 17) Global $Primo = GUICtrlCreateRadio("Primo", 592, 55, 97, 17) Global $WAWHAW = GUICtrlCreateRadio("Wood", 592, 30, 99, 17) ; moved here from two lines below, to create all radio optinos in sequence $Combo = GUICtrlCreateCombo("default loc", 800, 32, 201, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL)) GUICtrlSetData($Combo, "location1|location2|location3|location4|location5", "default loc") Global $Group1 = GUICtrlCreateGroup("WAREHOUSE", 456, 5, 265, 75) GUICtrlSetFont(-1, 10, 900, 4, "MS Sans Serif") GUICtrlSetColor(-1, 0x0000FF) GUICtrlCreateGroup("", -99, -99, 1, 1) Global $oIE = _IECreateEmbedded() Global $Object = GUICtrlCreateObj($oIE, 10, 100, (@DesktopWidth - 20), (@DesktopHeight - 128)) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### #cs Global $wrhse1 = GUICtrlRead($GWC) ;used the wrhseX variables unsuccessfully Global $wrhse2 = GUICtrlRead($ARC) Global $wrhse3 = GUICtrlRead($WAWHAW) Global $wrhse4 = GUICtrlRead($Primo) #ce While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $WAWHAW GUICtrlSetState($GOButton, $GUI_ENABLE) ; >>>>> ADDED Local $answer1 = MsgBox($MB_YESNO + $MB_ICONQUESTION + $MB_TASKMODAL, 'Wood', 'Clicking "YES" will log in with the *** account!' & @CRLF & @CRLF & 'Do you want to log in with the *** Account?', 15) If $answer1 = $IDYES Then _IENavigate($oIE, "about:blank") _IENavigate($oIE, $Vendor) _IELinkClickByIndex($oIE, 14) Else ContinueLoop EndIf Case $Primo GUICtrlSetState($GOButton, $GUI_ENABLE) ; >>>>> ADDED Local $answer2 = MsgBox($MB_YESNO + $MB_ICONQUESTION + $MB_TASKMODAL, 'Primo', 'Clicking "YES" will log in with the *** account!' & @CRLF & @CRLF & 'Do you want to log in with the *** Account?', 15) If $answer2 = $IDYES Then _IENavigate($oIE, "about:blank") _IENavigate($oIE, $Vendor) _IELinkClickByIndex($oIE, 11) Else ContinueLoop EndIf Case $GWC, $ARC ; >>>>> ADDED GUICtrlSetState($GOButton, $GUI_ENABLE) ; >>>>> ADDED Case $GOButton GO_Button() EndSwitch WEnd Func GO_Button() If GUICtrlRead($Combo) = "location1" And GUICtrlRead($GWC) = $GUI_CHECKED Then _IENavigate($oIE, "about:blank") _IENavigate($oIE, $Vendor) _IELinkClickByIndex($oIE, 5) ElseIf GUICtrlRead($Combo) = "Default loc" And GUICtrlRead($GWC) = $GUI_CHECKED Then _IENavigate($oIE, "about:blank") _IENavigate($oIE, $Vendor) _IELinkClickByIndex($oIE, 6) ElseIf GUICtrlRead($Combo) = "location2" And GUICtrlRead($GWC) = $GUI_CHECKED Then _IENavigate($oIE, "about:blank") _IENavigate($oIE, $Vendor) _IELinkClickByIndex($oIE, 7) ElseIf GUICtrlRead($Combo) = "location3" And GUICtrlRead($GWC) = $GUI_CHECKED Then _IENavigate($oIE, "about:blank") _IENavigate($oIE, $Vendor) _IELinkClickByIndex($oIE, 8) ElseIf GUICtrlRead($Combo) = "location4" And GUICtrlRead($GWC) = $GUI_CHECKED Then _IENavigate($oIE, "about:blank") _IENavigate($oIE, $Vendor) _IELinkClickByIndex($oIE, 9) ElseIf GUICtrlRead($Combo) = "location1" And GUICtrlRead($ARC) = $GUI_CHECKED Then _IENavigate($oIE, "about:blank") _IENavigate($oIE, $Vendor) _IELinkClickByIndex($oIE, 0) ElseIf GUICtrlRead($Combo) = "Default loc" And GUICtrlRead($ARC) = $GUI_CHECKED Then _IENavigate($oIE, "about:blank") _IENavigate($oIE, $Vendor) _IELinkClickByIndex($oIE, 1) ElseIf GUICtrlRead($Combo) = "location2" And GUICtrlRead($ARC) = $GUI_CHECKED Then _IENavigate($oIE, "about:blank") _IENavigate($oIE, $Vendor) _IELinkClickByIndex($oIE, 2) ElseIf GUICtrlRead($Combo) = "location3" And GUICtrlRead($ARC) = $GUI_CHECKED Then _IENavigate($oIE, "about:blank") _IENavigate($oIE, $Vendor) _IELinkClickByIndex($oIE, 3) ElseIf GUICtrlRead($Combo) = "location4" And GUICtrlRead($ARC) = $GUI_CHECKED Then MsgBox($MB_ICONWARNING + $MB_TASKMODAL, 'ERROR!!', "Account does not exist!!" & @CRLF & @CRLF & "Only existing accounts will load!!", 15) ElseIf GUICtrlRead($Combo) = "Monroe" And GUICtrlRead($ARC) = $GUI_CHECKED Then MsgBox($MB_ICONWARNING + $MB_TASKMODAL, 'ERROR!!', "Account does not exist!!" & @CRLF & @CRLF & "Only existing accounts will load!!", 15) ElseIf GUICtrlRead($Combo) = "Spring Valley" And GUICtrlRead($GWC) = $GUI_CHECKED Then MsgBox($MB_ICONWARNING + $MB_TASKMODAL, 'ERROR!!', "Account does not exist!!" & @CRLF & @CRLF & "Use *** account for GWC/locationX!!", 15) EndIf EndFunc ;==>GO_Button Func Terminate() Exit EndFunc ;==>Terminate look for the lines ending with a comment ; >>>>> ADDED also, this may prove an interesting reading (start from the end):
    1 point
  7. In fairness, I'd despair if someone who can write an AutoIt script or even know what a script is, that could not find a mainstream and well supported language that can do everything AutoIt can and more, while supporting multithreading. People are disappointed when they learn there is no support for it, but that's all it is disappointment. You can spend 6 weeks trying to multithread in AutoIt or you can spend 6 weeks learning C++ or C# etc...
    1 point
  8. Search _WinAPI_ChangeWindowMessageFilterEx() or ... #include <APIConstants.au3> #include <Constants.au3> #include <GUIConstantsEx.au3> #include <WinAPIEx.au3> #include <WindowsConstants.au3> Global $__aGUIDropFiles = 0 Example() Func Example() Local $hGUI = GUICreate('WM_DROPFILES', 400, 200, Default, Default, Default, $WS_EX_ACCEPTFILES) If IsAdmin() Then _WinAPI_ChangeWindowMessageFilterEx($hGUI, $WM_DROPFILES, $MSGFLT_ALLOW) If IsAdmin() Then _WinAPI_ChangeWindowMessageFilterEx($hGUI, $WM_COPYGLOBALDATA, $MSGFLT_ALLOW) Local Const $iDrop = GUICtrlCreateLabel('', 0, 0, 400, 200) GUICtrlSetBkColor($iDrop, $GUI_BKCOLOR_TRANSPARENT) GUICtrlSetState($iDrop, $GUI_DROPACCEPTED) GUISetState(@SW_SHOW, $hGUI) GUIRegisterMsg($WM_DROPFILES, 'WM_DROPFILES') While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop Case $GUI_EVENT_DROPPED For $i = 1 To $__aGUIDropFiles[0] MsgBox($MB_SYSTEMMODAL, '', $__aGUIDropFiles[$i]) Next EndSwitch WEnd GUIDelete($hGUI) EndFunc ;==>Example Func WM_DROPFILES($hWnd, $iMsg, $wParam, $lParam) #forceref $hWnd, $lParam Switch $iMsg Case $WM_DROPFILES Local Const $aReturn = _WinAPI_DragQueryFileEx($wParam) If UBound($aReturn) Then $__aGUIDropFiles = $aReturn Else Local Const $aError[1] = [0] $__aGUIDropFiles = $aError EndIf EndSwitch Return $GUI_RUNDEFMSG EndFunc ;==>WM_DROPFILES
    1 point
×
×
  • Create New...