Jump to content



Photo

WinCreate()


  • Please log in to reply
6 replies to this topic

#1 RealisT

RealisT

    Wayfarer

  • Active Members
  • Pip
  • 71 posts

Posted 09 January 2008 - 03:44 PM

As far as I can determine, AutoIt v3 has no command dedicated to opening/creating a simple window.

PROPOSED:

Opens/Creates a window.

WinCreate ( ["dirPath"] [, flag]] )

Parameters
dirPath [optional] The directory displayed in the window.
flag [optional] The "show" flag of the window:
@SW_HIDE = Hidden window
@SW_MINIMIZE = Minimized window
@SW_MAXIMIZE = Maximized window

Using WinCreate with no arguments [i.e., WinCreate() ] opens a window showing the current working directory. Macros such as @DesktopDir, @ScriptDir, etc. as well as variables could be used for the path.





#2 Jos

Jos

    oh joy ...

  • Developers
  • 21,047 posts

Posted 09 January 2008 - 04:00 PM

GUICreate() ? :)

Visit the SciTE4AutoIt3 Download page for the latest versions                                                                 Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)


#3 weaponx

weaponx

    I'm coming for blood, no code of conduct, no law.

  • MVPs
  • 5,366 posts

Posted 09 January 2008 - 04:00 PM

Run('explorer.exe "c:\windows"', @ScriptDir, @SW_MAXIMIZE)

#4 Fossil Rock

Fossil Rock

    ASCII a stupid question,… get a stupid ANSI.

  • Active Members
  • PipPipPipPipPipPip
  • 1,084 posts

Posted 09 January 2008 - 04:13 PM

Do you mean like opening a CMD prompt ?

Agreement is not necessary - thinking for one's self is!

Posted Image

Posted Image


#5 weaponx

weaponx

    I'm coming for blood, no code of conduct, no law.

  • MVPs
  • 5,366 posts

Posted 09 January 2008 - 04:50 PM

Run('cmd.exe /K cd "c:\windows"', "", @SW_SHOW)

#6 Valik

Valik

    Former developer.

  • Active Members
  • PipPipPipPipPipPip
  • 18,879 posts

Posted 11 January 2008 - 11:55 PM

Moving to the rejected forum since there's a remarkable lack of explanation on this one. In any event, there's a very good chance we aren't going to implement whatever it is the user wants anyway.

#7 therks

therks

    Witty quote

  • Active Members
  • PipPipPipPipPipPip
  • 2,163 posts

Posted 13 January 2008 - 12:17 AM

Run('explorer.exe "c:\windows"', @ScriptDir, @SW_MAXIMIZE)

Even simpler:
ShellExecute(@ScriptDir)

Or maximized:
ShellExecute(@ScriptDir, '', '', '', @SW_MAXIMIZE)





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users