Jump to content

MISIIM

Active Members
  • Posts

    71
  • Joined

  • Last visited

MISIIM's Achievements

Wayfarer

Wayfarer (2/7)

0

Reputation

  1. Is there any way to put the tab icon on the right side? (I am using the _GUICtrlTab_ UDFs.) This is for an X button. Thanks.
  2. Does the _GUICtrlToolbar UDF support icons with alpha transparency? If I recall correctly they didn't before. Thank you.
  3. How does that tell me if a drive is a floppy?
  4. What is the best way to get information about a drive. Specifically, is it a floppy or network drive. Thank you.
  5. I am trying to write a VM somewhat like Java. I want to make native functions available to the visualized code. Would the easiest way be to do a switch statement on the number of arguments and in each case call the function with that many arguments? (Up to say 10 args.)
  6. I am trying to implement a DllCall style function in C++. Assuming I already have the Dll pointer, function name, etc. how would I do this basically. I'd bet that I'd need to use some assembly, but I've never used assembly in windows. Thanks.
  7. Look at the iTunes COM sdk.
  8. Thank you. It works. I needed this because I am writing a Commmand Prompt simulator so I need to parse the arguments that I am going to pass to another program.
  9. How do I read the return value from CommandLineToArgvW? It is supposed to return an array. http://msdn2.microsoft.com/en-us/library/b...391(VS.85).aspx Func _CommandLineToArgv($cmd) Local $ret = DllCall("shell32.dll", "wstr", "CommandLineToArgvW", "wstr", $cmd, "int*", 0); If @error Then Return SetError(1, 0, 0); If $ret[0] = 0 Then Return SetError(2, 0, 0); Local $retarr = $ret[0]; ; Copy data to AutoIt array. DllCall("kernel32.dll", "ptr", "LocalFree", "ptr", $retarr); EndFunc
  10. What am I doing wrong in this example? #include <GuiTab.au3> Opt("MouseCoordMode", 2); Local $gui = GUICreate(""); GUISetState(@SW_SHOW, $gui) Local $tab = _GUICtrlTab_Create($gui, 20, 20); _GUICtrlTab_InsertItem($tab, 0, "Bla"); Local $lastState; Local $user32 = DllOpen("user32.dll"); While True If _IsPressed("04", $user32) And Not $lastState Then If WinActive($gui) Then Local $hittest = _GUICtrlTab_HitTest($tab, -1, -1); MsgBox(0, $hittest[0], $hittest[1]); Local $hittest = _GUICtrlTab_HitTest($tab, MouseGetPos(0), MouseGetPos(1)); MsgBox(0, $hittest[0], $hittest[1]); EndIf $lastState = True Else $lastState = False EndIf If GUIGetMsg() = -3 Then ExitLoop; WEnd DllClose($user32)
  11. Yes it is. _ArraySort is too slow for my purposes.
  12. Does anyone know of a sorting algorithm that would be faster for sorting files/folders that are already mostly in order? Thanks.
  13. Just use ShellExecuteWait instead of ShellExecute.
  14. In that case if you use the beta I think they will not pause.
  15. Try using #include "tray.au3" instead of #include <tray.au3>
×
×
  • Create New...