FileSelectFolder - how to come back to old style? [solved]

Recommended Posts

Hello, is there any way to achieve in current AutoIt versions old style looking FileSelectFolder, like in v.3.3.9.5?
I can't operate on COMs, maybe anyone knows the way, has a code?
It looked like this (attachement):

I don't like new style, some features don't work for me properly.

Edited by monter

monter.FM [font="Tahoma;"]Full programs:[/font][font="'Microsoft Sans Serif';"] LogOnOff - keeps alive user session, after set time it performs logoff (instead of locking [acronym="Personal Computer"]PC[/acronym], useful in some corporations working with [acronym="Active Directory"]AD[/acronym]).[/font] ČharCönvěr - character set converter. [font="'Microsoft Sans Serif';"]CDTray - automated opening/closing the [acronym="Compact Disc"]CD[/acronym] tray.[/font] [font="'Microsoft Sans Serif';"]Example scripts: [/font][font="'Microsoft Sans Serif';"]RecentFolders - managing recently used folder list with combobox.[/font] [font="'Microsoft Sans Serif';"]AutoUpdater - periodic auto-checking, auto-updating and auto-relaunching newest script version.[/font] Changed host from monter.homeip.net to monter.homenet.org - replace address in my scripts to get back them to work.

Share on other sites

Suggest you try to use the API directly.

Here is a start.

Monkey's are, like, natures humans.

Share on other sites

How about using a flag # of 5 for the third parameter?

$var = FileSelectFolder("Choose a folder.", "", 5) The truth has been suppressed since the dawn of time. Share this post Link to post Share on other sites How about using a flag # of 5 for the third parameter? $var = FileSelectFolder("Choose a folder.", "", 5)

Because all the flags are for XP only.

Monkey's are, like, natures humans.

Share on other sites

Because all the flags are for XP only.

Seems to work for me on my Win7 64 bit system...

The truth has been suppressed since the dawn of time.

Share on other sites

For me I get the same dialogue for both default and 5

Monkey's are, like, natures humans.

Share on other sites

Go back to his screenshot. The default for me does not include the folder section above the buttons. The 5 parameter adds that part in for me. On my system, the dialog is exactly like his screenshot. Except mine is in English.

The truth has been suppressed since the dawn of time.

Share on other sites

My machine is 32 bit OS.

Could be a bug to do with 64 bit, but might also have been fixed in a later beta.

Or may not be a bug at all.

But It is supposed to use Vista+ style dialogue by default if available.

Monkey's are, like, natures humans.

Share on other sites

The version of the OS may have something to do with it. I am not sure. There's probably someone who knows and is laughing at us like we're the 3 stooges. Anyways, below are screenshots of what I see. I put the folder browser right under the script that was used to make it.

Default:

"5" option:

The truth has been suppressed since the dawn of time.

Share on other sites

That looks like XP.

Mine for both is.

Monkey's are, like, natures humans.

Share on other sites

I apologize.

I have the latest version of AutoIt on my work computer. At home, I have an older version. You are correct, JohnOne, they are the same. I screwed up. Sorry for the confusion.

The truth has been suppressed since the dawn of time.

Share on other sites

Try this, straight from china

http://www.autoitx.com/archiver/tid-4897.html

Yes! That's it!

_FileSelectFolder('demoAPI', 0, 6)

and it looks like I wanted to see:

Thank you!

monter.FM [font="Tahoma;"]Full programs:[/font][font="'Microsoft Sans Serif';"] LogOnOff - keeps alive user session, after set time it performs logoff (instead of locking [acronym="Personal Computer"]PC[/acronym], useful in some corporations working with [acronym="Active Directory"]AD[/acronym]).[/font] ČharCönvěr - character set converter. [font="'Microsoft Sans Serif';"]CDTray - automated opening/closing the [acronym="Compact Disc"]CD[/acronym] tray.[/font] [font="'Microsoft Sans Serif';"]Example scripts: [/font][font="'Microsoft Sans Serif';"]RecentFolders - managing recently used folder list with combobox.[/font] [font="'Microsoft Sans Serif';"]AutoUpdater - periodic auto-checking, auto-updating and auto-relaunching newest script version.[/font] Changed host from monter.homeip.net to monter.homenet.org - replace address in my scripts to get back them to work.

Share on other sites

Glad Celestial Empire and I could help

Create an account

Register a new account

• Similar Content

• By Fin
Hello...:)
I have done extensive searches on this issue before posting but have not found a solve. Any help will be greatly appreciated.
;I have a valid AutoIt support question and kindly provided the details of my system: ;AutoIt Version: V3.3.14.2 [X32] ;Windows Version: WIN_VISTA [X86] ;Language: English (0409) #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Global $form = GUICreate("O_o", 146, 66, -1, -1) Global$inputNorth = GUICtrlCreateInput("", 12, 24, 53, 21) Global $btnSet = GUICtrlCreateButton("Set Controls", 72, 16, 65, 33,$BS_DEFPUSHBUTTON) GUISetState(@SW_SHOW) HotKeySet("{UP}","_north") While 1 $nMsg = GUIGetMsg() Switch$nMsg Case $btnSet Global$goNorth= "-" & GUICtrlRead($inputNorth) MsgBox(0,"", "go north: " &$goNorth) Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd ;functions Func _north()$pos=MouseGetPos() MouseMove($pos[0],$pos[1]$goNorth,0) ;-results in syntax error EndFunc As you can see,$goNorth gets its value from $inputNorth (the MsgBox shows it works) But I cannot get MouseMove() to take$goNorth
If I use: MouseMove($pos[0],$pos[1]$goNorth,0) --I get a syntax error. If I use: MouseMove($pos[0], $pos[1] &$goNorth,0) --I no longer get a syntax error, but that's not right so the function, (likely), moves by zero.
So is there a way I can get MouseMove() to take a variable for that parameter?
Thank you in advance should you choose to help!
• By Gringo
Hi,
I'm trying to:
-Select a file in a folder (to store it to an ini file)
-Write the file on an ini
-Copy files to the folder selected by the user
instead of using FileOpenDialog then FileSelectFolder, I was wondering if it was possible to do the whole thing only with FileOpenDialog spliting the value returned in 2 variables. I got something like that for the first part (select a file and store it to an ini file)
Local $message = "Select your executable" Local$pathk = FileOpenDialog($message, "C:" & "", "Select the executable you want to terminate (*.exe)", 1 + 4) Local$path = "None" ;ici je dois copier les fichiers $split = StringSplit($pathk, "\") $tokill =$split[$split[0]] If @error Then MsgBox(4096, "", "No Executable chosen") Else MsgBox(4096, "",$pathk & " Will be terminated " & @LF & @LF & "Press OK to EXIT ") IniWrite(@ScriptDir & "\path.ini", "Torun", "path", $path) IniWrite(@ScriptDir & "\path.ini", "Tokill", "pathk",$tokill) EndIf As you can see I manage to split the value returned by FileOpenDialog to have only the exe but as a noob I can't manage to get the path to copy the files I need to the same path.
Any idea? ^^
• By CodingMonkey81
All,
I'm working on automating the update process for a piece of software that we use at my company. The installer file always contains the version number as a part of the file name (eg InstallFile_9342.msi) and the numbers always change with every update.
How do I use AutoIt to run the program? I know I can't use a wildcard in place of the numbers when using the "Run" command.
I tried
Local $aArray = _FileListToArray("C:\path\to\file", "InstallFile_*.msi", 0, 1) Run("$aArray") and I also tried
Local $bInstall = FileFindFirstFile("InstallFile_*.msi") Run("$bInstall") and neither worked.
Can someone please point me in the right direction? I've done some searching on the forum and haven't found anyone in a similar situation before.
Thanks!
• By RHolmes
I have a program that has a control that changes color a few seconds into running. So ideally, I would poll this to tell when an event has occurred.
I can't seem to retrieve the correct color value for a control. It always seems to return white indicating that its selecting somewhere else in the window.
In the PixelGetColor call I'm adding half the width to the x value and subtracting half the height to the y value  in order to get the center of the control. (assuming the coords returned by ControlGetPos are top left - which i can't be sure of) But I've also tried without modifying the x/y and with changing the PixelCoordMode option to 2. Maybe I'm making a silly mistake and can't see it? Any help would be appreciated.
Code is below:
Opt("PixelCoordMode", 0)
FileChangeDir( "C:\Where\My\File\Is" );
Run( "MyProgram.exe" )
Local $hClient = WinWaitActive($CLIENT_TITLE, "", 10 )
Local $systemIndicatorClassNN= "[CLASS:Qt5QWindowIcon; INSTANCE:99]" Local$hSystemIndicator = ControlGetHandle ( $hClient, "",$systemIndicatorClassNN)
Local $xywh = ControlGetPos ($hClient, "", $hSystemIndicator ) For$i = 10 To 1 Step -1
$color = PixelGetColor ($xywh[0] + ($xywh[2]/2),$xywh[1] - ($xywh[3]/2),$hClient )
LogToFile( \$color )
Sleep( 2000 )
Next
• By VAN0
Hello.
I have a program XX that asks for user confirmation on exit, which hangs the system reboot/shutdown process until I confirm. So I decided create a autoit script that would automatically close that dialog and let the system reboot/shutdown.
The problem I'm facing is that my scripts now exits before the XX.
Is there a way delay script exit until the XX is closed but only when system is rebooting/shutting down?

Thank you.
×

• Wiki