Jump to content

Raider

Members
  • Posts

    19
  • Joined

  • Last visited

Everything posted by Raider

  1. To define switches you can use the cmdline[] array. cmdline[0] returns the total numbers of switches that your script is called with. For exampe "yourscript.exe nr1 nr2 nr3 nr4" will result in cmdline[0] = 4 cmdline[1] = nr1 cmdline[2] = nr2 cmdline[3] = nr3 cmdline[4] = nr4 if cmdline[0] = 0 then msgbox(0, "Error", "No paramters defined!") exit else if cmdline[1] = "/s" then ; do yoou silent install endif if cmdline[1] = "/l" then $install_location = cmdline[2] ; so your install to $install_location endif endif To install your script to another location via this snippet use youscript.exe /l YourLocation
  2. I suggest you use the send() command. Futher reference can be found in the help file... If you understand German better then English drop me a line at sad.raider@gmx.de
  3. Ah, OK... I was afraid that I was messing things up
  4. No Problem Sorry for bugging again, but is it possible that progressbars are somewhat messed up? When I try to display one I just get a small window in the low right corner of my screen (actually just a title bar) and the place where I want my bar is just empty... This little window has the classname "classname=msctls_progress32" GuiCreate("Prcbartest", 500, 500) GuiSetControl("progress", "empty", 5, 5, 200, 20) GuiShow() sleep(5000) Anyone able to reproduce?
  5. I finally found something that can create those AVI files. You can get it here: http://www.bloodshed.net/avi.zip It creates an AVI with a bunch of BMP or ICO files Thanks for your great support -Raider
  6. Yep, i tested it too and it did not work. What do you mean by "real animation tool"? Or, what would be even better... Is it possible to play .gif files? You know, not only those with one frame but animated ones.
  7. I got the shell32.dll clips and the inetconnect.avi running by reinstalling AU3GUI When I try to play another .avi file I get a windows error message that says that my clip is not a valid windows file and that I should check that with my windows installation disk... I tried several files with different compressions (DivX, Xvid, uncompressed) and nothing works (I can't provide an exact errormessage because I have to translate it but this is as close a sit gets: AutoIt v3: AutoIt3-gui.exe - Image corrupt The application or DLL d:\Scripts\r-tool\GUI\dtuc.avi is not a valid Windows-File. Check this with the installation disk. [OK]" Thanks for all the help
  8. This code produces an empty GUI for me I linked all the files to their paths to make sure but no luck... - What is "shell32.dll|150" going to look like when it works? For what dows the |150 stand?
  9. The window is just blank but the two buttons are there. I can click them but nothing happens.
  10. I'm very interested in the new GuiSetControl("avi"...) function, but the provided example is not working for me. I tried to change some things but no luck with that. Currently running Win2k, SP 4. Any ideas?
  11. There are some tools that can record all actions done on a PC and repeat them when requested. Try a search for Mouse Marco or Marco Record.
  12. Thats works fine, thanks It's a litte more work and needs some adjustment for some special cases but it's great, thanks.
  13. Hmmm... I think some working with the help file included would help you a lot... But, OK: $waittime = InputBox("Insert time to wait", "Enter the time in milliseconds you want to wait between click one and two") MouseClick("left") ; This is your first click sleep($waittime) ; Wait for $waittime milliseconds MouseClick("left") ; This is you second click exit ; Exit the script...
  14. Hmmm I already tried that and 1. It flickers 2. It's too CPU intensive... I want to display an animated 'please wait' screen to the user and I think it's not good when the animation is using more CPU-Power then the operation I want the user to wait for
  15. Hi everybody, I'm trying to use SplashImageOn() with an animated gif to show a kind of 'please wait' message to the user. I've got an animated gif thats 200w, 100h, approx. 12 frames and is around 300kb. When I call SplashImageOn() the first image is displayed but the rest of my frames are not displayed. Does anyone know how to animate my gif? I tried several other animated gif but there was no animation... -Raider
  16. It would be a lot easier if you could give the exact error message. And try to put the domain name in RunAsSet() in quotes...
  17. I did something similar with SplashTextOn() You can also make sure that your timing is always accurate when the computer slows down during a CPU intensive operation when you assign a variable to the current seconds and do a do...until loop like this while 1 ; Do an infinite loop $currenttime = @sec ; Set the current value of seconds to $currenttime do ; Initiate a do...until loop sleep(20) ; Wait 20ms over and over until... until $currenttime <> @sec ; ...the $currenttime var. is NOT longer equal with the current second SPlashTextOn("My Timer", "The current time is: "& @hour &":"& @min &":"& @sec &"") ; Then display a new SplashText wend ; End of loop
  18. Yeah, thanks... I think that will work. I'll have to add some more vars and for...next loops but I think it's OK I was looking for a command like ClearAllEnv() but I guess i'll have to be confident with that. If somebody has a quicker solution just post it, please Edit: Ok, I wrote some functions... They are not that professional but maybe someone finds them useful... ; ###### GUI-FUNCTIONS ###### func g_text ($obj, $text) ; Usage: g_test(1, "This is my text for object 1") EnvSet("OBJ"& $obj &".text", $text) $g_text_set=1 endfunc func g_data ($obj, $datanum, $data) EnvSet("OBJ"& $obj &".data"& $datanum &"", $data) $g_data_set=1 endfunc func g_pos ($obj, $x, $y) ; Usage (3, 15, 20) to set obj 3 to 15/20 EnvSet("OBJ"& $obj &".x", $x) EnvSet("OBJ"& $obj &".y", $y) $g_pos_set=1 endfunc func g_size ($obj, $w, $h) EnvSet("OBJ"& $obj &".w", $w) EnvSet("OBJ"& $obj &".h", $h) $g_size_set=1 endfunc func g_file ($obj, $text) EnvSet("OBJ"& $obj &".file", $text) $g_file_set=1 endfunc func g_type ($obj, $type) EnvSet("OBJ"& $obj &".type", $type) $g_type_set=1 endfunc func guititle ($titel) EnvSet("GUI.Title",$titel) $guititle_set=1 endfunc func g_focus ($focus) EnvSet("GUI.Focus", $focus) $g_focus_set=1 endfunc func g_disableoe ($eventobj, $eventnumber, $targetobj) ; Usage g_disableoe(1, 1, 5) To disable obj 5 when obj1 changes. The second number is the number of disabloeoe-events for obj 5 EnvSet("OBJ"& $eventobj &".disable"& $eventnumber &"", $targetobj) $g_disableoe_set=1 endfunc func g_enableoe ($eventobj, $eventnumber, $targetobj) EnvSet("OBJ"& $eventobj &".enable"& $eventnumber &"", $targetobj) $g_enableoe_set=1 endfunc func g_disabled ($obj) EnvSet("OBJ"& $obj &".disabled", "1") $g_disabled_set=1 endfunc func g_submit ($obj) EnvSet("OBJ"& $obj &".submit", "1") $g_submit_set=1 endfunc func g_close ($obj) EnvSet("OBJ"& $obj &".close", "1") $g_close_set=1 endfunc func g_cancel ($obj) EnvSet("OBJ"& $obj &".cancel", "1") $g_cancel_set=1 endfunc func g_selected ($obj) EnvSet("OBJ"& $obj &".selected", "1") $g_selected_set=1 endfunc func g_hidden ($obj) EnvSet("OBJ"& $obj &".hidden", "1") endfunc func guiicon ($icon) EnvSet("GUI.icon", $icon) $g_guiicon_set=1 endfunc func guisize ($w, $h) EnvSet("GUI.w", $w) EnvSet("GUI.h", $h) $guisize_set=1 endfunc func guidata ($datamode) EnvSet("GUI.action", $datamode) $guidata_set=1 endfunc func guistart () FileInstall("au3gui.exe", "c:\au3gui.exe", 1) AutoItWinSetTitle("AU3GUI...") runwait("c:\au3gui.exe") FileDelete("c:\au3gui.exe") ; Cleanup! EnvSet("GUI.title",$progname) EnvSet("GUI.focus","") EnvSet("GUI.action","") EnvSet("GUI.file","") For $a = 1 to 15 EnvSet("OBJ" & $a & ".type","") EnvSet("OBJ" & $a & ".tooltip","") EnvSet("OBJ" & $a & ".hidden","") EnvSet("OBJ" & $a & ".selected","") EnvSet("OBJ" & $a & ".disabled","") EnvSet("OBJ" & $a & ".text","") EnvSet("OBJ" & $a & ".close","") EnvSet("OBJ" & $a & ".cancel","") EnvSet("OBJ" & $a & ".submit","") EnvSet("OBJ" & $a & ".x","") EnvSet("OBJ" & $a & ".y","") EnvSet("OBJ" & $a & ".w","") EnvSet("OBJ" & $a & ".h","") for $b = 1 to 15 EnvSet("OBJ"& $a &".data"& $b &"", "") EnvSet("OBJ"& $a &".disable"& $b &"", "") EnvSet("OBJ"& $a &".enable"& $b &"", "") EnvSet("OBJ"& $a &".hide"& $b &"", "") EnvSet("OBJ"& $a &".show"& $b &"", "") next Next endfunc Have fun and thanks again for support.
  19. Hi folks, I'm having some trouble with AU3GUI. AU3GUi workes with env vars that will exist until my script exists. The problem I'm running into is that I want to call several GUIs before I quit my script. Because all the env vars are still assigned I get some really messed up results and buttons/boxes/labels I used in one GUI before but one GUI later, I don't need them anymore. Well, let's say I have GUI A and B. GUI A has Button1, Button2, Label1,2,3 and Combo1. GUI B should have Button1, Label1 and List1. Because all the vars from GUI A still exist, GUI B has: Button1, Button2, Label1,2,3, Combo1, List1. I think it's pretty obvious that GUI cannot be used in this state. So, is there a way to flush all recently set envvars without using an external .exe or quitting my script? I thought about a do...until loop that checks for each var and resets it with EnvSet("var", "") but this will get really complicated when I have a envvar with 3 variable values. Any ideas?
×
×
  • Create New...