PDA

View Full Version : Detec if autorrun is minimized or maximized?



Solmos
11-23-2006, 08:13 AM
Detec if autorrun is minimized or maximized?

for example: autorrun.exe... is maximized
aplication minimize

else is maximized
aplication minimize

thx!!

Solmos
11-25-2006, 12:52 PM
please help!!

TJ_Tigger
11-26-2006, 09:00 AM
I hope this helps

http://www.indigorose.com/forums/showpost.php?p=90639&postcount=8

Solmos
11-26-2006, 10:22 AM
jj = String.ToNumber(DLL.CallFunction(_SystemFolder.."\\User32.dll", "IsIconic", Application.GetWndHandle(), DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL))
if jj == 0 then
Application.Restore();
exit

thanks, it works well.

but not this diminished, as I diminish it with he himself button, that is to say, when pressing on “minimize/restore button " if it gives back 0 to me is because this diminished and then restore, but since I make to even diminish it but this?
thanks

example (noty work):


jj = String.ToNumber(DLL.CallFunction(_SystemFolder.."\\User32.dll", "IsIconic", Application.GetWndHandle(), DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL))
if jj == 0 then
Application.Restore();
elseif jj == ????? then
Application.Minimize();
exit

TJ_Tigger
11-26-2006, 11:53 AM
jj = String.ToNumber(DLL.CallFunction(_SystemFolder.."\\User32.dll", "IsIconic", Application.GetWndHandle(), DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL))
if jj == 0 then
Application.Restore();
else
Application.Minimize();
exit

Tek
11-26-2006, 04:38 PM
jj = String.ToNumber(DLL.CallFunction(_SystemFolder.."\\User32.dll", "IsIconic", Application.GetWndHandle(), DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL))
if jj == 0 then
Application.Restore();
else
Application.Minimize();
exit

I think you mean:


jj = String.ToNumber(DLL.CallFunction(_SystemFolder.."\\User32.dll", "IsIconic", Application.GetWndHandle(), DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL))
if jj == 0 then
Application.Restore();
else
Application.Minimize();
end


Thanks for the code. I was looking for a way to do this. :)

TJ_Tigger
11-26-2006, 07:16 PM
oops yeah. Cut and paste bug bit me again

Solmos
11-27-2006, 08:37 AM
thank you very much but it does not work.

It does not minimized autorrun, but when this minimized if it restored it…

some solution? thanks!

TJ_Tigger
11-27-2006, 09:06 AM
I have the code above working in my IR Project Code Viewer project. It is part of the popup menu for the task bar. You can find the code from a link in my sig below.

Tigg

Solmos
11-27-2006, 01:58 PM
sorry but it does not work.

It does not minimized autorrun, but when this minimized if it restored it…

TJ_Tigger
11-27-2006, 02:05 PM
sorry but it does not work.

It does not minimized autorrun, but when this minimized if it restored it…

Can you post the project in which the code does not work?

File-> Export. . .