Jump to content
Sign in to follow this  
FireFox

For $i = $ITEM0 to $ITEM14 possible ?

Recommended Posts

FireFox

Hi,

I have this in my script :

Local $ITEM0[$WL[0][0]], $ITEM1[$WL[0][0]], $ITEM2[$WL[0][0]]
Local $ITEM3[$WL[0][0]], $ITEM4[$WL[0][0]], $ITEM5[$WL[0][0]], $ITEM6[$WL[0][0]]
Local $ITEM7[$WL[0][0]], $ITEM8[$WL[0][0]], $ITEM9[$WL[0][0]], $ITEM10[$WL[0][0]]
Local $ITEM11[$WL[0][0]], $ITEM12[$WL[0][0]], $ITEM13[$WL[0][0]], $ITEM14[$WL[0][0]]

But Its not very beautiful, so I'm wondering if there is a way to do it like this :

$WL = WinList()
For $nb = 1 to 14
Local $ITEM & $nb[$WL[0][0]]
Next

Cheers, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
Andreik

Hi,

I have this in my script :

Local $ITEM0[$WL[0][0]], $ITEM1[$WL[0][0]], $ITEM2[$WL[0][0]]
Local $ITEM3[$WL[0][0]], $ITEM4[$WL[0][0]], $ITEM5[$WL[0][0]], $ITEM6[$WL[0][0]]
Local $ITEM7[$WL[0][0]], $ITEM8[$WL[0][0]], $ITEM9[$WL[0][0]], $ITEM10[$WL[0][0]]
Local $ITEM11[$WL[0][0]], $ITEM12[$WL[0][0]], $ITEM13[$WL[0][0]], $ITEM14[$WL[0][0]]

But Its not very beautiful, so I'm wondering if there is a way to do it like this :

$WL = WinList()
For $nb = 1 to 14
Local $ITEM & $nb[$WL[0][0]]
Next

Cheers, FireFox.

Use a bidimensional array and in this case is no need a loop and it`s easy to work:

$WL = WinList()
Local $ITEM[14][$WL[0][0]]

When the words fail... music speaks

Share this post


Link to post
Share on other sites
FireFox

Use a bidimensional array and in this case is no need a loop and it`s easy to work:

$WL = WinList()
 Local $ITEM[14][$WL[0][0]]
ho...yes, Ive forgotten that :)

thanks :lmao:

Cheers, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×