Search found 196 matches

by DataLife
Yesterday, 09:46
Forum: Ask For Help
Topic: INetwork.GetName() unusual behavior
Replies: 0
Views: 13

INetwork.GetName() unusual behavior

I have a very unusual issue with retrieving the network name. With the code below I am monitoring the network name (windstream) which is the name of my wireless network. It returns windstream until I open Devices and Printers and click Add Printer. While scanning for a new printer the network name c...
by DataLife
18 Jan 2018, 01:40
Forum: Ask For Help
Topic: INetwork.GetName catastrophic failure
Replies: 3
Views: 68

Re: INetwork.GetName catastrophic failure

Thanks HotKeyIt, using "Try" has resolved the catastrophic failure error. I have a very unusual issue with retrieving the network name. With the code below I am monitoring the network name (windstream) which is the name of my wireless network. It returns windstream until I open Devices and...
by DataLife
13 Jan 2018, 17:47
Forum: Ask For Help
Topic: INetwork.GetName catastrophic failure
Replies: 3
Views: 68

Re: INetwork.GetName catastrophic failure

thanks HotKeyIt, I will try

Code: [Select all]GeSHi © Codebox Plus

 try ActiveNetwork := INetwork.GetName()


I never was able to reproduce the error on command, I just have to wait and see if comes back.
by DataLife
13 Jan 2018, 17:12
Forum: Ask For Help
Topic: File run when GUI button released. Topic is solved
Replies: 3
Views: 63

Re: File run when GUI button released. Topic is solved

Here is an example using OnMessage OnMessage(0x201, "WM_LBUTTONDOWN") gui, add, button,,Continue Gui, show, autosize return WM_LBUTTONDOWN() { MouseGetPos,,,,Control if Control = button1 gosub ButtonWasReleasedLabel return } ButtonWasReleasedLabel: MsgBox button was released return GuiEsca...
by DataLife
13 Jan 2018, 16:58
Forum: Ask For Help
Topic: File run when GUI button released. Topic is solved
Replies: 3
Views: 63

Re: File run when GUI button released. Topic is solved

Why when the button is released instead of when the button is pressed? As Bobo suggested OnMessage probably would be better. But this should work also when the left button is released. gui, add, button,,Continue Gui, show, autosize return ~lbutton up:: MouseGetPos,,,,Control if Control = button1 got...
by DataLife
13 Jan 2018, 15:41
Forum: Ask For Help
Topic: INetwork.GetName catastrophic failure
Replies: 3
Views: 68

INetwork.GetName catastrophic failure

Can someone tell me how to eliminate this catastrophic failure error or at least suppress it? Suppressing should be ok because when I click YES to continue my script still works as expected. I tried to add the screenshot to this post but the preview does not show it. So I added a link to the image b...
by DataLife
23 Dec 2017, 09:17
Forum: Scripts and Functions
Topic: MyIpChanger ( IP Subnet and Gateway)
Replies: 7
Views: 5300

Re: MyIpChanger ( IP Subnet and Gateway)

I fixed the link again and added the script to the bottom on the first post.

Here is the link also.

https://mega.nz/#!UpUwyKxT!07d8KiMHLtkQgAwCApSqK4vbVAGuML2S7JOe6zf72uA
by DataLife
01 Nov 2017, 01:06
Forum: Scripts and Functions
Topic: SavePictureAs - (Save Image/Picture)
Replies: 15
Views: 15212

Re: SavePictureAs - (Save Image/Picture)

I uploaded SavePictureAs version 11.0.

SavePictureAs now supports Microsoft Edge.

I would like some feed back on how well it works with Microsoft Edge.
thanks
DataLife
by DataLife
20 Oct 2017, 09:02
Forum: Ask For Help
Topic: Picture as a background issue
Replies: 2
Views: 83

Re: Picture as a background issue

BackgroundTrans does not fix the issue. It makes a control visible that is under a picture control. It makes the control and the "control background color" show through.
by DataLife
20 Oct 2017, 07:25
Forum: Ask For Help
Topic: Picture as a background issue
Replies: 2
Views: 83

Picture as a background issue

I want to get rid of the control background color on every control. Specifically radio and text controls and let the picture show through. I have searched the forum and can not find my answer. Please see this picture. Image: https://dl.dropboxusercontent.com/s/11thjl3vyzwf6py/PictureAsBackground.PNG...
by DataLife
17 Oct 2017, 07:58
Forum: Scripts and Functions
Topic: DPI() - writing friendlier DPI-Aware AutoHotkey GUIs
Replies: 9
Views: 535

Re: DPI() - writing friendlier DPI-Aware AutoHotkey GUIs

Concerning your github example 3, on the DropDownList you did not add vVar inside the parenthesis. Gui, Add, Edit, % dpi("x25 yp-5 w300 h20 Number vVar"), EditText SelectMenuPos:=2 Gui, Add, DropDownList, % dpi("xp yp+10 w200 h25 r4 Choose" SelectMenuPos) " vVar", 1 - O...
by DataLife
10 Oct 2017, 12:51
Forum: Ask For Help
Topic: clear dropdown field
Replies: 6
Views: 222

Re: clear dropdown field

Gui, Add, DDL, vMyDDL, item1|item2|item3 Gui, Add, button, gClear, Clear selected Dropdown item Gui, Show, w400 h300, Test Return GuiClose: ExitApp Clear: GuiControl, Choose , MyDDL, 0 Return GuiControl, Choose, ControlID, N : Sets the selection in a ListBox, DropDownList, ComboBox, or Tab control ...
by DataLife
09 Oct 2017, 19:20
Forum: Ask For Help
Topic: clear dropdown field
Replies: 6
Views: 222

Re: clear dropdown field

I finally found the solution here.
https://autohotkey.com/board/topic/21285-solved-clear-dropdownlist-selection-choosechoosestring/#entry139519

I give the dropdownlist a hwnd ID, then use

Code: [Select all]GeSHi © Codebox Plus

SendMessage, 0x014E, -1, 0,, ahk_id %DDL_ID%
by DataLife
09 Oct 2017, 19:13
Forum: Ask For Help
Topic: clear dropdown field
Replies: 6
Views: 222

Re: clear dropdown field

Hi DataLife, Use Control, Delete : Gui, Add, DDL, vDDL hwndDDL_ID +AltSubmit, item1|item2|item3 ; if the control has the AltSubmit property, the output variable will receive the item's position number Gui, Add, Button, gClear, &Clear selected Dropdown item Gui, Show, Autosize return clear: GuiC...
by DataLife
09 Oct 2017, 17:01
Forum: Ask For Help
Topic: clear dropdown field
Replies: 6
Views: 222

clear dropdown field

After selecting an item in the dropdown list, I need to click a button and clear the selected item. It is called the Edit Field on a combobox. I don't need to clear the items in the dropdown list only clear what is visable in the dropdown list (non-editable) box. Gui, add, dropdownlist,,item1|item2|...
by DataLife
05 Oct 2017, 10:29
Forum: Ask For Help
Topic: Get currently connected network name
Replies: 12
Views: 378

Re: Get currently connected network name

Perhaps just doing this might be enough, if the problem lies in the adapter stuff: for INetwork in ComObjCreate("{DCB00C01-570F-4A9B-8D69-199FDBA5723B}").GetNetworks(1) MsgBox % INetwork.GetName() Trying with GetNetworks(3) for details on all the networks your computer knows about...
by DataLife
05 Oct 2017, 09:10
Forum: Ask For Help
Topic: Get currently connected network name
Replies: 12
Views: 378

Re: Get currently connected network name

Derived from a script here , one of the strings it displays in the MsgBox might be what you're after: #NoEnv VarSetCapacity(adapterGuid, 16), VarSetCapacity(adapterGuidStr, 140), adapters := GetAdaptersAddresses() for INetwork in ComObjCreate("{DCB00C01-570F-4A9B-8D69-199FDBA5723B}").GetN...
by DataLife
05 Oct 2017, 09:06
Forum: Ask For Help
Topic: Get currently connected network name
Replies: 12
Views: 378

Re: Get currently connected network name

Since im in a domain, I cannot test it like you. So please test if it is the return you wants: GetNetworkParamsDomainName() { if (DllCall("iphlpapi\GetNetworkParams", "ptr", 0, "uint*", size) = 111) { VarSetCapacity(buf, size, 0) if (DllCall("iphlpapi\GetNetworkPa...
by DataLife
04 Oct 2017, 22:10
Forum: Ask For Help
Topic: Get currently connected network name
Replies: 12
Views: 378

Re: Get currently connected network name

Upon further research it appears that each time the wired ethernet adapter connects to a network windows gives the network a name. For instance I just connected my laptop to a new wired network and the wired ethernet network name is "Network 19". If I were to connect it to another new netw...
by DataLife
04 Oct 2017, 09:39
Forum: Ask For Help
Topic: Get currently connected network name
Replies: 12
Views: 378

Re: Get currently connected network name

For Wireless (WLAN) it should be this function -> WlanGetAvailableNetworkList (msdn) Found this for ahk: https://github.com/nkruzan/autohotkey-wlanapi-lib/blob/master/WLAN.ahk Maybe it needs to be a bit rewritten The WlanGetAvailableNetworkList function retrieves the list of available networks on a...

Go to advanced search