Jump to content

aleksa

Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by aleksa

  1. Thanks for you replies. I'm glad I figured that out Melba32 code will definitely be in my template list
  2. I'm just curious why this doesn't work. Why doesn't the program exit when exit menu is clicked. What am I doing wrong? #include #include #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 221, 173, 192, 114) $exit = GUICtrlCreateMenu("Exit") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $exit ;This doesn't get called Exit EndSwitch WEnd
  3. Yes, Thank you very much
  4. I created a multidimenstional listbox (by adding $LBS_MULTICOLUMN when creating it). I know that by using _GUICtrlListBox_AddString() you can add strings to listbox, but you are not able to select in which column you want the string to be added, and it automatically adds new items to the first. How can I add items to the second column?
  5. Thanks PhoenixXL, very clean code and easy to understand. That's just what I was looking for.
  6. Thanks, will check it out. Looks like that is what I need.
  7. Like I've said, I'm trying to make the end-user (if thats the right term)able to change the hotkeys without editing the code.
  8. I was actually just testing out this _IsPressed function I have randomly stumbled upon. It looks as a better way than HotKeySet as HotKeySet gave me a headache as I was automating a task and HotKeySet coulnd respond.
  9. Yes, I am aware of that, but I'm looking for a function which will convert a regular string to a string with a virtual key code.
  10. I've found this amazing _IsPressed function (3rd party) and in order to use it you need to give it parameters (string) in virtual key code of the keyboard button you want to check if it is pressed. I am using this function as a replacement for HotKeySet, and I want user to be able to change the button which will trigger some random function (I want to change the hotkey in other words) and therefore user will be able to type the name of the button he wants to set as a hotkey in an input box, and what he has typed in (string) will be stored in a variable. As _IsPressed only accepts virtual key codes I need to convert this string to a virtual key code string. Is there a simple way to do it or I will need to create a big array? Has anyone created a script that will do that?
  11. I'm creating my own form. Trying to create a program that will look like a windows formatting dialogue in order to prank my friends I removed the maximize and minimize buttons to resemble the original, but i can't find the way to remove the icon. I appreciate the help, but it looks like it doesn't work. Judging by the name of the function I guess that is what I need. I've tried to use the script but, correct me if I'm wrong, the function GetClassLong does not exist. Thanks anyway
  12. This may sound noobish. Is it possible to remove icon in the form you know, the icon on the top-left part when you start the program. I know you can change it but i havent seen anyhing in the help file about removing it.
×
×
  • Create New...