Jump to content

Arctor

Active Members
  • Posts

    65
  • Joined

  • Last visited

Arctor's Achievements

Wayfarer

Wayfarer (2/7)

0

Reputation

  1. Have a look at "GuiWrite" in the Helpfile. arctor
  2. Hi blitzer99 With SYSINTERNALS Filemon you can easily check out what Programm produces files on your harddrive. Filemon v6.1 There are more great tools for monitoring (e.g. Regmon) and they are all free. arctor
  3. That's right. Sorry. My mistake. Just realized this is not the Gui Forum. arctor
  4. bobheart, what about this? GUICreate("BUP", 320, 280) $label1 = GuiSetControl("label", "", 10, 10, 300, 20, 0x1000) $choose = GUISetControl ("button", "Choose Folder", 10,40,100,20) GuiSetControlNotify() $md = GUISetControl ("button", "Make Folder", 10,60,100,20) GuiSetControlNotify() ;---------------------------------------------------------- GuiShow() While GUIMsg() <> -3 $msg = GuiRead() Select ;------------------ Case $msg = $choose $backup_path = FileSelectFolder("Choose Backup Dir", "", 0) GuiWrite($label1,0,"Backuppath: " & $backup_path) ;------------------ Case $msg = $md $new_folder_name = InputBox("New Folder", "Enter new Foldername:") $where_to_put = FileSelectFolder("Where to create new Folder?", "", 0) $ret = DirCreate($where_to_put & "\" & $new_folder_name) If $ret = 1 Then $backup_path = $where_to_put & "\" & $new_folder_name GuiWrite($label1,0,"Backuppath: " & $backup_path) Else MsgBox(0, "!!!", "Error!") EndIf ;--------- EndSelect Wend Just an example. No errorhandling. arctor
  5. I remebered this Topic:Script to run as a service. At least you can use AT (commandline scheduling). I think it works when no user is logged in. BTW: If you want do download some files or pages you can comfortably use AutoIt's function 'URLDownloadToFile' or use the powerful tool 'wget' instead of starting IE. arctor
  6. I just tried it. Right. It works. I thougt before: A GuiSetControl("group",.....) is just for visualization. So, if I use a GuiSetControl("group",.....) in the right place in my script (before each radio group) I don't need a GUISetGroup(). Is that right? arctor
  7. Think it is grouped till the next GUISetGroup(). I tried it without a GuiSetControlEx().When you take away the 2nd GUISetGroup() in the example of Cyberslug, then all six radios are one group although there is a GuiSetControlEx() after the first three radios. arctor
  8. It's all in the helpfile. See Gui Reference. There is an example script with a lot of controls. And you have to use a *.bmp file. No chance for jpeg and gif (I think). arctor
  9. In the latest version you need a GuiShow() before the While loop so that the Gui comes up. arctor
  10. FileChangeDir(@ScriptDir) GUICreate("Title", 520, 260) $edit1 = GUISetControl("edit", "", 10, 20 ,500, 230) ;------------------------------------------------- $var = FileRead("list.txt", FileGetSize("list.txt")) GuiShow() GuiWrite($edit1,0,$var) While GUIMsg() <> -3 Wend BTW: It's easy to find in the Helpfile. Look FileRead and GuiWrite. arctor
  11. Groumphy: RunWait(@comspec & " /c dir /d /n ..." Ther is no /d and /n Option in DIR on Win95/98 arctor
  12. Ahh, I understand... arctor
  13. Why not sending keystrokes? It's mostly more easy. Starting Adaware, sending 8 TABS and then a SPACE. arctor
  14. cowsmanaut: Maybe it depends on the router but I don't believe. All routers I work with don't give their assigned IP back to a tracert.The 1st you get is the local adress of the router and the 2nd hop you get is normaly a Gateway IP at your ISP. Did you really test the 2nd IP you get on a tracert with the IP that is assigned to your connect with your ISP? I ask because it's really interesting for me when it works at your place and not at mine. arctor
  15. Hi redndahead, here is just a small example to show how I use the LB_GET...stuff for multiple selects. $LBS_EXTENDEDSEL = 0x800 FileChangeDir(@ScriptDir) GUICreate("Title", 220, 300) $listbox1 = GuiSetControl ("list", "", 10,10,200,200,$LBS_EXTENDEDSEL) GUISetControlData($listbox1,"Item1|Item2|Item3|Item4|Item5|Item6") $OK = GUISetControl ("button", "OK", 10,200,100,20) GuiSetControlNotify() ;------------------------------------------------- GuiShow() While GUIMsg() <> -3 $msg = GuiRead() Select case $msg = $OK $LB_GETCOUNT = 0x0000018B $LB_GETSELCOUNT = 0x00000190 $LB_GETSEL = 0x00000187 $LB_GETTEXT = 0x00000189 $n = GUISendMsg($listbox1, $LB_GETCOUNT ,0, 0);count all items $n_sel = GUISendMsg($listbox1, $LB_GETSELCOUNT ,0, 0);count selected items ;----------------------- If $n_sel > 0 Then DIM $arr_sel_names[$n_sel] $i_sel = 0 for $i = 0 to $n-1 $selected = GUISendMsg($listbox1, $LB_GETSEL ,$i, 1);get state of each item IF $selected = 1 Then $arr_sel_names[$i_sel] = GUIRecvMsg($listbox1, $LB_GETTEXT ,$i, 1);if state is 1 (Item selected) get name of item and put into array $i_sel = $i_sel + 1 EndIf Next ;----------------------- ;---Output--------------------- $output = "" For $i = 0 to Ubound($arr_sel_names)-1 $output = $output & $arr_sel_names[$i] & @CRLF Next MsgBox (0, "Selected Items:", $output) EndIf ;------------------------------------------------------------- EndSelect Wend arctor
×
×
  • Create New...