Jump to content

Recommended Posts

Posted (edited)

hey guys, i have a problem .

I want to search a file in a particular folder and after inserting the name  in the input box i want to make a drop down menu of all the matches and then select it and open it.

I need the full code .

so please anyone help me on this one.

:(

Edited by farhadrahman2
Posted
1 minute ago, farhadrahman2 said:

I need the full code .

Unlikely, this is a the "Help and Support Forum" and not a webshop for ordering software.

 

You need:

  • GuiCtrlCreateInput
  • _FileListToArray
  • a loop For...Next
  • GuiCtrlCreateListview and GuiCtrlCreateListviewItem
  • Shellexecute

There are some other solutions possible, but i think this is the best way. So begin reading helpfile about the named functions.

Posted (edited)

Guys I've got a problem.

I don't know what's happening to my code.

 

Here is my script

#include <GUIConstants.au3>
#include <ButtonConstants.au3>
#include <StaticConstants.au3>
#include <MsgBoxConstants.au3>
#include <FontConstants.au3>
#NoTrayIcon

PcHackz()

Func PcHackz()
FileInstall("images.jpg" , @TempDir & "\FXDZHXE.SYS")

Local $hgui = GUICreate("",590,200)
GUISetStyle($hgui,$WS_POPUP)
Local $idpic = GUICtrlCreatePic( @TempDir & "\FXDZHXE.SYS",1,1,600,250)
 GUICTrlSetState($idpic,$GUI_DISABLE)

Local $idcon = GUICTrlCreateLabel("",550,5,50,50)
GUICtrlSetCursor($idcon,0)
GUICtrlSetBkColor($idcon,$GUI_BKCOLOR_TRANSPARENT)


Local $idok = GUICtrlCreateInput("",5,50,370,30)
GUICtrlSetFont($idok,11)
GUICtrlSetTip(-1,"Type the name of the file you want to open")
Local $idac = GUICtrlCreateButton("Search",5,85,45,20)
Local $idfc = GUICtrlCreateButton("Open",55,85,45,20)

WinSetTrans($hGUI,"",210)
GUISetState(@SW_SHOW,$hGUI)



While 1
        Switch GUIGetMsg()

Case $idcon
FileDelete( @TempDir & "\FXDZHXE.SYS")

WinSetTrans($hGUI,"",475)
Sleep(50)
WinSetTrans($hGUI,"",465)
Sleep(50)
WinSetTrans($hGUI,"",455)
Sleep(50)
WinSetTrans($hGUI,"",445)
Sleep(50)
WinSetTrans($hGUI,"",435)
Sleep(50)
WinSetTrans($hGUI,"",425)
Sleep(50)
WinSetTrans($hGUI,"",415)
Sleep(50)
WinSetTrans($hGUI,"",405)
Sleep(50)
WinSetTrans($hGUI,"",395)
Sleep(50)
WinSetTrans($hGUI,"",385)
Sleep(50)
WinSetTrans($hGUI,"",375)
Sleep(50)
WinSetTrans($hGUI,"",365)
Sleep(50)
WinSetTrans($hGUI,"",355)
Sleep(50)
WinSetTrans($hGUI,"",345)
Sleep(50)
WinSetTrans($hGUI,"",335)
Sleep(50)
WinSetTrans($hGUI,"",325)
Sleep(50)
WinSetTrans($hGUI,"",315)
Sleep(50)
WinSetTrans($hGUI,"",305)
Sleep(50)
WinSetTrans($hGUI,"",295)
Sleep(50)
WinSetTrans($hGUI,"",285)
Sleep(50)
WinSetTrans($hGUI,"",275)
Sleep(50)
WinSetTrans($hGUI,"",265)
Sleep(50)
Exit



        EndSwitch

    WEnd
 

EndFunc

And here are some pictures

The first picture is what I want but the second and third  one are the ones I Don't want.

Plz Help me on this one guys.

Thanks in advance.

Capture.JPG

Capture.JPG

Capture.JPG

Edited by farhadrahman2

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...