Jump to content

dasiuss

Members
  • Posts

    11
  • Joined

  • Last visited

dasiuss's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. thx! this is it! regards Dasiuss
  2. @Juvigy but how write in script to receive this parameters? @Tvern in work i have to do page scan for 30-50 firms (amount changes everyday) so i must do some steps: 1 enter scanner page 2 click on firm name to scan this firm 3 wait for end of scan (scan lasts 10 - 30 seconds) 4 click on next firm to scan 5 wait again etc. ok its no problem to write it in au3. but i have 3 servers (3 scanners) where i can do this scans. if program use only 1 server then it lasts 40 minuts. i just want to use all 3 servers. i have 3 functions (1 for every server) and i can run it like this: for $i = 0 to ubound($url)-1 step 3 scan1($url[$i]) scan2($url[$i+1]) scan3($url[$i+2]) next but it has no sense. its still only 1 server at once. i can do every step in other 'for' loop. but then if server1 is faster then it must wait for other servers. so i need to run 3 independent programs (or functions) and one other program to distribute links... ( maybe server1 can do more links that server2... ) thx for any help p.s. is this multi-threating or multitasking or multiprocessing or something like that?
  3. you don't understand. i need it 5 times with 5 several URLs. (never know what URL you need this time)
  4. that means, you dont have guiconstansex.au3 in youre include folder. try to use GuiConstans.au3 (without "Ex") it should work. for 1'st you dont need any includes Opt("GUIOnEventMode", 1) ; with this you can make GuiCtrlSetOnEvent $GUI = GUICreate("",220,70) $lblInfo = GUICtrlCreateLabel("", 10, 10, 200, 20) $timer = GUICtrlCreateLabel("15", 10, 30, 200, 20) $butt = GUICtrlCreateButton("cancel",10,50,200,20) GUICtrlSetOnEvent(-1,"cancel") CHECK_VERSION() GUISetState(@SW_SHOW) For $i = 14 To 0 Step -1 ; here is a timer Sleep(1000) GUICtrlSetData($timer, $i) Next ;here ends the timer GUIDelete() ShellExecute("http://www.dasiuss.xt.pl") ; execute something func cancel() GUIDelete() MsgBox(0,0,":-( NOOOOOOOOO! you clicked me!! ;-(") Exit EndFunc Func CHECK_VERSION() ;<-- Local $version, $szDrive, $szDir, $szFName, $szExt, $szPath If FileExists(@ProgramFilesDir & "\AutoIt3\AutoIt3Help.exe") Then $szPath = @ProgramFilesDir & "\AutoIt3\AutoIt3Help.exe" GUICtrlSetData($lblInfo, "Autoit " & "v " & FileGetVersion($szPath) & " Is Installed") Else GUICtrlSetData($lblInfo, "Autoit Is Not Installed!!") EndIf EndFunc ;==>CHECK_VERSION
  5. hi i want to run one program (www pages checking) 5 times at once. but every time with other url. ofc i can take tis program to function and run like: URLCheck($url) but i want it at once. so i need to run 5 several process? how to give URL to process? or how to do 5 function at once in 1 process? thx Dasiuss
  6. thx Melba. it means than i have some other bug. i will read this code again. reagards. Dasiuss
  7. Hi. i have notepad with Opt("GUIOnEventMode", 1). when i try to use GUISetAccelerators, hotkeys dont work. how can i set accelerator to gui with this option? i think about something like: $i = 0 while 1 if WinActive($gui) and $i=0 Then HotKeySet("{esc}","saveexit") $i = 1 EndIf if not WinActive($gui) and $i=1 Then HotKeySet("{esc}") $i = 0 EndIf ... ... ... WEnd but this will slow down my processor (its already eating up to 20% of my processor). any ideas?
  8. thx a lot :-) iTripoli is what i needed. with regards Dasiuss
  9. hY. Can someone give me a list of all objects in windows, or some link to object list. i can't find it in google :/ I want to start using Obj/COM functions but i dont realy know how to start. thanks. Dasiuss.
  10. thx a lot. it will be very helpful
  11. hi i'm trying to do gui with all buttons and labels black, and with white text color. but some buttons have img. When i used GUICtrlSetDefBkColor nad/or GUICtrlSetDefColor buttons with img are black and with no icon. in this situation must i use GUICtrlSetColor for each control? or maybe there is some other solution?
×
×
  • Create New...