Jump to content

Recommended Posts

Posted (edited)

Hey there,

I need to create an application with an interactive world map that shows the distribution of a group of people on the land in several locations, and i'm looking for the best way to do that easily and professionally. the app should be able to zoom the map and sign a specified location of a specified group and also color some special land points........ etc.

what is the best way to do that, please advice.

thank you.

Edited by EKY32

[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Posted

IE + GOOGLE MAP ?

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 9/13/2013 at 1:26 AM, mlipok said:

IE + GOOGLE MAP ?

 

No no, It's a map that I will design myself, the same wold map but it can be an image file which i need to make live customizations on it with my script.

any suggestions please?

[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Posted
I'm not an expert in WinAPI  and GDI , so is unlikely to I be able to help.
 
But if you write something more,
for example what technologies you would like to use the map display, then maybe some fascinated, will be able to help you.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  Quote
I'm not an expert in WinAPI  and GDI

 

 

Me too, maybe I should make some codes first then ask for help or update but i just need the main idea.

[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Posted
  On 9/15/2013 at 1:11 AM, EKY32 said:

this is a similar example for what i want to design, http://raphaeljs.com/australia.html

any help please how to create like it aith Autoit?

They probably created that in Photoshop or something.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted
  On 9/15/2013 at 1:15 AM, guinness said:

They probably created that in Photoshop or something.

 

I don't care i found many examples works with HTML5 and JScript, i want to create a similar example with autoit maybe with PNG files :ermm:

but i can't select a png image controls using GuiGetCursorInfo() >_<

[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Posted

If you don't care then no need to discuss further I think.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted (edited)
  On 9/15/2013 at 7:13 AM, guinness said:

If you don't care then no need to discuss further I think.

 

No no! >_<  I meant that i don't care how did they created it!

maybe a working GDI+ example using PNGs and supports image control's selection helps me to apply the idea.

thank you by the way for replying. :rolleyes:

Edited by EKY32

[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Posted

I think

you want to do a many PNG with inregular shape

and take them all in one window

and check that PNG is under the mouse pointer

am I right?

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 9/15/2013 at 7:57 AM, mlipok said:

I think

you want to do a many PNG with inregular shape

and take them all in one window

and check that PNG is under the mouse pointer

am I right?

 

YES!! that is exactly what i want, but the au3 examples I saw never detects the correct shape of the png image control :

[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Posted
So I helped you correctly describe your problem.
Unfortunately, the answer is not within my knowledge.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

Check out _GDIPlus_PathIsVisiblePoint() example (latest beta) how to check shapes under the mouse.

 

The example with the map of Australia shouldn't be much hard to realize with AutoIt at least with some shapes.

 

When you look to the source code (JS) you see the boundaries are created with pathes...

Br,

UEZ

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Posted

  On 9/15/2013 at 12:57 PM, UEZ said:

Check out _GDIPlus_PathIsVisiblePoint() example (latest beta) how to check shapes under the mouse.

 

The example with the map of Australia shouldn't be much hard to realize with AutoIt at least with some shapes.

 

When you look to the source code (JS) you see the boundaries are created with pathes...

Br,

UEZ

 

Thank you, I downloaded the beta but i'm having an error with this func you told me:

>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Users\User\Desktop\emb.au3" /autoit3dir "C:\Program Files (x86)\AutoIt3" /UserParams    
+>16:35:31 Starting AutoIt3Wrapper v.2.0.1.24    Environment(Language:0409  Keyboard:00000409  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64)
>Running AU3Check (1.54.22.0)  from:C:\Program Files (x86)\AutoIt3
C:\Program Files (x86)\AutoIt3\Beta\Include\StructureConstants.au3(1689,89) : ERROR: syntax error (illegal character)
        "uint cyIntegral;uint cxIdeal;lparam lParam;uint cxHeader" & ((@OSVersion = "WIN_XP") ?
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files (x86)\AutoIt3\Beta\Include\WinAPIError.au3(31,43) : ERROR: syntax error (illegal character)
    Return SetError($iError, $iExtended, Null)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Users\User\Desktop\emb.au3 - 2 error(s), 0 warning(s)
!>16:35:31 AU3Check ended.rc:2
>Running:(3.3.8.1):C:\Program Files (x86)\AutoIt3\autoit3.exe "C:\Users\User\Desktop\emb.au3"    
C:\Program Files (x86)\AutoIt3\Beta\Include\StructureConstants.au3 (1687) : ==> Unable to parse line.: 
Global Const $tagREBARBANDINFO = "uint cbSize;uint fMask;uint fStyle;dword clrFore;dword clrBack;ptr lpText;uint cch;" & "int iImage;hwnd hwndChild;uint cxMinChild;uint cyMinChild;uint cx;handle hbmBack;uint wID;uint cyChild;uint cyMaxChild;" & "uint cyIntegral;uint cxIdeal;lparam lParam;uint cxHeader" & ((@OSVersion = "WIN_XP") ? "" : ";" & $tagRECT & ";uint uChevronState") 
Global Const $tagREBARBANDINFO = "uint cbSize;uint fMask;uint fStyle;dword clrFore;dword clrBack;ptr lpText;uint cch;" & "int iImage;hwnd hwndChild;uint cxMinChild;uint cyMinChild;uint cx;handle hbmBack;uint wID;uint cyChild;uint cyMaxChild;" & "uint cyIntegral;uint cxIdeal;lparam lParam;uint cxHeader" & ((@OSVersion = "WIN_XP") ^ ERROR
->16:35:33 AutoIT3.exe ended.rc:1
>Exit code: 1    Time: 3.276

[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Posted (edited)

It seems that you tried to run the code using 3.3.8.1 and not the latest beta.

You have to run the code by pressing Alt+F5 in SciTE or from explorer -> Open it with AutoIt v3 beta.

Br,

UEZ

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Posted

  On 9/15/2013 at 1:46 PM, UEZ said:

It seems that you tried to run the code using 3.3.8.1 and not the latest beta.

You have to run the code by pressing Alt+F5 in SciTE.

Br,

UEZ

 

Well..!!!!!!

AutoIt never disappointed me even once!

thank you, seems that I have a lot of work now! :shifty:

friendly kisses!! :*:ILA2:

[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Posted

After a test, I think I'll need a better example with a PNG file or i'm gonna spend the rest of my life trying to study GDI+ :

[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Posted (edited)
  On 9/15/2013 at 2:09 PM, michaelslamet said:

UEZ is the master of GDI :sorcerer:

 

Yes Indeed :thumbsup:

My unbelievable code which is not working of course :

#include <GDIPlus.au3>
#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>
#include <WinAPI.au3>
_GDIPlus_Startup()
$image = _GDIPlus_ImageLoadFromFile("file.png")


$hwnd = GUICreate("test", 300, 300)
GUICtrlCreatePic("", 10, 10, 128, 128)
GUISetState()
GUIRegisterMsg($WM_PAINT, "_ReDraw")
$hGraphics = _GDIPlus_GraphicsCreateFromHWND($hwnd)
_GDIPlus_GraphicsDrawImageRect($hGraphics, $image, 10, 10, 128, 128)
$hPath = _GDIPlus_PathCreate()

Do
    $msg = GUIGetMsg()
    $aMouse = GUIGetCursorInfo()
    If _GDIPlus_PathIsVisiblePoint($hPath, $aMouse[0], $aMouse[1], $hGraphics) Then MsgBox(0,"","DONE")
Until $msg = -3
_WinAPI_DeleteObject($image)
_GDIPlus_GraphicsDispose($hGraphics)
_GDIPlus_Shutdown()

Func _ReDraw()
    _GDIPlus_GraphicsDrawImageRect($hGraphics, $image, 10, 10, 128, 128)
    Return $GUI_RUNDEFMSG
EndFunc ;==>_ReDraw
Edited by EKY32

[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...