--- In [email protected], miinx <[EMAIL PROTECTED]> wrote: > > swzoh wrote: > > You may call the properties page directly, then tick/untick the box, e.g.: > > > > local sVerb,sFile,sParam,sWork,hInst,hProc,sei > > sVerb="properties" > > sFile=?"::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}\::{7007ACC7-3202-11D1-AAD2-00805FC1270E}\::{A6412256-7CE4-4898-9DC8-7950B06D9708}" > > > > sei=dll.create_struct("ui ui ui s s s s i i i i ui ui ui ui", > > 60,1036,"","sVerb|sFile|sParam|sWork",1,"hInst| | | | | |hProc") > > dll.call("shell32.dll|ShellExecuteEx|t* i",sei) > > > > wait.for(1000) > > keys %w{enter} > > > > Sean, thanks so much for the above, it looks mind-bogglingly complex! > > However, it's not working.. first run through I get an error: > > Variable used before being declared dll_status > Error occurred near ln 4 which contained sei=dll.create_struct... > > but there's no dll_status var in that code..?? > > Then after that it appears to run without error but doesn't do anything > unless the Wireless Connection Properties dialog is already open, in > which case it works (I had to also add a {tab} to the keys sent as it > was also opening the Wireless card config dialog) but having Wireless > Conn. Props already open kinda defeats the purpose.. > > Actually it does appear to refresh any visible Connection-type tray > icons (Local Area &/or Wireless) but they don't actually change > (appear/disapper).
I think it's due to Yahoo's line-break. I uploaded the above in the files section: http://groups.yahoo.com/group/power-pro/files/0_TEMP_/Wireless_Connection.PowerPro You need the latest PP build 4.4.04, and if you have the latest file.dll you can use file.doverb() instead, which I commented out in the script. Actually it's not that complex, the meaning of sFile is roughly: My Computer\Control Panel\Network Connections\Your_Wireless_Adapter_Name And I assumed the caption of your wireless connection properties page starts with 'Wireless', you can change it as you like. You need to excute it twice if you want to untick-then-tick. However, I'm wondering just the following could make the job done: win.keys(?"{to ^+Wireless*}%w{space}{tab 2}{enter}") Sean Attention: PowerPro's Web site has moved: http://www.ppro.org Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/power-pro/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
