Search found 204 matches

by DataLife
14 May 2018, 23:21
Forum: Ask For Help
Topic: [COM] How to enumerate IEnumNetworkConnections in a more "native" way?
Replies: 7
Views: 539

Re: [COM] How to enumerate IEnumNetworkConnections in a more "native" way?

All my scripts are tested on Windows 10, AutoHotkey 32 bit Ansi unless otherwise stated. - Did you compile the script as ANSI? - Has the user tried running your script with AHK Unicode? - An idea that may or may not work: if it works differently in AHK ANSI/Unicode, you could try rewriting the code...
by DataLife
14 May 2018, 18:29
Forum: Ask For Help
Topic: [COM] How to enumerate IEnumNetworkConnections in a more "native" way?
Replies: 7
Views: 539

Re: [COM] How to enumerate IEnumNetworkConnections in a more "native" way?

Try this: for INetwork in ComObjCreate("{DCB00C01-570F-4A9B-8D69-199FDBA5723B}").GetNetworks(1) MsgBox % INetwork.GetName() HotKeyit, Sometimes the above code returns ??? I am not able to reproduce this issue, but I have someone using one of my programs in Sweden and he is seeing this ???...
by DataLife
23 Apr 2018, 07:41
Forum: Scripts and Functions
Topic: SciTE4AutoHotkey extension - Count occurrences of word
Replies: 48
Views: 5661

Re: SciTE4AutoHotkey extension - Count occurrences of word

Since "Count Occurence" is still not integrated to SciTE4Autohotkey. For those people who are still digging on the outcome of this post, haichen's download does not work anymore but instead I assembled all of their codes right away. Credits: haichen empardopo boiler download link: Count O...
by DataLife
31 Mar 2018, 23:38
Forum: Ask For Help
Topic: Prevent double clicking system tray icon Topic is solved
Replies: 2
Views: 75

Re: Prevent double clicking system tray icon Topic is solved

Thanks for the suggestion of A_tickcount. This works perfectly. Menu, tray, Click, 1 Menu, tray, Add, Open Menu, ShowGUI Menu, tray, default, Open Menu return ShowGui: Toggle := !Toggle if Toggle = 0 Temp1 = %A_TickCount% else Temp2 = %A_TickCount% TimeElapse := (Temp2 - Temp1) if (TimeElapse > 0 an...
by DataLife
31 Mar 2018, 21:38
Forum: Ask For Help
Topic: Prevent double clicking system tray icon Topic is solved
Replies: 2
Views: 75

Prevent double clicking system tray icon Topic is solved

I want to be able to left click the system tray icon and open the default menu item which will open a Gui. I want any double clicking on the system tray icon to be ignored. The example code below attempts to display the GUI twice causing the "The same variable cannot be used for more then one c...
by DataLife
19 Jan 2018, 09:46
Forum: Ask For Help
Topic: INetwork.GetName() unusual behavior
Replies: 1
Views: 77

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: 129

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: 129

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: 116

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: 116

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: 129

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: 5996

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: 17629

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: 125

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: 125

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: 18
Views: 919

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: 317

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 ...

Go to advanced search