Jump to content

dannyict

Members
  • Posts

    19
  • Joined

  • Last visited

Everything posted by dannyict

  1. you can use AutoIt Window Info (in the autoit folder) to get info about the window
  2. Thanks for the tips Used this and it's working on my computer, now need to test on another one Dim $ctrlsize $ctrlsize=ControlGetPos("[CLASS:Shell_TrayWnd]","","ReBarWindow321") ControlClick("[CLASS:Shell_TrayWnd]","","ReBarWindow321","secondary",1,$ctrlsize[2],$ctrlsize[3]*0.5) Send("{UP}") Send("{RIGHT}") Send("{DOWN}") Send("{ENTER}") Send("{DOWN}") Send("{DOWN}") Send("{DOWN}") Send("{DOWN}") Send("{DOWN}") Send("{ENTER}") WinWaitActive("New toolbar") Send("c:\folder"); choose folder Send("{TAB}") Send("{ENTER}") Ok, that did not work on another pc because the menustructure is different, so sending the up, down,etc is not an option What does work is this but then you still have to click and choose twice with the mouse Dim $ctrlsize $ctrlsize=ControlGetPos("[CLASS:Shell_TrayWnd]","","ReBarWindow321") ControlClick("[CLASS:Shell_TrayWnd]","","ReBarWindow321","secondary",1,$ctrlsize[2],$ctrlsize[3]*0.5) sleep (100) WinWaitActive("New toolbar") sleep (100) Send("c:\folder"); select folder Send("{TAB}") Send("{ENTER}")
  3. Thanks, but that would depend on what is there already or not? What I got so far Dim $ctrlsize $ctrlsize=ControlGetPos("[CLASS:Shell_TrayWnd]","","ReBarWindow321") ControlClick("[CLASS:Shell_TrayWnd]","","ReBarWindow321","secondary",1,$ctrlsize[2],$ctrlsize[3]*0.5) This will bring up the "Toolbars" but how do I select this and then the "New Toolbar" and create a new one
  4. I want to add a toolbar on the taskbar. I know I can do that by richtclick on the taskbar -> Toolbars -> New Toolbar and then choose what i want there (example c:\newtoolbar). Can this by done with Autoit? Sorry if it's a bit complicated Just trying to help a school with automating things.
  5. Thanks for the quick reply's, got it working now I used ShellExecute(@ScriptDir & "\page.html") ; Your page
  6. I'am trying to open a local htmlpage but don't know how I tried ShellExecute("page.html") and Run("page.html") and Fileopen("page.html") nothing seem to open the page, should work in Xp and Win7. Any suggestions? Thanks
  7. If you mean @DesktopCommonDir, I tried but it's the same problem WPI= Windows Post Install Wizard
  8. Trying to install a program and copy a file to desktop and it's working but when I put the compiled script in WPI the install runs fine but the file does not get copied to desktop. Anyone has an idea how to fix that? Thanks Here's the script ;Edukleuter RunWait("Edukleuter.exe /SILENT /SUPPRESSMSGBOXES /NORESTART /SP-") sleep (500) FileCopy("Edukleuters.lnk", @DesktopDir)
  9. thanks, will try that out and report back. Sorry did not work
  10. Is there a way to associate .swf with Internet Explorer in Autoit? I tried this but did not work ASSOC .swf=flash FTYPE flash=C:\Program Files\Internet Explorer\iexplore.exe Anyone got suggestions please?
  11. Well I used WPI in the first place for a series of programs to install, So I just split (probably not the most elegant way) Fist part Run("mmpersonal30-2e.exe") $w = 0 Do Sleep (1500) If Winexists("MindMan Personal - Setup", "Welcome to the MindMan") Then $w = 1 WinActivate("MindMan Personal - Setup", "Welcome to the MindMan") EndIf Until $w = 1 ;WinWaitActive("MindMan Personal - Setup", "Welcome to the MindMan") Send("{ENTER}") WinWaitActive("MindMan Personal - Setup", "Please read the following") Send("{ENTER}") WinWaitActive("MindMan Personal - Setup", "You may use") Send("{ENTER}") WinWaitActive("MindMan Personal - Setup", "To specify a different") Send("{ENTER}") WinWaitActive("MindMan Personal - Setup", "Program icon folder") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{ENTER}") WinWaitActive("MindMan Personal - Setup", "Setup Wizard now has enough") Send("{ENTER}") WinWaitActive("MindMan Personal - Setup", "the MindMan Team hopes") Send("{ENTER}") WinWaitActive("MindMan Personal - Setup", "MindMan Personal was successfully") Send("{ENTER}") then it goes to part 2 WinWaitActive("MindMan Personal") Send("!{F4}",0) WinWaitActive("README") Send("!{F4}",0) It works
  12. Thanks for all the advice and the lessons . Got it fixed.
  13. Sorry, installed the SciTe editor again and now I get more >"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\brol\mindmappersonal.au3" /autoit3dir "C:\Program Files (x86)\AutoIt3" /UserParams +>20:13:46 Starting AutoIt3Wrapper v.2.0.3.0 Environment(Language:0413 Keyboard:00000813 OS:WIN_7/Service Pack 1 CPU:X64 OS:X64) >Running AU3Check (1.54.19.0) from:C:\Program Files (x86)\AutoIt3 +>20:13:46 AU3Check ended.rc:0 >Running:(3.3.6.1):C:\Program Files (x86)\AutoIt3\autoit3_x64.exe "C:\brol\mindmappersonal.au3" !> Starting in DebugMode.. Line: @error-@extended: Line syntax 0001: 0-0: #AutoIt3Wrapper_Run_Debug_Mode=Y 0003: 0-0: Run("mmpersonal30-2e.exe") 0004: 0-0: $w = 0 0005: 0-0: Do 0006: 0-0: Sleep (1500) 0007: 0-0: If Winexists("MindMan Personal - Setup", "Welcome to the MindMan") Then 0008: 0-0: $w = 1 0009: 0-0: WinActivate("MindMan Personal - Setup", "Welcome to the MindMan") 0010: 0-1: EndIf 0011: 0-1: Until $w = 1 0013: 0-1: Send("{ENTER}") 0014: 0-0: WinWaitActive("MindMan Personal - Setup", "Please read the following") 0015: 0-0: Send("{ENTER}") 0016: 0-0: WinWaitActive("MindMan Personal - Setup", "You may use") 0017: 0-0: Send("{ENTER}") 0018: 0-0: WinWaitActive("MindMan Personal - Setup", "To specify a different") 0019: 0-0: Send("{ENTER}") 0020: 0-0: WinWaitActive("MindMan Personal - Setup", "Program icon folder") 0021: 0-0: Send("{TAB}") 0022: 0-0: Send("{TAB}") 0023: 0-0: Send("{TAB}") 0024: 0-0: Send("{ENTER}") 0025: 0-0: WinWaitActive("MindMan Personal - Setup", "Setup Wizard now has enough") 0026: 0-0: Send("{ENTER}") 0027: 0-0: WinWaitActive("MindMan Personal - Setup", "the MindMan Team hopes") 0028: 0-0: Send("{ENTER}") 0029: 0-0: WinWaitActive("MindMan Personal - Setup", "MindMan Personal was successfully") 0030: 0-0: Send("{ENTER}") 0031: 0-0: WinWaitActive("MindMan Personal") 0032: 0-0: Send("!{F4}",0) 0033: 0-0: WinWaitActive("README.TXT - Kladblok") then it stops until I click on the readme.txt and then it finishes
  14. Sorry am a bit lost here, where do I see the errors or how do I get that console output? Thanks for the effort people, still much to learn
  15. thanks for the reply, did not get anything
  16. thanks, tried that Winclose and even Winkill, still the same. With Send("!{F4}") still the same. Very strange.
  17. Hi, I am trying to close the readme.txt and the programgroup window of Mindman Personal after installation (http://www.gr8ict.com/downloads/mmpersonal30-2e.exe) However it won't work...am also new at this and yes i checked the manual here's the code ;Mindman Personal Run("mmpersonal30-2e.exe") Do Sleep (1500) If Winexists("MindMan Personal - Setup", "Welcome to the MindMan") Then $w = 1 WinActivate("MindMan Personal - Setup", "Welcome to the MindMan") EndIf Until $w = 1 ;WinWaitActive("MindMan Personal - Setup", "Welcome to the MindMan") Send("{ENTER}") WinWaitActive("MindMan Personal - Setup", "Please read the following") Send("{ENTER}") WinWaitActive("MindMan Personal - Setup", "You may use") Send("{ENTER}") WinWaitActive("MindMan Personal - Setup", "To specify a different") Send("{ENTER}") WinWaitActive("MindMan Personal - Setup", "Program icon folder") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{ENTER}") WinWaitActive("MindMan Personal - Setup", "Setup Wizard now has enough") Send("{ENTER}") WinWaitActive("MindMan Personal - Setup", "the MindMan Team hopes") Send("{ENTER}") WinWaitActive("MindMan Personal - Setup", "MindMan Personal was successfully") Send("{ENTER}") ;Send("!c") WinWaitActive("MindMan Personal" , "FolderView") Send("!+{F4}",0) WinWaitActive("README - Kladblok" , "MindMan Personal - Take fast track to high performance") Send("!+{F4}",0) what am i doing wrong? Anyone can help?
×
×
  • Create New...