Search found 212 matches

by samardac
26 Aug 2016, 12:50
Forum: Ask for Help (v1)
Topic: Run as Admjnistrator
Replies: 9
Views: 2289

Re: Run as Admjnistrator

Guest wrote:Would it help to have the script run as Admin automatically? If so, add this to the top of your script...

Code: Select all

#singleinstance off
if not A_IsAdmin
{
	Run *RunAs "%A_AhkPath%" "%A_ScriptFullPath%"
   	ExitApp
}

*RunAs dose not work I tried it :(
by samardac
26 Aug 2016, 09:22
Forum: Ask for Help (v1)
Topic: Run as Admjnistrator
Replies: 9
Views: 2289

Re: Run as Admjnistrator

That's how windows works, nothing to do with ahk, you need permision (admin) to do stuff on certain places, the link I provided suggests some "Common workarounds". I don't know, but I think A_MyDocuments is less restricted. Btw, I can write to A_Temp without script being admin, probably because UAC...
by samardac
26 Aug 2016, 08:52
Forum: Ask for Help (v1)
Topic: Run as Admjnistrator
Replies: 9
Views: 2289

Re: Run as Admjnistrator

Helgef wrote:
samardac wrote:I think everything is clear.
Good then!
My script try to create folder in A_Temp, or try to modify registr but no luck only it works only if you run exe As Administrator.
by samardac
26 Aug 2016, 07:46
Forum: Ask for Help (v1)
Topic: Run as Admjnistrator
Replies: 9
Views: 2289

Re: Run as Admjnistrator

Helgef wrote:You don't leave many clues. Perhaps you can start here: UAC.
What clues you need to unswer my question? I think everything is clear.
by samardac
26 Aug 2016, 07:29
Forum: Ask for Help (v1)
Topic: Run as Admjnistrator
Replies: 9
Views: 2289

Run as Admjnistrator

Hi, my script works only when I run it with - Run As Administrator.
How to fix it?
by samardac
03 Aug 2015, 03:14
Forum: Ask for Help (v1)
Topic: Win 8, SendMessage does not work.
Replies: 1
Views: 1027

Win 8, SendMessage does not work.

Hi,
Just used this code to send message to one application to make it perform some task:

Code: Select all

SendMessage, 41251,0,0,,ahk_class WindowsForms10.Window.8.app.0.2bf8098_r9_ad1
It works fine on Windows 7, 64 bit.
But I moved to Windows 8, 64 bit and it stoped to work.
by samardac
21 Jul 2015, 00:58
Forum: Scripts and Functions (v1)
Topic: GDI+ standard library 1.45 by tic
Replies: 438
Views: 246608

Re: GDI+ standard library 1.45 by tic

tic,
Thank you very much, I just working on one project where I need GDI gui with buttons, but now have to pause it a bit, so when I''ll back to it I'll ask you some questions.
by samardac
11 Jul 2015, 02:23
Forum: Ask for Help (v1)
Topic: Clone window
Replies: 0
Views: 821

Clone window

Is it any way to clone window? For example Clone Notepad and what you will make in one window will be happen in another?
by samardac
10 Jul 2015, 13:57
Forum: Ask for Help (v1)
Topic: Hide from taskbar
Replies: 2
Views: 1668

Hide from taskbar

Is it any way to hide notepad from taskbar?
by samardac
10 Jul 2015, 11:48
Forum: Ask for Help (v1)
Topic: Always On Top inside Parent Window?
Replies: 5
Views: 2618

Re: Always On Top inside Parent Window?

This is the code: run Notepad Gui, Main: +HwndmainGuiId Gui, Main: +LastFound Gui, Main: Show, w600 h150 Gui, Child2: New, +ParentMain +HwndchildGuiId2, Child GUI 2 Gui, Child2: Add, Text,,this is child gui Gui, Child2: Show, x100 y0 w300 h100 External:=WinExist("Untitled") DllCall("SetParent", "uin...
by samardac
10 Jul 2015, 11:41
Forum: Ask for Help (v1)
Topic: Always On Top inside Parent Window?
Replies: 5
Views: 2618

Re: Always On Top inside Parent Window?

But how to be if I use Inside parent third party window not ahk GUI (by using SetParent DLL)? How catch that I activated it?
WM_CHILDACTIVATE does not work, I tried ShelHook with HSHELL_WINDOWACTIVATED but it also does not work.
How to cath that External window to make Child2 to be always on top?
by samardac
10 Jul 2015, 11:14
Forum: Ask for Help (v1)
Topic: TransColor for GUI (only works with +AlwaysOnTop or +ToolWIndow)
Replies: 2
Views: 1724

Re: TransColor for GUI (only works with +AlwaysOnTop or +ToolWIndow)

Many thanks!!!
I just removed first +Caption and it also works:

Code: Select all

Gui, Main: Color, EEAA99
Gui, Main: +LastFound 
WinSet, TransColor, EEAA99
Gui, Main: -Caption
Gui, Main: Show, w600 h150
Just wander why it works this way? I mean why we have to put -Caption after TransColor.
by samardac
10 Jul 2015, 09:01
Forum: Ask for Help (v1)
Topic: TransColor for GUI (only works with +AlwaysOnTop or +ToolWIndow)
Replies: 2
Views: 1724

TransColor for GUI (only works with +AlwaysOnTop or +ToolWIndow)

I have this code: Gui, Main: -Caption ;Gui, Main: +AlwaysOnTop ;Gui, Main: +ToolWindow Gui, Main: Color, EEAA99 Gui, Main: +LastFound WinSet, TransColor, EEAA99 Gui, Main: Show, w600 h150 I need to make fully transparent window, but it only works if I enable +AlwaysOnTop or +ToolWIndow. Both situati...
by samardac
10 Jul 2015, 08:34
Forum: Ask for Help (v1)
Topic: Always On Top inside Parent Window?
Replies: 5
Views: 2618

Re: Always On Top inside Parent Window?

Many thanks!!!
by samardac
10 Jul 2015, 05:47
Forum: Ask for Help (v1)
Topic: Always On Top inside Parent Window?
Replies: 5
Views: 2618

Always On Top inside Parent Window?

Hi I have this code where I have Main window as Parent and two windows Child1 and Child2 inside it. How to make Child2 tobe Always On Top inside Main(Parent) Window? ; create and display main GUI Gui, Main: New, +HwndmainGuiId +Resize, Main GUI Gui, Main: Show, w600 h150 Gui, Child: New, +ParentMain...
by samardac
10 Jul 2015, 02:15
Forum: Ask for Help (v1)
Topic: Function Reference
Replies: 7
Views: 3762

Re: Function Reference

Thanks trismarck, exhaustive answer, must be added to help file.
by samardac
10 Jul 2015, 02:02
Forum: Ask for Help (v1)
Topic: Layerd GUI(GDI+) add buttons?
Replies: 3
Views: 2081

Re: Layerd GUI(GDI+) add buttons?

lexikos, thank you another words I have to push buttons into the GUI the same way I sent background.png through GDI+ to it? can you help me, the thing is that I need background with shadows on edges(that will need transparency) and good aliasing, I do not need that stuff on buttons that will be lay ...
by samardac
09 Jul 2015, 11:27
Forum: Scripts and Functions (v1)
Topic: GDI+ standard library 1.45 by tic
Replies: 438
Views: 246608

Re: GDI+ standard library 1.45 by tic

How to add control to layered GUI? I want to make gui using GDI+ Librery and then add Pictures(Gui Pictures for buttons). This is code, another words how to add controls like Pictures to it: ; gdi+ ahk tutorial 3 written by tic (Tariq Porter) ; Requires Gdip.ahk either in your Lib folder as standard...
by samardac
09 Jul 2015, 11:23
Forum: Ask for Help (v1)
Topic: Layerd GUI(GDI+) add buttons?
Replies: 3
Views: 2081

Layerd GUI(GDI+) add buttons?

How to add control to layered GUI? I want to make gui using GDI+ Librery and then add Pictures(Gui Pictures for buttons). This is code, another words how to add controls like Pictures to it: ; gdi+ ahk tutorial 3 written by tic (Tariq Porter) ; Requires Gdip.ahk either in your Lib folder as standard...
by samardac
08 Jul 2015, 10:03
Forum: Ask for Help (v1)
Topic: Cut window and Move.
Replies: 0
Views: 828

Cut window and Move.

Some crazy question, just came today into my mind :D Is it way to cut on part of some window and move it somewhere on screen?

Go to advanced search